Hi all,

I have a query related to the endianess of the UPIU packet.

The JESD223C document mentions that the CDB should be in big-endian.
The JESD220C document section 10.7 mentions the layout of all the UFS
UPIU's. It mentions that the first byte is transaction type, second
byte is flags and so forth. So when the UPIU is encoded in the UTRD
descriptor then the UPIU's transaction type will come as the third
byte of CDB and task tag will comes as first byte of CDB after
converting to big-endian.

But when I looked at the Linux driver(refer here the macro
UPIU_HEADER_DWORD), the transaction type is considered as byte zero
and task tag as byte three after it is converted to big-endian.

So my query is that what is the endianess of the UPIU packed that is
described in the JESD220C document.

wwr,
Sangamesh
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to