]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: phy: realtek: Only force master mode on rtl8211b/c
authoroliver@schinagl.nl <oliver@schinagl.nl>
Tue, 8 Nov 2016 16:38:59 +0000 (17:38 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 8 Dec 2016 16:36:22 +0000 (10:36 -0600)
commitcebf3f558ee8b07f1a2f803fdeb9051603a308ac
tree12ef1aaab275ea42e8331e350fab379c5d4f6b18
parentcbe40e116d12a0bc6022e69e625ffb7140e29a60
net: phy: realtek: Only force master mode on rtl8211b/c

Commit 525d187af ("net: phy: Optionally force master mode for RTL PHY")
added the define to force the PHY into master mode. Unfortunatly this is
an all or nothing switch. So it applies to either all PHY's or no PHY's.

The bug that define tried to solve was a buggy PLL in the RTL8211C only.

The Olimex OLinuXino Lime2 has gotten an upgrade where the PHY was
replaced with an RTL8211E. With this define however, both lime2 boards
are either forced to master mode or not. We could of course have a
binary for each board, but the following patch fixes this by adding a
'quirk' to the flags to the rtl8211b and rtl8211c only. It is now
possible to force master mode, but only have it apply to the rtl8211b
and rtl8211c.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/realtek.c