aboutsummaryrefslogtreecommitdiff
path: root/drivers/edac/edac_pci_sysfs.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-12-12 12:21:52 +0900
committerJeff Garzik <jeff@garzik.org>2007-12-17 20:43:28 -0500
commit140b5e59119a172a91b5fa13d54ca4f79bbefee1 (patch)
treeebc04fbd143756d7ef80e870cd9ae214d2607047 /drivers/edac/edac_pci_sysfs.c
parentf2dfc1a12bb1a029df62b018a8e1882e91041025 (diff)
libata: fix ATAPI draining
With ATAPI transfer chunk size properly programmed, libata PIO HSM should be able to handle full spurious data chunks. Also, it's a good idea to suppress trailing data warning for misc ATAPI commands as there can be many of them per command - for example, if the chunk size is 16 and the drive tries to transfer 510 bytes, there can be 31 trailing data messages. This patch makes the following updates to libata ATAPI PIO HSM implementation. * Make it drain full spurious chunks. * Suppress trailing data warning message for misc commands. * Put limit on how many bytes can be drained. * If odd, round up consumed bytes and the number of bytes to be drained. This gets the number of bytes to drain right for drivers which do 16bit PIO. This patch is partial backport of improve-ATAPI-data-xfer patchset pending for #upstream. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/edac/edac_pci_sysfs.c')
0 files changed, 0 insertions, 0 deletions