net: phy: microchip: add comments for the modified LAN88xx phy ID mask.
authorYuiko Oshino <yuiko.oshino@microchip.com>
Mon, 9 May 2022 18:58:03 +0000 (11:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 May 2022 01:57:14 +0000 (18:57 -0700)
add comments for the updated LAN88xx phy ID mask in the previous patch.

Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/microchip.c

index 131caf6..ccecee2 100644 (file)
@@ -345,6 +345,10 @@ static int lan88xx_config_aneg(struct phy_device *phydev)
 static struct phy_driver microchip_phy_driver[] = {
 {
        .phy_id         = 0x0007c132,
+       /* This mask (0xfffffff2) is to differentiate from
+        * LAN8742 (phy_id 0x0007c130 and 0x0007c131)
+        * and allows future phy_id revisions.
+        */
        .phy_id_mask    = 0xfffffff2,
        .name           = "Microchip LAN88xx",