Re: [PATCH #upstream-fixes 2/3] pata_hpt366: no ATAPI DMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 09 Dec 2008 17:14:04 +0900
Tejun Heo <tj@xxxxxxxxxx> wrote:

> IDE hpt366 driver doesn't allow DMA for ATAPI devices and MWDMA2 on
> ATAPI device locks up pata_hpt366.  Follow the suit.
> 
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> ---
>  drivers/ata/pata_hpt366.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> Index: work/drivers/ata/pata_hpt366.c
> ===================================================================
> --- work.orig/drivers/ata/pata_hpt366.c
> +++ work/drivers/ata/pata_hpt366.c
> @@ -183,7 +183,9 @@ static unsigned long hpt366_filter(struc
>  			mask &= ~(0xF8 << ATA_SHIFT_UDMA);
>  		if (hpt_dma_blacklisted(adev, "UDMA4", bad_ata66_4))
>  			mask &= ~(0xF0 << ATA_SHIFT_UDMA);
> -	}
> +	} else if (adev->class == ATA_DEV_ATAPI)
> +		mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA);

Ack this one

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux