diff options
author | Rayagonda Kokatanur <[email protected]> | 2019-07-24 13:58:27 +0530 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2019-08-01 14:31:00 +0200 |
commit | fd01eecdf9591453177d7b06faaabef8c300114a (patch) | |
tree | 1aad80ae0bbe3f6b1a149edcd34ee63cad0259d3 /lib/mpi/mpicoder.c | |
parent | 3a5ff11be8dc1f5ea4e89158623204672fc588de (diff) |
i2c: iproc: Fix i2c master read more than 63 bytes
Use SMBUS_MASTER_DATA_READ.MASTER_RD_STATUS bit to check for RX
FIFO empty condition because SMBUS_MASTER_FIFO_CONTROL.MASTER_RX_PKT_COUNT
is not updated for read >= 64 bytes. This fixes the issue when trying to
read from the I2C slave more than 63 bytes.
Fixes: c24b8d574b7c ("i2c: iproc: Extend I2C read up to 255 bytes")
Cc: [email protected]
Signed-off-by: Rayagonda Kokatanur <[email protected]>
Reviewed-by: Ray Jui <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions