mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
i3c: mipi-i3c-hci: Correct RESP_DATA_LENGTH to bits 15:0
The I3C HCI Response Descriptor defines DATA_LENGTH in Bits[15:0], with Bits[23:16] reserved in all published HCI specification versions: v1.0 (Table 91) and v1.1/v1.2 (Section 8.5). However, RESP_DATA_LENGTH extracts Bits[21:0], incorrectly including six reserved bits. Update the mask to match the defined field width. No functional change is expected because compliant controllers return zero in reserved fields. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260920151248.46936-13-adrian.hunter@intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
9796ccba12
commit
de243c3dd2
|
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
#define RESP_STATUS(resp) FIELD_GET(GENMASK(31, 28), resp)
|
||||
#define RESP_TID(resp) FIELD_GET(GENMASK(27, 24), resp)
|
||||
#define RESP_DATA_LENGTH(resp) FIELD_GET(GENMASK(21, 0), resp)
|
||||
#define RESP_DATA_LENGTH(resp) FIELD_GET(GENMASK(15, 0), resp)
|
||||
|
||||
#define RESP_ERR_FIELD GENMASK(31, 28)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user