* [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix
@ 2020-03-26 3:54 Bryan O'Donoghue
2020-03-30 20:10 ` Joe Hershberger
2020-06-12 21:15 ` Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Bryan O'Donoghue @ 2020-03-26 3:54 UTC (permalink / raw)
To: u-boot
Linux commit 232ba3a51cc2 ('net: phy: Micrel KSZ8061: link failure after
cable connect') implements a fix for the above errata.
This patch replicates that errata fix in an ksz8061 specific init routine.
Signed-off-by: Bryan O'Donoghue <bod@denx.de>
---
drivers/net/phy/micrel_ksz8xxx.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c
index e27fc45a28..a96813fcfe 100644
--- a/drivers/net/phy/micrel_ksz8xxx.c
+++ b/drivers/net/phy/micrel_ksz8xxx.c
@@ -81,6 +81,21 @@ static struct phy_driver KSZ8051_driver = {
.shutdown = &genphy_shutdown,
};
+static int ksz8061_config(struct phy_device *phydev)
+{
+ return phy_write(phydev, MDIO_MMD_PMAPMD, MDIO_DEVID1, 0xB61A);
+}
+
+static struct phy_driver KSZ8061_driver = {
+ .name = "Micrel KSZ8061",
+ .uid = 0x00221570,
+ .mask = 0xfffff0,
+ .features = PHY_BASIC_FEATURES,
+ .config = &ksz8061_config,
+ .startup = &genphy_startup,
+ .shutdown = &genphy_shutdown,
+};
+
static int ksz8081_config(struct phy_device *phydev)
{
int ret;
@@ -209,6 +224,7 @@ int phy_micrel_ksz8xxx_init(void)
phy_register(&KSZ804_driver);
phy_register(&KSZ8031_driver);
phy_register(&KSZ8051_driver);
+ phy_register(&KSZ8061_driver);
phy_register(&KSZ8081_driver);
phy_register(&KS8721_driver);
phy_register(&ksz8895_driver);
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix
2020-03-26 3:54 [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix Bryan O'Donoghue
@ 2020-03-30 20:10 ` Joe Hershberger
2020-06-12 21:15 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2020-03-30 20:10 UTC (permalink / raw)
To: u-boot
On Thu, Mar 26, 2020 at 6:25 AM Bryan O'Donoghue <bod@denx.de> wrote:
>
> Linux commit 232ba3a51cc2 ('net: phy: Micrel KSZ8061: link failure after
> cable connect') implements a fix for the above errata.
>
> This patch replicates that errata fix in an ksz8061 specific init routine.
>
> Signed-off-by: Bryan O'Donoghue <bod@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix
2020-03-26 3:54 [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix Bryan O'Donoghue
2020-03-30 20:10 ` Joe Hershberger
@ 2020-06-12 21:15 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2020-06-12 21:15 UTC (permalink / raw)
To: u-boot
On Thu, Mar 26, 2020 at 03:54:01AM +0000, Bryan O'Donoghue wrote:
> Linux commit 232ba3a51cc2 ('net: phy: Micrel KSZ8061: link failure after
> cable connect') implements a fix for the above errata.
>
> This patch replicates that errata fix in an ksz8061 specific init routine.
>
> Signed-off-by: Bryan O'Donoghue <bod@denx.de>
> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200612/17bcf448/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-12 21:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-26 3:54 [PATCH] net: phy: micrel: ksz8061 implement errata 80000688A fix Bryan O'Donoghue
2020-03-30 20:10 ` Joe Hershberger
2020-06-12 21:15 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox