]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ahci: support scsi writing in AHCI driver
authorHung-Te Lin <hungte@chromium.org>
Mon, 29 Oct 2012 05:23:53 +0000 (05:23 +0000)
committerTom Rini <trini@ti.com>
Fri, 2 Nov 2012 22:20:41 +0000 (15:20 -0700)
commitb7a21b70d0d3f94d7ab3ed84fbf68d2e2b7488bf
treef44255e1807665082cba22f90180c3162e6e14e4
parente81058c05b762e6da012a7a3c22ee25c6c0bf71e
ahci: support scsi writing in AHCI driver

The "scsi write" command requires support from underlying driver.
This CL enables SCSI_WRITE10 in AHCI driver.

Tested in U-Boot console, try to i/o with sector #64:
scsi read 1000 40 1
md.b 1000 200 # check if things are not 0xcc
mw.b 1000 cc 200 # try to fill with 0xcc
scsi write 1000 40 1
mw.b 1000 0 200 # fill with zero
md.b 1000 200 # should be all 0
scsi read 1000 40 1
md.b 1000 200 # should be all 0xcc

Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c