projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea1dd4e
)
[PATCH] libata: clear ATA_DFLAG_PIO before setting it
author
Tejun Heo
<htejun@gmail.com>
Sun, 2 Apr 2006 09:51:53 +0000
(18:51 +0900)
committer
Jeff Garzik
<jeff@garzik.org>
Sun, 2 Apr 2006 14:09:20 +0000
(10:09 -0400)
ata_dev_set_mode() is now responsible for managing ATA_DFLAG_PIO.
Clear it before setting it.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/libata-core.c
b/drivers/scsi/libata-core.c
index 985283cbcbdf2c4832d8909bc931f961c3024ae5..007d1888804526441d87e7e76720a62bc3c766cc 100644
(file)
--- a/
drivers/scsi/libata-core.c
+++ b/
drivers/scsi/libata-core.c
@@
-1949,6
+1949,7
@@
static int ata_dev_set_mode(struct ata_port *ap, struct ata_device *dev)
unsigned int err_mask;
int rc;
+ dev->flags &= ~ATA_DFLAG_PIO;
if (dev->xfer_shift == ATA_SHIFT_PIO)
dev->flags |= ATA_DFLAG_PIO;