]> err.no Git - linux-2.6/commit
[PATCH] libata handle the case when device returns/needs extra data
authorAlbert Lee <albertcc@tw.ibm.com>
Fri, 12 Aug 2005 06:17:50 +0000 (14:17 +0800)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 12 Aug 2005 06:44:20 +0000 (02:44 -0400)
commit563a6e1fb0af58433beec1ab418e1fafbd100b56
treedcf2145bbf63751722f694044fe547a7dab27d1f
parent6ae4cfb5711b6f2878c9e384617971d98c34a7f5
[PATCH] libata handle the case when device returns/needs extra data

PATCH 2/2:  handle the case when device returns/needs extra data

Description:
   Sometimes the device returns/needs extra data than expected.

Changes:
   Modify __atapi_pio_bytes() to handle the case where device returns/needs extra data.
     - for read case, discard trailing data from the device
     - for write case, padding zero data to the device

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c