Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: micrel: Update KSZ87xx PHY name

The KSZ8795 PHY ID is in fact used by KSZ8794/KSZ8795/KSZ8765 switches.
Update the PHY ID and name to reflect that, as this family of switches
is commonly refered to as KSZ87xx

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: David S. Miller <davem@davemloft.net>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: George McCollister <george.mccollister@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Marek Vasut and committed by
David S. Miller
1d951ba3 8b95599c

+3 -3
+2 -2
drivers/net/phy/micrel.c
··· 395 395 396 396 static int ksz8795_match_phy_device(struct phy_device *phydev) 397 397 { 398 - return ksz8051_ksz8795_match_phy_device(phydev, PHY_ID_KSZ8795); 398 + return ksz8051_ksz8795_match_phy_device(phydev, PHY_ID_KSZ87XX); 399 399 } 400 400 401 401 static int ksz9021_load_values_from_of(struct phy_device *phydev, ··· 1174 1174 .suspend = genphy_suspend, 1175 1175 .resume = genphy_resume, 1176 1176 }, { 1177 - .name = "Micrel KSZ8795", 1177 + .name = "Micrel KSZ87XX Switch", 1178 1178 /* PHY_BASIC_FEATURES */ 1179 1179 .config_init = kszphy_config_init, 1180 1180 .config_aneg = ksz8873mll_config_aneg,
+1 -1
include/linux/micrel_phy.h
··· 31 31 #define PHY_ID_KSZ886X 0x00221430 32 32 #define PHY_ID_KSZ8863 0x00221435 33 33 34 - #define PHY_ID_KSZ8795 0x00221550 34 + #define PHY_ID_KSZ87XX 0x00221550 35 35 36 36 #define PHY_ID_KSZ9477 0x00221631 37 37