提交 24a01453 编写于 作者: S Sergei Shtylyov 提交者: Jeff Garzik

pata_sl82c105: wrong assumptions about compatible PIO modes

Fix the wrong "compatible" PIO mode choices: MWDMA0 has 480 ns cycle while PIO1
only has 383 ns cycle, and MWDMA2 timings matchs those of PIO4 exactly.
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 246ce3b6
...@@ -139,13 +139,13 @@ static void sl82c105_set_dmamode(struct ata_port *ap, struct ata_device *adev) ...@@ -139,13 +139,13 @@ static void sl82c105_set_dmamode(struct ata_port *ap, struct ata_device *adev)
{ {
switch(adev->dma_mode) { switch(adev->dma_mode) {
case XFER_MW_DMA_0: case XFER_MW_DMA_0:
sl82c105_configure_piomode(ap, adev, 1); sl82c105_configure_piomode(ap, adev, 0);
break; break;
case XFER_MW_DMA_1: case XFER_MW_DMA_1:
sl82c105_configure_piomode(ap, adev, 3); sl82c105_configure_piomode(ap, adev, 3);
break; break;
case XFER_MW_DMA_2: case XFER_MW_DMA_2:
sl82c105_configure_piomode(ap, adev, 3); sl82c105_configure_piomode(ap, adev, 4);
break; break;
default: default:
BUG(); BUG();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册