* backport a patch of ravb for v5.10 and v5.4
@ 2023-10-16 3:04 Yoshihiro Shimoda
2023-10-16 7:48 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Yoshihiro Shimoda @ 2023-10-16 3:04 UTC (permalink / raw)
To: Sasha Levin
Cc: stable@vger.kernel.org, Sergey Shtylyov, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Hello Sasha,
Thank you for backporting the latest ravb patches for stable.
I found one of patches [1] was queued into v5.10 and v5.4 [2].
However, another patch [3] was not queued into them. I guess
that this is because conflict happens.
The reason for the conflict is that the condition in the following
line is diffetent:
---
v5.10 or v5.4:
if (priv->chip_id != RCAR_GEN2) {
mainline:
if (info->multi_irqs) {
---
However, this difference can be ignored when backporting. For your
reference, I wrote a sample patch at the end of this email. Would
you backport such a patch to v5.10 and v5.4? I would appreciate it
if you could let me know if there is an official way to request one.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6864af61493113558c502b5cd0d754c19b93277
[2] https://www.spinics.net/lists/stable-commits/msg319990.html
https://www.spinics.net/lists/stable-commits/msg320008.html
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3971442870713de527684398416970cf025b4f89
---
drivers/net/ethernet/renesas/ravb_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
index a59da6a11976..f218bacec001 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -1706,6 +1706,8 @@ static int ravb_close(struct net_device *ndev)
of_phy_deregister_fixed_link(np);
}
+ cancel_work_sync(&priv->work);
+
if (priv->chip_id != RCAR_GEN2) {
free_irq(priv->tx_irqs[RAVB_NC], ndev);
free_irq(priv->rx_irqs[RAVB_NC], ndev);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: backport a patch of ravb for v5.10 and v5.4
2023-10-16 3:04 backport a patch of ravb for v5.10 and v5.4 Yoshihiro Shimoda
@ 2023-10-16 7:48 ` Greg KH
2023-10-16 9:28 ` Yoshihiro Shimoda
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2023-10-16 7:48 UTC (permalink / raw)
To: Yoshihiro Shimoda
Cc: Sasha Levin, stable@vger.kernel.org, Sergey Shtylyov,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
On Mon, Oct 16, 2023 at 03:04:36AM +0000, Yoshihiro Shimoda wrote:
> Hello Sasha,
>
> Thank you for backporting the latest ravb patches for stable.
> I found one of patches [1] was queued into v5.10 and v5.4 [2].
> However, another patch [3] was not queued into them. I guess
> that this is because conflict happens.
>
> The reason for the conflict is that the condition in the following
> line is diffetent:
> ---
> v5.10 or v5.4:
> if (priv->chip_id != RCAR_GEN2) {
>
> mainline:
> if (info->multi_irqs) {
> ---
>
> However, this difference can be ignored when backporting. For your
> reference, I wrote a sample patch at the end of this email. Would
> you backport such a patch to v5.10 and v5.4? I would appreciate it
> if you could let me know if there is an official way to request one.
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e6864af61493113558c502b5cd0d754c19b93277
> [2] https://www.spinics.net/lists/stable-commits/msg319990.html
> https://www.spinics.net/lists/stable-commits/msg320008.html
> [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3971442870713de527684398416970cf025b4f89
>
> ---
> drivers/net/ethernet/renesas/ravb_main.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
> index a59da6a11976..f218bacec001 100644
> --- a/drivers/net/ethernet/renesas/ravb_main.c
> +++ b/drivers/net/ethernet/renesas/ravb_main.c
> @@ -1706,6 +1706,8 @@ static int ravb_close(struct net_device *ndev)
> of_phy_deregister_fixed_link(np);
> }
>
> + cancel_work_sync(&priv->work);
> +
> if (priv->chip_id != RCAR_GEN2) {
> free_irq(priv->tx_irqs[RAVB_NC], ndev);
> free_irq(priv->rx_irqs[RAVB_NC], ndev);
> --
> 2.25.1
>
Can you please just send a working backport for the kernel trees you
wish to see this applied to? Merging patches like this is not easy and
doesn't usually result in a commit that we know actually works properly.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: backport a patch of ravb for v5.10 and v5.4
2023-10-16 7:48 ` Greg KH
@ 2023-10-16 9:28 ` Yoshihiro Shimoda
0 siblings, 0 replies; 3+ messages in thread
From: Yoshihiro Shimoda @ 2023-10-16 9:28 UTC (permalink / raw)
To: Greg KH
Cc: Sasha Levin, stable@vger.kernel.org, Sergey Shtylyov,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Hello Greg,
> From: Greg KH, Sent: Monday, October 16, 2023 4:49 PM
>
> On Mon, Oct 16, 2023 at 03:04:36AM +0000, Yoshihiro Shimoda wrote:
> > Hello Sasha,
> >
> > Thank you for backporting the latest ravb patches for stable.
> > I found one of patches [1] was queued into v5.10 and v5.4 [2].
> > However, another patch [3] was not queued into them. I guess
> > that this is because conflict happens.
> >
> > The reason for the conflict is that the condition in the following
> > line is diffetent:
> > ---
> > v5.10 or v5.4:
> > if (priv->chip_id != RCAR_GEN2) {
> >
> > mainline:
> > if (info->multi_irqs) {
> > ---
> >
> > However, this difference can be ignored when backporting. For your
> > reference, I wrote a sample patch at the end of this email. Would
> > you backport such a patch to v5.10 and v5.4? I would appreciate it
> > if you could let me know if there is an official way to request one.
> >
<snip URLs>
> >
> > ---
> > drivers/net/ethernet/renesas/ravb_main.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
> > index a59da6a11976..f218bacec001 100644
> > --- a/drivers/net/ethernet/renesas/ravb_main.c
> > +++ b/drivers/net/ethernet/renesas/ravb_main.c
> > @@ -1706,6 +1706,8 @@ static int ravb_close(struct net_device *ndev)
> > of_phy_deregister_fixed_link(np);
> > }
> >
> > + cancel_work_sync(&priv->work);
> > +
> > if (priv->chip_id != RCAR_GEN2) {
> > free_irq(priv->tx_irqs[RAVB_NC], ndev);
> > free_irq(priv->rx_irqs[RAVB_NC], ndev);
> > --
> > 2.25.1
> >
>
> Can you please just send a working backport for the kernel trees you
> wish to see this applied to? Merging patches like this is not easy and
> doesn't usually result in a commit that we know actually works properly.
I got it. I'll make/send such patches.
Best regards,
Yoshihiro Shimoda
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-16 9:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-16 3:04 backport a patch of ravb for v5.10 and v5.4 Yoshihiro Shimoda
2023-10-16 7:48 ` Greg KH
2023-10-16 9:28 ` Yoshihiro Shimoda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox