]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.drivers/libata-pata_hpt366-no-ATAPI-DMA
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.drivers / libata-pata_hpt366-no-ATAPI-DMA
CommitLineData
00e5a55c
BS
1From: Tejun Heo <tj@kernel.org>
2Subject: pata_hpt366: no ATAPI DMA
3References: bnc#362159
4
5IDE hpt366 driver doesn't allow DMA for ATAPI devices and MWDMA2 on
6ATAPI device locks up pata_hpt366. Follow the suit.
7
8Signed-off-by: Tejun Heo <tj@kernel.org>
9Signed-off-by: Tejun Heo <teheo@suse.de>
10---
11 drivers/ata/pata_hpt366.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14Index: 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