]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phy: smsc: add comments for the LAN8742 phy ID mask.
authorYuiko Oshino <yuiko.oshino@microchip.com>
Mon, 9 May 2022 18:58:04 +0000 (11:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 May 2022 01:57:14 +0000 (18:57 -0700)
add comments for the LAN8742 phy ID mask in the previous patch.
add one missing tab in the LAN8742 phy ID line.

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

index 44fa9e00cc50a8eb0d000e8bb59473a6d9a54449..92225d0fc2464edb92ada633931deb1b6f6d09f0 100644 (file)
@@ -484,7 +484,11 @@ static struct phy_driver smsc_phy_driver[] = {
        .suspend        = genphy_suspend,
        .resume         = genphy_resume,
 }, {
-       .phy_id = 0x0007c130,   /* 0x0007c130 and 0x0007c131 */
+       .phy_id         = 0x0007c130,   /* 0x0007c130 and 0x0007c131 */
+       /* This mask (0xfffffff2) is to differentiate from
+        * LAN88xx (phy_id 0x0007c132)
+        * and allows future phy_id revisions.
+        */
        .phy_id_mask    = 0xfffffff2,
        .name           = "Microchip LAN8742",