linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
@ 2020-03-30 10:50 Biwen Li
  2020-03-30 10:56 ` Biwen Li
  0 siblings, 1 reply; 6+ messages in thread
From: Biwen Li @ 2020-03-30 10:50 UTC (permalink / raw)
  To: leoyang.li, linux, kernel, wsa
  Cc: linux-i2c, linux-kernel, jiafei.pan, Biwen Li

From: Biwen Li <biwen.li@nxp.com>

Support I2C_SLAVE_STOP event for the read transactions(master read from slave)

Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
 drivers/i2c/busses/i2c-imx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 62517a41b32d..1fd0d87885d5 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -1464,6 +1464,7 @@ static irqreturn_t i2c_imx_slave_isr(struct imx_i2c_struct *i2c_imx)
 		ctl &= ~I2CR_MTX;
 		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
 		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
+		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
 	}
 	return IRQ_HANDLED;
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* RE: [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
  2020-03-30 10:50 [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions Biwen Li
@ 2020-03-30 10:56 ` Biwen Li
  2020-03-30 11:12   ` Oleksij Rempel
  0 siblings, 1 reply; 6+ messages in thread
From: Biwen Li @ 2020-03-30 10:56 UTC (permalink / raw)
  To: Biwen Li (OSS), Leo Li, linux, kernel, wsa
  Cc: linux-i2c, linux-kernel, Jiafei Pan

Hi All,

The patch based on https://patchwork.ozlabs.org/patch/1203640/
and it is not accepted, so it(https://patchwork.ozlabs.org/patch/1203640/) is needed before apply the new patch. 

Best Regards,
Biwen Li
> Support I2C_SLAVE_STOP event for the read transactions(master read from
> slave)
> 
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
> ---
>  drivers/i2c/busses/i2c-imx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index
> 62517a41b32d..1fd0d87885d5 100644
> --- a/drivers/i2c/busses/i2c-imx.c
> +++ b/drivers/i2c/busses/i2c-imx.c
> @@ -1464,6 +1464,7 @@ static irqreturn_t i2c_imx_slave_isr(struct
> imx_i2c_struct *i2c_imx)
>  		ctl &= ~I2CR_MTX;
>  		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
>  		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
> +		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
>  	}
>  	return IRQ_HANDLED;
>  }
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
  2020-03-30 10:56 ` Biwen Li
@ 2020-03-30 11:12   ` Oleksij Rempel
  2020-03-31  8:48     ` Biwen Li (OSS)
  0 siblings, 1 reply; 6+ messages in thread
From: Oleksij Rempel @ 2020-03-30 11:12 UTC (permalink / raw)
  To: Biwen Li
  Cc: Biwen Li (OSS),
	Leo Li, linux, kernel, wsa, Jiafei Pan, linux-i2c, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1681 bytes --]

Hi,

On Mon, Mar 30, 2020 at 10:56:28AM +0000, Biwen Li wrote:
> Hi All,
> 
> The patch based on https://patchwork.ozlabs.org/patch/1203640/
> and it is not accepted, so it(https://patchwork.ozlabs.org/patch/1203640/) is needed before apply the new patch. 

I'm not sure what should I do with this information. This links are to
the patch which needed to be update by you, before it can be reviewed
and then hopefully accepted. Why do you sending one more patch for
review for a patch which is not accepted? 

> Best Regards,
> Biwen Li
> > Support I2C_SLAVE_STOP event for the read transactions(master read from
> > slave)
> > 
> > Signed-off-by: Biwen Li <biwen.li@nxp.com>
> > ---
> >  drivers/i2c/busses/i2c-imx.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index
> > 62517a41b32d..1fd0d87885d5 100644
> > --- a/drivers/i2c/busses/i2c-imx.c
> > +++ b/drivers/i2c/busses/i2c-imx.c
> > @@ -1464,6 +1464,7 @@ static irqreturn_t i2c_imx_slave_isr(struct
> > imx_i2c_struct *i2c_imx)
> >  		ctl &= ~I2CR_MTX;
> >  		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
> >  		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
> > +		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
> >  	}
> >  	return IRQ_HANDLED;
> >  }
> > --
> > 2.17.1

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
  2020-03-30 11:12   ` Oleksij Rempel
@ 2020-03-31  8:48     ` Biwen Li (OSS)
  2020-04-01  5:18       ` Oleksij Rempel
  0 siblings, 1 reply; 6+ messages in thread
From: Biwen Li (OSS) @ 2020-03-31  8:48 UTC (permalink / raw)
  To: Oleksij Rempel
  Cc: Biwen Li (OSS),
	Leo Li, linux, kernel, wsa, Jiafei Pan, linux-i2c, linux-kernel

> Hi,
> 
> On Mon, Mar 30, 2020 at 10:56:28AM +0000, Biwen Li wrote:
> > Hi All,
> >
> > The patch based on https://patchwork.ozlabs.org/patch/1203640/
> > and it is not accepted, so it(https://patchwork.ozlabs.org/patch/1203640/)
> is needed before apply the new patch.
> 
> I'm not sure what should I do with this information. This links are to the patch
> which needed to be update by you, before it can be reviewed and then
> hopefully accepted. Why do you sending one more patch for review for a patch
> which is not accepted?
Hi Oleksij,
Okay, got it. I will resend the patch after the old patch is accepted by upstream. Thank you
for your reply.
> 
> > Best Regards,
> > Biwen Li
> > > Support I2C_SLAVE_STOP event for the read transactions(master read
> > > from
> > > slave)
> > >
> > > Signed-off-by: Biwen Li <biwen.li@nxp.com>
> > > ---
> > >  drivers/i2c/busses/i2c-imx.c | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/drivers/i2c/busses/i2c-imx.c
> > > b/drivers/i2c/busses/i2c-imx.c index
> > > 62517a41b32d..1fd0d87885d5 100644
> > > --- a/drivers/i2c/busses/i2c-imx.c
> > > +++ b/drivers/i2c/busses/i2c-imx.c
> > > @@ -1464,6 +1464,7 @@ static irqreturn_t i2c_imx_slave_isr(struct
> > > imx_i2c_struct *i2c_imx)
> > >  		ctl &= ~I2CR_MTX;
> > >  		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
> > >  		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
> > > +		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
> > >  	}
> > >  	return IRQ_HANDLED;
> > >  }
> > > --
> > > 2.17.1
> 
> Regards,
> Oleksij
> --
> Pengutronix e.K.                           |
> |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/
> |
> 31137 Hildesheim, Germany                  | Phone:
> +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:
> +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
  2020-03-31  8:48     ` Biwen Li (OSS)
@ 2020-04-01  5:18       ` Oleksij Rempel
  2020-04-13  1:47         ` Biwen Li (OSS)
  0 siblings, 1 reply; 6+ messages in thread
From: Oleksij Rempel @ 2020-04-01  5:18 UTC (permalink / raw)
  To: Biwen Li (OSS)
  Cc: wsa, linux-kernel, linux, linux-i2c, kernel, Jiafei Pan, Leo Li

[-- Attachment #1: Type: text/plain, Size: 2421 bytes --]

Hi,

On Tue, Mar 31, 2020 at 08:48:03AM +0000, Biwen Li (OSS) wrote:
> > Hi,
> > 
> > On Mon, Mar 30, 2020 at 10:56:28AM +0000, Biwen Li wrote:
> > > Hi All,
> > >
> > > The patch based on https://patchwork.ozlabs.org/patch/1203640/
> > > and it is not accepted, so it(https://patchwork.ozlabs.org/patch/1203640/)
> > is needed before apply the new patch.
> > 
> > I'm not sure what should I do with this information. This links are to the patch
> > which needed to be update by you, before it can be reviewed and then
> > hopefully accepted. Why do you sending one more patch for review for a patch
> > which is not accepted?
> Hi Oleksij,
> Okay, got it. I will resend the patch after the old patch is accepted by upstream. Thank you
> for your reply.

Do you mean the shutdown patch?

> > 
> > > Best Regards,
> > > Biwen Li
> > > > Support I2C_SLAVE_STOP event for the read transactions(master read
> > > > from
> > > > slave)
> > > >
> > > > Signed-off-by: Biwen Li <biwen.li@nxp.com>
> > > > ---
> > > >  drivers/i2c/busses/i2c-imx.c | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/drivers/i2c/busses/i2c-imx.c
> > > > b/drivers/i2c/busses/i2c-imx.c index
> > > > 62517a41b32d..1fd0d87885d5 100644
> > > > --- a/drivers/i2c/busses/i2c-imx.c
> > > > +++ b/drivers/i2c/busses/i2c-imx.c
> > > > @@ -1464,6 +1464,7 @@ static irqreturn_t i2c_imx_slave_isr(struct
> > > > imx_i2c_struct *i2c_imx)
> > > >  		ctl &= ~I2CR_MTX;
> > > >  		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
> > > >  		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
> > > > +		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
> > > >  	}
> > > >  	return IRQ_HANDLED;
> > > >  }
> > > > --
> > > > 2.17.1
> > 
> > Regards,
> > Oleksij
> > --
> > Pengutronix e.K.                           |
> > |
> > Steuerwalder Str. 21                       | http://www.pengutronix.de/
> > |
> > 31137 Hildesheim, Germany                  | Phone:
> > +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:
> > +49-5121-206917-5555 |

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions
  2020-04-01  5:18       ` Oleksij Rempel
@ 2020-04-13  1:47         ` Biwen Li (OSS)
  0 siblings, 0 replies; 6+ messages in thread
From: Biwen Li (OSS) @ 2020-04-13  1:47 UTC (permalink / raw)
  To: Oleksij Rempel, Biwen Li (OSS)
  Cc: wsa, linux-kernel, linux, linux-i2c, kernel, Jiafei Pan, Leo Li

> 
> Hi,
> 
> On Tue, Mar 31, 2020 at 08:48:03AM +0000, Biwen Li (OSS) wrote:
> > > Hi,
> > >
> > > On Mon, Mar 30, 2020 at 10:56:28AM +0000, Biwen Li wrote:
> > > > Hi All,
> > > >
> > > > The patch based on https://patchwork.ozlabs.org/patch/1203640/
> > > > and it is not accepted, so
> > > > it(https://patchwork.ozlabs.org/patch/1203640/)
> > > is needed before apply the new patch.
> > >
> > > I'm not sure what should I do with this information. This links are
> > > to the patch which needed to be update by you, before it can be
> > > reviewed and then hopefully accepted. Why do you sending one more
> > > patch for review for a patch which is not accepted?
> > Hi Oleksij,
> > Okay, got it. I will resend the patch after the old patch is accepted
> > by upstream. Thank you for your reply.
> 
> Do you mean the shutdown patch?
No, it is not related with shutdown patch.
> 
> > >
> > > > Best Regards,
> > > > Biwen Li
> > > > > Support I2C_SLAVE_STOP event for the read transactions(master
> > > > > read from
> > > > > slave)
> > > > >
> > > > > Signed-off-by: Biwen Li <biwen.li@nxp.com>
> > > > > ---
> > > > >  drivers/i2c/busses/i2c-imx.c | 1 +
> > > > >  1 file changed, 1 insertion(+)
> > > > >
> > > > > diff --git a/drivers/i2c/busses/i2c-imx.c
> > > > > b/drivers/i2c/busses/i2c-imx.c index
> > > > > 62517a41b32d..1fd0d87885d5 100644
> > > > > --- a/drivers/i2c/busses/i2c-imx.c
> > > > > +++ b/drivers/i2c/busses/i2c-imx.c
> > > > > @@ -1464,6 +1464,7 @@ static irqreturn_t
> > > > > i2c_imx_slave_isr(struct imx_i2c_struct *i2c_imx)
> > > > >  		ctl &= ~I2CR_MTX;
> > > > >  		imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
> > > > >  		imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
> > > > > +		i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
> > > > >  	}
> > > > >  	return IRQ_HANDLED;
> > > > >  }
> > > > > --
> > > > > 2.17.1
> > >
> > > Regards,
> > > Oleksij
> > > --
> > > Pengutronix e.K.                           |
> > > |
> > > Steuerwalder Str. 21                       |
> http://www.pengutronix.de/
> > > |
> > > 31137 Hildesheim, Germany                  | Phone:
> > > +49-5121-206917-0    |
> > > Amtsgericht Hildesheim, HRA 2686           | Fax:
> > > +49-5121-206917-5555 |
> 
> --
> Pengutronix e.K.                           |
> |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/
> |
> 31137 Hildesheim, Germany                  | Phone:
> +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:
> +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-13  1:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30 10:50 [PATCH] i2c: slave: support I2C_SLAVE_STOP event for the read transactions Biwen Li
2020-03-30 10:56 ` Biwen Li
2020-03-30 11:12   ` Oleksij Rempel
2020-03-31  8:48     ` Biwen Li (OSS)
2020-04-01  5:18       ` Oleksij Rempel
2020-04-13  1:47         ` Biwen Li (OSS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).