]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/libata-pata_hpt366-no-ATAPI-DMA
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / libata-pata_hpt366-no-ATAPI-DMA
1 From: Tejun Heo <tj@kernel.org>
2 Subject: pata_hpt366: no ATAPI DMA
3 References: bnc#362159
4
5 IDE hpt366 driver doesn't allow DMA for ATAPI devices and MWDMA2 on
6 ATAPI device locks up pata_hpt366. Follow the suit.
7
8 Signed-off-by: Tejun Heo <tj@kernel.org>
9 Signed-off-by: Tejun Heo <teheo@suse.de>
10 ---
11 drivers/ata/pata_hpt366.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14 Index: work/drivers/ata/pata_hpt366.c
15 ===================================================================
16 --- work.orig/drivers/ata/pata_hpt366.c
17 +++ work/drivers/ata/pata_hpt366.c
18 @@ -183,7 +183,9 @@ static unsigned long hpt366_filter(struc
19 mask &= ~(0xF8 << ATA_SHIFT_UDMA);
20 if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4))
21 mask &= ~(0xF0 << ATA_SHIFT_UDMA);
22 - }
23 + } else if (adev->class == ATA_DEV_ATAPI)
24 + mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA);
25 +
26 return ata_bmdma_mode_filter(adev, mask);
27 }
28