aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorQuan Nguyen <[email protected]>2023-07-26 08:00:00 +0000
committerWolfram Sang <[email protected]>2023-08-14 13:28:33 +0000
commit49d4db3953cb9004ff94efc0c176e026c820af5a (patch)
treefa3e55d9167949c1b413666c6341878e75bba02e /tools/perf/scripts/python/sctop.py
parenti2c: imx-lpi2c: return -EINVAL when i2c peripheral clk doesn't work (diff)
downloadkernel-49d4db3953cb9004ff94efc0c176e026c820af5a.tar.gz
kernel-49d4db3953cb9004ff94efc0c176e026c820af5a.zip
i2c: designware: Correct length byte validation logic
Commit 0daede80f870 ("i2c: designware: Convert driver to using regmap API") changes the logic to validate the whole 32-bit return value of DW_IC_DATA_CMD register instead of 8-bit LSB without reason. Later, commit f53f15ba5a85 ("i2c: designware: Get right data length"), introduced partial fix but not enough because the "tmp > 0" still test tmp as 32-bit value and is wrong in case the IC_DATA_CMD[11] is set. Revert the logic to just before commit 0daede80f870 ("i2c: designware: Convert driver to using regmap API"). Fixes: f53f15ba5a85 ("i2c: designware: Get right data length") Fixes: 0daede80f870 ("i2c: designware: Convert driver to using regmap API") Cc: [email protected] Signed-off-by: Tam Nguyen <[email protected]> Signed-off-by: Quan Nguyen <[email protected]> Acked-by: Jarkko Nikula <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions