Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2021-02-01 Thread Wolfram Sang
On Tue, Dec 22, 2020 at 11:48:50AM -0800, Kevin Paul Herbert wrote: > 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

Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2021-01-28 Thread Wolfram Sang
On Thu, Jan 14, 2021 at 05:27:11PM -0800, Kevin Herbert wrote: > The loop sends either one or two events to the slave driver. If the > state is I2C_SLAVE_READ_REQUESTED, we synthesize the > I2C_SLAVE_READ_PROCESSED event, and then our state becomes > I2C_SLAVE_READ_PROCESSED. In all other states,

Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2021-01-14 Thread Kevin Herbert
The loop sends either one or two events to the slave driver. If the state is I2C_SLAVE_READ_REQUESTED, we synthesize the I2C_SLAVE_READ_PROCESSED event, and then our state becomes I2C_SLAVE_READ_PROCESSED. In all other states, we transition to I2C_SLAVE_STOP and exit the loop. It is not a busy

Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2021-01-08 Thread Oleksij Rempel
Hi Kevin Paul, On Tue, Dec 22, 2020 at 11:48:50AM -0800, Kevin Paul Herbert wrote: > 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

[PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2020-12-22 Thread Kevin Paul Herbert
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

Re: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2020-12-19 Thread Fabio Estevam
Hi Kevin, On Fri, Dec 18, 2020 at 2:53 PM Kevin Herbert wrote: > > From feaf638fb9b9a483c0d6090b277f34db21160885 Mon Sep 17 00:00:00 2001 > From: Kevin Paul Herbert > Date: Tue, 15 Dec 2020 16:50:34 -0800 > Subject: [PATCH] i2c-imx.c: Synthesize end of transaction even

[PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2020-12-18 Thread Kevin Herbert
>From feaf638fb9b9a483c0d6090b277f34db21160885 Mon Sep 17 00:00:00 2001 From: Kevin Paul Herbert Date: Tue, 15 Dec 2020 16:50:34 -0800 Subject: [PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts Only the Layerscape SoCs have interrupts on bus idle, which facilit