Skip to content
Commit f1b59c2c authored by Eason Huang's avatar Eason Huang Committed by Dan Kalowsky
Browse files

drivers: i2c_dw: fix request_bytes overflow when receiving > 256 bytes



The original definition of request_bytes as uint8_t caused incorrect
behavior when attempting to receive more than 256 bytes, as the variable
would overflow. This patch changes its type to uint32_t to allow
correct tracking of large I2C transfers.

Signed-off-by: default avatarEason Huang <eason.huang@tronfuture.com>
parent dd90248a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment