[PATCH] scsi: Adjust SCSI inquiry command data length

Marek Vasut marek.vasut at mailbox.org
Thu Feb 12 15:07:03 CET 2026


On 2/12/26 9:21 AM, Macpaul Lin (林智斌) wrote:
> 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.
Thank you, and yes, I was about to point out that this is a scsi core 
code, this applies to SCSI, USB and such devices.


More information about the U-Boot mailing list