u-boot-2016/drivers/block
Roger Quadros 3f62971162 ahci: Fix data abort on multiple scsi resets.
Commit 2faf5fb82e introduced a regression that causes a data
abort when running scsi init followed by scsi reset.

There are 2 problems with the original commit
1) ALLOC_CACHE_ALIGN_BUFFER() allocates memory on the stack but is
assigned to ataid[port] and used by other functions.
2) The function ata_scsiop_inquiry() tries to free memory which was
never allocated on the heap.

Fix these problems by using tmpid as a temporary cache aligned buffer.
Allocate memory separately for ataid[port] and re-use it if required.

Fixes: 2faf5fb82e (ahci: Fix cache align error messages)

Reported-by: Eli Nidam <elini@marvell.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
2014-04-02 15:44:40 -04:00
..
ahci.c ahci: Fix data abort on multiple scsi resets. 2014-04-02 15:44:40 -04:00
ata_piix.c
ata_piix.h
dwc_ahsata.c
dwc_ahsata.h
fsl_sata.c
fsl_sata.h
ftide020.c
ftide020.h
libata.c
Makefile
mvsata_ide.c
mxc_ata.c
pata_bfin.c
pata_bfin.h
sandbox.c
sata_dwc.c
sata_dwc.h
sata_sil.c
sata_sil.h
sata_sil3114.c
sata_sil3114.h
sil680.c
sym53c8xx.c
systemace.c