[PATCH] scsi: Adjust SCSI inquiry command data length
Macpaul Lin
macpaul.lin at mediatek.com
Wed Feb 11 11:40:43 CET 2026
Adjust the data length of the SCSI inquiry command to accommodate various
UFS device vendors. This prevents SCSI detection failures on Longsys UFS
devices. Verified with Hynix, SD, and Longsys UFS devices.
Signed-off-by: ht.lin <ht.lin at mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin at mediatek.com>
---
drivers/scsi/scsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 8fe6b38a8c74..116b696b08dd 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -513,7 +513,7 @@ static int scsi_detect_dev(struct udevice *dev, int target, int lun,
pccb->target = target;
pccb->lun = lun;
pccb->pdata = tempbuff;
- pccb->datalen = 512;
+ pccb->datalen = 36;
pccb->dma_dir = DMA_FROM_DEVICE;
scsi_setup_inquiry(pccb);
if (scsi_exec(dev, pccb)) {
--
2.45.2
More information about the U-Boot
mailing list