summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>2019-07-24 11:28:27 +0300
committerWolfram Sang <wsa@the-dreams.de>2019-08-01 15:31:00 +0300
commitfd01eecdf9591453177d7b06faaabef8c300114a (patch)
tree1aad80ae0bbe3f6b1a149edcd34ee63cad0259d3 /tools/perf/util/scripting-engines/trace-event-python.c
parent3a5ff11be8dc1f5ea4e89158623204672fc588de (diff)
downloadlinux-fd01eecdf9591453177d7b06faaabef8c300114a.tar.xz
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: stable@kernel.org Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> Reviewed-by: Ray Jui <ray.jui@broadcom.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions