Skip to content
  • Hung-Te Lin's avatar
    ahci: support scsi writing in AHCI driver · b7a21b70
    Hung-Te Lin authored
    
    
    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: default avatarHung-Te Lin <hungte@chromium.org>
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    b7a21b70