From: Michael Walle <michael@walle.cc>
To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Michael Walle <michael@walle.cc>
Subject: [PATCH net-next v2 0/9] net: phy: icplus: cleanups and new features
Date: Wed, 10 Feb 2021 17:47:37 +0100 [thread overview]
Message-ID: <20210210164746.26336-1-michael@walle.cc> (raw)
Cleanup the PHY drivers for IPplus devices and add PHY counters and MDIX
support for the IP101A/G.
Patch 5 adds a model detection based on the behavior of the PHY.
Unfortunately, the IP101A shares the PHY ID with the IP101G. But the latter
provides more features. Try to detect the newer model by accessing the page
selection register. If it is writeable, it is assumed, that it is a IP101G.
With this detection in place, we can now access registers >= 16 in a
correct way on the IP101G; that is by first selecting the correct page.
This might previouly worked, because no one ever set another active page
before booting linux.
The last two patches add the new features.
Michael Walle (9):
net: phy: icplus: use PHY_ID_MATCH_MODEL() macro
net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/G
net: phy: icplus: drop address operator for functions
net: phy: icplus: use the .soft_reset() of the phy-core
net: phy: icplus: split IP101A/G driver
net: phy: icplus: don't set APS_EN bit on IP101G
net: phy: icplus: fix paged register access
net: phy: icplus: add PHY counter for IP101G
net: phy: icplus: add MDI/MDIX support for IP101A/G
drivers/net/phy/icplus.c | 378 ++++++++++++++++++++++++++++++++-------
1 file changed, 318 insertions(+), 60 deletions(-)
--
2.20.1
next reply other threads:[~2021-02-10 16:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-10 16:47 Michael Walle [this message]
2021-02-10 16:47 ` [PATCH net-next v2 1/9] net: phy: icplus: use PHY_ID_MATCH_MODEL() macro Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 2/9] net: phy: icplus: use PHY_ID_MATCH_EXACT() for IP101A/G Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 3/9] net: phy: icplus: drop address operator for functions Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 4/9] net: phy: icplus: use the .soft_reset() of the phy-core Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 5/9] net: phy: icplus: split IP101A/G driver Michael Walle
2021-02-10 17:16 ` Heiner Kallweit
2021-02-10 16:47 ` [PATCH net-next v2 6/9] net: phy: icplus: don't set APS_EN bit on IP101G Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 7/9] net: phy: icplus: fix paged register access Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 8/9] net: phy: icplus: add PHY counter for IP101G Michael Walle
2021-02-10 16:47 ` [PATCH net-next v2 9/9] net: phy: icplus: add MDI/MDIX support for IP101A/G Michael Walle
2021-02-10 21:08 [PATCH net-next v2 0/9] net: phy: icplus: cleanups and new features Michael Walle
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=20210210164746.26336-1-michael@walle.cc \
--to=michael@walle.cc \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@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
all inboxes | Powered by JetHome®