[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091125.150512.103371946.davem@davemloft.net>
Date: Wed, 25 Nov 2009 15:05:12 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: hemantp@...com
Cc: linux-ide@...r.kernel.org, bzolnier@...il.com,
sshtylyov@...mvista.com, petkovbb@...il.com,
christian.engelmayer@...quentis.com, linux-kernel@...r.kernel.org,
davinci-linux-open-source@...ux.davincidsp.com
Subject: Re: [PATCH] ide: fix ioctl to pass requested transfer mode to
ide_find_dma_mode instead of UDMA6
From: Hemant Pedanekar <hemantp@...com>
Date: Tue, 24 Nov 2009 17:20:50 +0530
> Currently, ide_cmd_ioctl when invoked for setting DMA transfer mode calls
> ide_find_dma_mode with requested mode as XFER_UDMA_6. This prevents setting DMA
> mode to any other value than the default (maximum) supported by the device (or
> UDMA6, if supported) irrespective of the actual requested transfer mode and
> returns error.
>
> For example, setting mode to UDMA2 using hdparm, where UDMA4 is the default
> transfer mode gives following error:
> # ./hdparm -d1 -Xudma2 /dev/hda
> /dev/hda:hda: UDMA/66 mode selected
> setting using_dma to 1 (on)
> hda: UDMA/66 mode selected
> setting xfermode to 66 (UltraDMA mode2)
> HDIO_DRIVE_CMD(setxfermode) failed: Invalid argument
> using_dma = 1 (on)
>
> This patch fixes the issue.
>
> Signed-off-by: Hemant Pedanekar <hemantp@...com>
> Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
> Acked-by: Sergei Shtylyov <sshtylyov@...mvista.com>
Applied and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists