]> git.baikalelectronics.ru Git - kernel.git/commit
i3c: fix incorrect address slot lookup on 64-bit
authorJamie Iles <quic_jiles@quicinc.com>
Wed, 22 Sep 2021 16:56:00 +0000 (17:56 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 10 Dec 2021 14:54:46 +0000 (15:54 +0100)
commit4b46bfd2092499f4ed0e6aeb80626907f1950bca
treeb0657195e0daf3765fc3da69c6d8267a7bfbd0ee
parent70ae7fa4aec7187b17ff55b6388257ab3c94b061
i3c: fix incorrect address slot lookup on 64-bit

The address slot bitmap is an array of unsigned long's which are the
same size as an int on 32-bit platforms but not 64-bit.  Loading the
bitmap into an int could result in the incorrect status being returned
for a slot and slots being reported as the wrong status.

Fixes: 36d9e6d10f9e ("i3c: Add core I3C infrastructure")
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Jamie Iles <quic_jiles@quicinc.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210922165600.179394-1-quic_jiles@quicinc.com
drivers/i3c/master.c