Re: [PATCH net 3/3] net: hns3: use user configure after hardware reset when using kernel PHY

From: Andrew Lunn

Date: Fri Sep 19 2025 - 08:20:44 EST


On Fri, Sep 19, 2025 at 02:07:34PM +0800, Jijie Shao wrote:
>
> on 2025/9/18 1:11, Andrew Lunn wrote:
> > On Wed, Sep 17, 2025 at 08:29:54PM +0800, Jijie Shao wrote:
> > > When a reset occurring
> > Why would a reset occur? Is it the firmware crashing?
> >
> > > Consider the case that reset was happened consecutively.
> > Does that mean the firmware crashed twice in quick succession?
> >
> > Andrew
>
> Actually, We can trigger a reset by ethtool:
> ethtool --reset ethx...

For that, RTNL should be held. So the configuration cannot change
while the reset is happening. Two resets in quick success should not
be an issue, because they will be complete sequential, one finished
before the next one started.

Andrew