[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)
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

Simple merge