]> git.baikalelectronics.ru Git - uboot.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)
commit73c13191003fe011c03a384b049483f79e058d2c
tree12ef1aaab275ea42e8331e350fab379c5d4f6b18
parentf67f48a4f0623cb0f5aeb6432a7ab2bfc6074624
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