aboutsummaryrefslogtreecommitdiff
path: root/lib/test_uuid.c
diff options
context:
space:
mode:
authorBenjamin Bara <[email protected]>2024-01-04 09:17:08 +0100
committerWolfram Sang <[email protected]>2024-01-06 14:10:10 +0100
commita3368e1186e3ce8e38f78cbca019622095b1f331 (patch)
tree3aaecfd23523436d4c8afb3585e37e8b2c960844 /lib/test_uuid.c
parent5cb23af38916fccde98f7a999b0b6f8c4ec34a3e (diff)
i2c: core: Fix atomic xfer check for non-preempt config
Since commit aa49c90894d0 ("i2c: core: Run atomic i2c xfer when !preemptible"), the whole reboot/power off sequence on non-preempt kernels is using atomic i2c xfer, as !preemptible() always results to 1. During device_shutdown(), the i2c might be used a lot and not all busses have implemented an atomic xfer handler. This results in a lot of avoidable noise, like: [ 12.687169] No atomic I2C transfer handler for 'i2c-0' [ 12.692313] WARNING: CPU: 6 PID: 275 at drivers/i2c/i2c-core.h:40 i2c_smbus_xfer+0x100/0x118 ... Fix this by allowing non-atomic xfer when the interrupts are enabled, as it was before. Link: https://lore.kernel.org/r/20231222230106.73f030a5@yea Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/linux-i2c/[email protected]/ Fixes: aa49c90894d0 ("i2c: core: Run atomic i2c xfer when !preemptible") Cc: [email protected] # v5.2+ Signed-off-by: Benjamin Bara <[email protected]> Tested-by: Michael Walle <[email protected]> Tested-by: Tor Vic <[email protected]> [wsa: removed a comment which needs more work, code is ok] Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'lib/test_uuid.c')
0 files changed, 0 insertions, 0 deletions