summaryrefslogtreecommitdiff
path: root/drivers/i2c/muxes/i2c-mux-mlxcpld.c
diff options
context:
space:
mode:
authorKevin Paul Herbert <kph@platinasystems.com>2020-12-22 22:48:50 +0300
committerWolfram Sang <wsa@kernel.org>2021-02-02 01:12:01 +0300
commit05ae60bc24f765d0db6b7c6e5acabf22718b823d (patch)
tree8972cf5748362c6568ad8b09bf97e66aa573beb5 /drivers/i2c/muxes/i2c-mux-mlxcpld.c
parente0371298ddc51761be257698554ea507ac8bf831 (diff)
downloadlinux-05ae60bc24f765d0db6b7c6e5acabf22718b823d.tar.xz
i2c: imx: Synthesize end of transaction events without idle interrupts
Only the Layerscape SoCs have interrupts on bus idle, which facilitate sending events which complete slave bus transactions. Add support for synthesizing missing events. If we see a master request, or a newly addressed slave request, if the last event sent to the backend was I2C_SLAVE_READ_REQUESTED, send the backend a I2C_SLAVE_READ_PROCESSED followed by I2C_SLAVE_STOP. For all other events, send an I2C_SLAVE_STOP. Signed-off-by: Kevin Paul Herbert <kph@platinasystems.com> Tested-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/muxes/i2c-mux-mlxcpld.c')
0 files changed, 0 insertions, 0 deletions