summaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/controller.c
diff options
context:
space:
mode:
authorSean Nyekjaer <sean@geanix.com>2023-08-16 10:05:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-29 17:33:42 +0200
commite84f4400bf8caaa06ffce9a97e8f2a4bd91246fe (patch)
tree3953185fe12eb85332388b632de300a330608aca /drivers/platform/surface/aggregator/controller.c
parent2ff51719ec615e1b373c1811443efe93594c41a9 (diff)
i2c: stm32f7: Add atomic_xfer method to driver
commit 470a662688563d8f5e0fb164930d6f5507a883e4 upstream. Add an atomic_xfer method to the driver so that it behaves correctly when controlling a PMIC that is responsible for device shutdown. The atomic_xfer method added is similar to the one from the i2c-mv64xxx driver. When running an atomic_xfer a bool flag in the driver data is set, the interrupt is not unmasked on transfer start, and the IRQ handler is manually invoked while waiting for pending transfers to complete. Signed-off-by: Sean Nyekjaer <sean@geanix.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org> Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/surface/aggregator/controller.c')
0 files changed, 0 insertions, 0 deletions