diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-15 20:50:50 -0500 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-12-03 03:56:23 -0500 |
commit | 3d3cca37559e3ab2b574eda11ed5207ccdb8980a (patch) | |
tree | f3f3794cd7d68c681c69e85d50345a22aecc5eac /include/linux/libata.h | |
parent | 8070217d301d0ceab7d0c255d7b9d796256d37e7 (diff) |
[PATCH] libata: implement ATA_FLAG_SETXFER_POLLING and use it in pata_via, take #2
This patch implements ATA_FLAG_SETXFER_POLLING and use in pata_via.
If this flag is set, transfer mode setting performed by polling not by
interrupt. This should help those controllers which raise interrupt
before the command is actually complete on SETXFER.
Rationale for this approach.
* uses existing facility and relatively simple
* no busy sleep in the interrupt handler
* updating drivers is easy
While at it, kill now unused flag ATA_FLAG_SRST in pata_via.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 6013211ac7de..8b57b6a806cc 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -178,6 +178,7 @@ enum { | |||
178 | ATA_FLAG_DEBUGMSG = (1 << 13), | 178 | ATA_FLAG_DEBUGMSG = (1 << 13), |
179 | ATA_FLAG_DETECT_POLLING = (1 << 14), /* detect device presence by | 179 | ATA_FLAG_DETECT_POLLING = (1 << 14), /* detect device presence by |
180 | * polling IDENTIFY */ | 180 | * polling IDENTIFY */ |
181 | ATA_FLAG_SETXFER_POLLING= (1 << 15), /* use polling for SETXFER */ | ||
181 | 182 | ||
182 | /* The following flag belongs to ap->pflags but is kept in | 183 | /* The following flag belongs to ap->pflags but is kept in |
183 | * ap->flags because it's referenced in many LLDs and will be | 184 | * ap->flags because it's referenced in many LLDs and will be |