usb-storage: Fix cbwflags field
SCSI layer represents DIR as TRUE or FALSE, and for SLOF TRUE is -1 and FALSE is 0, convert that to proper direction when building the CBW Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
This commit is contained in:
parent
7eca6a5e56
commit
9545b3dc96
|
@ -145,6 +145,12 @@ CONSTANT cbw-length
|
|||
cbw-addr cbw-length erase ( tag xfer-len dir lun cmd-len )
|
||||
cbw-addr cbw>cblen c! ( tag xfer-len dir lun )
|
||||
cbw-addr cbw>lun c! ( tag xfer-len dir )
|
||||
\ dir is true or false
|
||||
\ bmCBWFlags
|
||||
\ BIT 7 Direction
|
||||
\ 0 - OUT
|
||||
\ 1 - IN
|
||||
IF 80 ELSE 0 THEN
|
||||
cbw-addr cbw>flags c! ( tag xfer-len )
|
||||
cbw-addr cbw>len l!-le ( tag )
|
||||
cbw-addr cbw>tag l!-le ( )
|
||||
|
|
Loading…
Reference in New Issue