aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/phy/micrel_ksz8xxx.c
diff options
context:
space:
mode:
authorJames Byrne <james.byrne@origamienergy.com>2019-03-06 12:48:27 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2019-05-14 14:43:33 -0500
commit77b508d34b9485c981b084e8169dd64b381935b6 (patch)
tree7293e7d7f1c8da570464271ab03d12959b293690 /drivers/net/phy/micrel_ksz8xxx.c
parent90176e3be63802bc8630bab651d169993f0f0763 (diff)
downloadu-boot-77b508d34b9485c981b084e8169dd64b381935b6.zip
u-boot-77b508d34b9485c981b084e8169dd64b381935b6.tar.gz
u-boot-77b508d34b9485c981b084e8169dd64b381935b6.tar.bz2
net: phy: micrel: Allow KSZ8xxx and KSZ90x1 to be used together
Commit d397f7c45b0b ("net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers") separated the KSZ8xxx and KSZ90x1 drivers and warns that you shouldn't select both of them due to a device ID clash between the KSZ9021 and the KS8721, asserting that "it is highly unlikely for a system to contain both a KSZ8000 and a KSZ9000 PHY". Unfortunately boards like the SAMA5D3xEK do contain both types of PHY, but fortunately the Linux Micrel PHY driver provides a solution by using different PHY ID and mask values to distinguish these chips. This commit contains the following changes: - The PHY ID and mask values for the KSZ9021 and the KS8721 now match those used by the Linux driver. - The warnings about not enabling both drivers have been removed. - The description for PHY_MICREL_KSZ8XXX has been corrected (these are 10/100 PHYs, not GbE PHYs). - PHY_MICREL_KSZ9021 and PHY_MICREL_KSZ9031 no longer select PHY_GIGE since this is selected by PHY_MICREL_KSZ90X1. - All of the relevant defconfig files have been updated now that PHY_MICREL_KSZ8XXX does not default to 'Y'. Signed-off-by: James Byrne <james.byrne@origamienergy.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy/micrel_ksz8xxx.c')
-rw-r--r--drivers/net/phy/micrel_ksz8xxx.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c
index 3411150..daa57ce 100644
--- a/drivers/net/phy/micrel_ksz8xxx.c
+++ b/drivers/net/phy/micrel_ksz8xxx.c
@@ -147,11 +147,13 @@ static struct phy_driver ksz8895_driver = {
.shutdown = &genphy_shutdown,
};
-/* Micrel used the exact same part number for the KSZ9021. */
+/* Micrel used the exact same model number for the KSZ9021,
+ * so the revision number is used to distinguish them.
+ */
static struct phy_driver KS8721_driver = {
.name = "Micrel KS8721BL",
- .uid = 0x221610,
- .mask = 0xfffff0,
+ .uid = 0x221618,
+ .mask = 0xfffffc,
.features = PHY_BASIC_FEATURES,
.config = &genphy_config,
.startup = &genphy_startup,