From: Vladimir Oltean <olteanv@gmail.com>
To: "Sverdlin, Alexander" <alexander.sverdlin@siemens.com>
Cc: "andrew@lunn.ch" <andrew@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"f.fainelli@gmail.com" <f.fainelli@gmail.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
"edumazet@google.com" <edumazet@google.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net] net: dsa: lan9303: avoid dsa_switch_shutdown()
Date: Wed, 11 Sep 2024 20:19:32 +0300 [thread overview]
Message-ID: <20240911171932.yqt5emtb4xmrdqgq@skbuf> (raw)
In-Reply-To: <7b9dc2a2494c2af62cd37e506bbad73a44819c36.camel@siemens.com>
On Wed, Sep 11, 2024 at 05:09:08PM +0000, Sverdlin, Alexander wrote:
> On Wed, 2024-09-11 at 19:04 +0200, Alexander Sverdlin wrote:
> > > > The difference between that and this is the extra lan9303_disable_processing_port()
> > > > calls here. But while that does disable RX on switch ports, it still doesn't wait
> > > > for pending RX frames to be processed. So the race is still open. No?
> >
> > besides from the below, I've expected this question... In the meanwhile I've tested
> > mv88e6xxx driver, but it (accidentally) has no MDIO race vs shutdown.
> > After some shallow review of the drivers I didn't find dev_get_drvdata <= mdio_read
> > pattern therefore I've posted this tested patch.
> >
> > If you'd prefer to solve this centrally for all drivers, I can test your patch from
> > the MDIO-drvdata PoV.
>
> But this would mean throwing away the whole
> "net: dsa: be compatible with masters which unregister on shutdown" work?
I did not propose anything (yet). I'm still trying to form a mental model
of what is broken and what works. Hence the request to test that change.
OTOH, this patch is equally throwing away the whole "net: dsa: be
compatible with masters which unregister on shutdown" work (for lan9303).
next prev parent reply other threads:[~2024-09-11 17:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-11 14:40 [PATCH net] net: dsa: lan9303: avoid dsa_switch_shutdown() A. Sverdlin
2024-09-11 16:28 ` Vladimir Oltean
2024-09-11 16:55 ` Sverdlin, Alexander
2024-09-11 17:04 ` Sverdlin, Alexander
2024-09-11 17:09 ` Sverdlin, Alexander
2024-09-11 17:19 ` Vladimir Oltean [this message]
2024-09-12 10:15 ` Vladimir Oltean
2024-09-13 16:16 ` Sverdlin, Alexander
2024-09-13 18:57 ` Vladimir Oltean
-- strict thread matches above, loose matches on Subject: below --
2024-09-04 9:07 Alexander Sverdlin
2024-09-11 14:33 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240911171932.yqt5emtb4xmrdqgq@skbuf \
--to=olteanv@gmail.com \
--cc=alexander.sverdlin@siemens.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox