Re: [PATCH 3/4] libata: Drain data on errors

From: Jeff Garzik
Date: Tue Mar 24 2009 - 22:49:18 EST


Alan Cox wrote:
From: Alan Cox <alan@xxxxxxxxxx>

If the device is signalling that there is data to drain after an error we
should read the bytes out and throw them away. Without this some devices
and controllers get wedged and don't recover.

Based on earlier work by Mark Lord

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>
---

drivers/ata/libata-sff.c | 45 +++++++++++++++++++++++++++++++++++++++++++--
drivers/ata/pata_pcmcia.c | 34 +++++++++++++++++++++++++++++++++-
include/linux/libata.h | 3 +++
3 files changed, 79 insertions(+), 3 deletions(-)

applied


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/