diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-16 10:50:50 +0900 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-12-03 17:56:23 +0900 |
commit | 3d3cca37559e3ab2b574eda11ed5207ccdb8980a (patch) | |
tree | f3f3794cd7d68c681c69e85d50345a22aecc5eac /include/linux | |
parent | 8070217d301d0ceab7d0c255d7b9d796256d37e7 (diff) | |
download | linux-3d3cca37559e3ab2b574eda11ed5207ccdb8980a.tar.gz linux-3d3cca37559e3ab2b574eda11ed5207ccdb8980a.tar.bz2 linux-3d3cca37559e3ab2b574eda11ed5207ccdb8980a.zip |
[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')
-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 { ATA_FLAG_DEBUGMSG = (1 << 13), ATA_FLAG_DETECT_POLLING = (1 << 14), /* detect device presence by * polling IDENTIFY */ + ATA_FLAG_SETXFER_POLLING= (1 << 15), /* use polling for SETXFER */ /* The following flag belongs to ap->pflags but is kept in * ap->flags because it's referenced in many LLDs and will be |