[PATCH] scsi: Adjust SCSI inquiry command data length

Macpaul Lin (林智斌) Macpaul.Lin at mediatek.com
Thu Feb 12 09:21:05 CET 2026


On Wed, 2026-02-11 at 12:06 +0100, Marek Vasut wrote:
> 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On 2/11/26 11:40 AM, Macpaul Lin wrote:
> > 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.
> Can this be quirked using some vendor/device ID match , so only the
> problematic devices suffer the consequences ? Thank you

During the patch reviewing last time, Eric (HT Lin) commented
the length of 512 bytes is not follow the specification of UFS storage;
it should be 36 bytes. So these are not problematic devices actually.
However, I'm wondering how the parameter should apply to the
traditional SCSI devices like harddrive  or USB disk.

I'll double check it with Eric then update new patch around the end of
February.

Thanks!
Macpaul Lin





More information about the U-Boot mailing list