From: Ioana Ciornei <ioana.ciornei@nxp.com>
To: "davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "andrew@lunn.ch" <andrew@lunn.ch>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"f.fainelli@gmail.com" <f.fainelli@gmail.com>
Subject: Re: [PATCH net] net: phy: aquantia: wait for the suspend/resume operations to finish
Date: Mon, 5 Sep 2022 17:00:27 +0000 [thread overview]
Message-ID: <20220905170026.ddiosfweckkwklhf@skbuf> (raw)
In-Reply-To: <20220905135833.1247547-1-ioana.ciornei@nxp.com>
On Mon, Sep 05, 2022 at 04:58:33PM +0300, Ioana Ciornei wrote:
> The Aquantia datasheet notes that after issuing a Processor-Intensive
> MDIO operation, like changing the low-power state of the device, the
> driver should wait for the operation to finish before issuing a new MDIO
> command.
>
> The new aqr107_wait_processor_intensive_op() function is added which can
> be used after these kind of MDIO operations. At the moment, we are only
> adding it at the end of the suspend/resume calls.
>
> The issue was identified on a board featuring the AQR113C PHY, on
> which commands like 'ip link (..) up / down' issued without any delays
> between them would render the link on the PHY to remain down.
> The issue was easy to reproduce with a one-liner:
> $ ip link set dev ethX down; ip link set dev ethX up; \
> ip link set dev ethX down; ip link set dev ethX up;
>
> Fixes: ac9e81c230eb ("net: phy: aquantia: add suspend / resume callbacks for AQR107 family")
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
I just stumbled upon the phy_read_mmd_poll_timeout() API which takes
care of polling on an MDIO register without having to declare a separate
read function.
I'll send a v2 on this with the change later today or tomorrow.
Ioana
prev parent reply other threads:[~2022-09-05 17:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 13:58 [PATCH net] net: phy: aquantia: wait for the suspend/resume operations to finish Ioana Ciornei
2022-09-05 17:00 ` Ioana Ciornei [this message]
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=20220905170026.ddiosfweckkwklhf@skbuf \
--to=ioana.ciornei@nxp.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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