From: Florian Fainelli <f.fainelli@gmail.com>
To: Marco Felsch <m.felsch@pengutronix.de>,
davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org,
andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
zhengdejin5@gmail.com, richard.leitner@skidata.com
Cc: netdev@vger.kernel.org, kernel@pengutronix.de,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 4/5] net: phy: smsc: LAN8710/20: add phy refclk in support
Date: Tue, 8 Sep 2020 19:02:32 -0700 [thread overview]
Message-ID: <3fc73707-1cff-f42f-c96d-dc522bef61e5@gmail.com> (raw)
In-Reply-To: <20200908112520.3439-5-m.felsch@pengutronix.de>
On 9/8/2020 4:25 AM, Marco Felsch wrote:
> Add support to specify the clock provider for the phy refclk and don't
> rely on 'magic' host clock setup. Commit [1] tried to address this by
> introducing a flag and fixing the corresponding host. But this commit
> breaks the IRQ support since the irq setup during .config_intr() is
> thrown away because the reset comes from the side without respecting the
> current phy-state within the phy-state-machine. Furthermore the commit
> fixed the problem only for FEC based hosts other hosts acting like the
> FEC are not covered.
>
> This commit goes the other way around to address the bug fixed by [1].
> Instead of resetting the device from the side every time the refclk gets
> (re-)enabled it requests and enables the clock till the device gets
> removed. The phy is still rest but now within the phylib and with
> respect to the phy-state-machine.
s/rest/reset/
s/phy/PHY/
s/phy-state-machine/PHY library state machine/
(this applies to patch #5 as well)
With those things corrected:
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
next prev parent reply other threads:[~2020-09-09 2:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 11:25 [PATCH v2 0/5] SMSC: Cleanups and clock setup Marco Felsch
2020-09-08 11:25 ` [PATCH v2 1/5] net: phy: smsc: skip ENERGYON interrupt if disabled Marco Felsch
2020-09-09 1:58 ` Florian Fainelli
2020-09-09 8:43 ` Marco Felsch
2020-09-08 11:25 ` [PATCH v2 2/5] net: phy: smsc: simplify config_init callback Marco Felsch
2020-09-09 1:59 ` Florian Fainelli
2020-09-08 11:25 ` [PATCH v2 3/5] dt-bindings: net: phy: smsc: document reference clock Marco Felsch
2020-09-09 1:59 ` Florian Fainelli
2020-09-08 11:25 ` [PATCH v2 4/5] net: phy: smsc: LAN8710/20: add phy refclk in support Marco Felsch
2020-09-09 2:02 ` Florian Fainelli [this message]
2020-09-08 11:25 ` [PATCH v2 5/5] net: phy: smsc: LAN8710/20: remove PHY_RST_AFTER_CLK_EN flag Marco Felsch
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=3fc73707-1cff-f42f-c96d-dc522bef61e5@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=hkallweit1@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=m.felsch@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=richard.leitner@skidata.com \
--cc=robh+dt@kernel.org \
--cc=zhengdejin5@gmail.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;
as well as URLs for NNTP newsgroup(s).