aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-06-25 16:19:28 -0500
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:50 -0700
commit90d740fc77c79b3ca594f73e3c403e89c158f3d5 (patch)
treef809661724cf5658b4da579ad76a66ff4c979963 /drivers
parent16ac3158d40f5d682f3407df6a8702e0bb6e1cac (diff)
downloadu-boot-linaro-stable-90d740fc77c79b3ca594f73e3c403e89c158f3d5.tar.gz
ahci: set udma mode to 5 to fix some 1.5Gbps drives
Some SATA 1.5G drives don't work with UDMA mode 6, so use mode 5 instead. As this is SATA, the UDMA mode doesn't really matter. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/ahci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index 8c785ae92..9b6d8c5d8 100644
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
@@ -918,7 +918,8 @@ int ahci_init(u32 base)
| ATA_FLAG_PIO_DMA
| ATA_FLAG_NO_ATAPI;
probe_ent->pio_mask = 0x1f;
- probe_ent->udma_mask = 0x7f; /*Fixme,assume to support UDMA6 */
+ probe_ent->udma_mask = 0x3f; /* Fixme,assume to support up to UDMA5
+ * as some drives don't support UDMA6 */
probe_ent->mmio_base = base;