]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: read the clause type from the PHY ID
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sun, 5 May 2019 11:17:03 +0000 (07:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2019 04:42:17 +0000 (21:42 -0700)
commit41e6e8eb7e6babbd9f21ee3b5fbacce051f1fbb0
tree27c17394364ce36135754d6d5ab0b3a7d436a35f
parenta9a69f533971957743fc3ba07613d0c6bd9e5c5d
bnxt_en: read the clause type from the PHY ID

Currently driver hard code Clause 45 based on speed supported by the
PHY. Instead read the clause type from the PHY ID provided as input
to the mdio ioctl.

Fixes: e0c3d3d2b0a7 ("bnxt_en: Add support for mdio read/write to external PHY")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c