diff options
author | Abraham, Thomas <t-abraham@ti.com> | 2008-10-28 16:51:31 +0530 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2009-02-15 17:14:38 +0100 |
commit | 9704f9caf53f5cae547d8c5e1ae94aa4e57b160f (patch) | |
tree | cac8040452bd5e4a0ac1026731f593861c58f448 /common | |
parent | f3c0de636252f3a18654c8f9c6370a9574a7e755 (diff) | |
download | u-boot-imx-9704f9caf53f5cae547d8c5e1ae94aa4e57b160f.zip u-boot-imx-9704f9caf53f5cae547d8c5e1ae94aa4e57b160f.tar.gz u-boot-imx-9704f9caf53f5cae547d8c5e1ae94aa4e57b160f.tar.bz2 |
USB: Remove LUN number from CDB
The LUN number is not part of the Command Descriptor Block (CDB) for scsi inquiry, request sense, test unit ready, read capacity and read10 commands. This patch removes the LUN number information from the CDB.
Signed-off-by: Thomas Abraham <t-abraham@ti.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_storage.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c index 51f0789..fec64f3 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -878,7 +878,6 @@ static int usb_inquiry(ccb *srb, struct us_data *ss) do { memset(&srb->cmd[0], 0, 12); srb->cmd[0] = SCSI_INQUIRY; - srb->cmd[1] = srb->lun<<5; srb->cmd[4] = 36; srb->datalen = 36; srb->cmdlen = 12; @@ -902,7 +901,6 @@ static int usb_request_sense(ccb *srb, struct us_data *ss) ptr = (char *)srb->pdata; memset(&srb->cmd[0], 0, 12); srb->cmd[0] = SCSI_REQ_SENSE; - srb->cmd[1] = srb->lun << 5; srb->cmd[4] = 18; srb->datalen = 18; srb->pdata = &srb->sense_buf[0]; @@ -922,7 +920,6 @@ static int usb_test_unit_ready(ccb *srb, struct us_data *ss) do { memset(&srb->cmd[0], 0, 12); srb->cmd[0] = SCSI_TST_U_RDY; - srb->cmd[1] = srb->lun << 5; srb->datalen = 0; srb->cmdlen = 12; if (ss->transport(srb, ss) == USB_STOR_TRANSPORT_GOOD) @@ -942,7 +939,6 @@ static int usb_read_capacity(ccb *srb, struct us_data *ss) do { memset(&srb->cmd[0], 0, 12); srb->cmd[0] = SCSI_RD_CAPAC; - srb->cmd[1] = srb->lun << 5; srb->datalen = 8; srb->cmdlen = 12; if (ss->transport(srb, ss) == USB_STOR_TRANSPORT_GOOD) @@ -957,7 +953,6 @@ static int usb_read_10(ccb *srb, struct us_data *ss, unsigned long start, { memset(&srb->cmd[0], 0, 12); srb->cmd[0] = SCSI_READ10; - srb->cmd[1] = srb->lun << 5; srb->cmd[2] = ((unsigned char) (start >> 24)) & 0xff; srb->cmd[3] = ((unsigned char) (start >> 16)) & 0xff; srb->cmd[4] = ((unsigned char) (start >> 8)) & 0xff; |