[PATCH] scsi: do not fill the LUN in the second CDB byte
Tom Rini
trini at konsulko.com
Fri Jan 31 23:07:01 CET 2025
On Fri, 24 Jan 2025 03:01:48 +0100, Neil Armstrong wrote:
> The SCSI specification originally required that the second
> Command Data Byte contain the LUN value in its high-order bits,
> but this field has been marked as reserved since the SCSI-3 spec
> from 1996.
>
> Some vendors uses this byte to pass vendor specific data,
> and specifying the LUN can trigger strange behaviors.
> For the record, this happened on an UFS device where LUN0 was
> working perfectly and reading the other LUNs would get the last
> buffer data that was read for LUN0, making this issue very very
> hard to debug.
>
> [...]
Applied to u-boot/master, thanks!
--
Tom
More information about the U-Boot
mailing list