OSDN Git Service

phy: mscc: Use PHY_ID_MATCH_VENDOR to minimize PHY ID table
authorHarini Katakam <harini.katakam@amd.com>
Mon, 29 May 2023 12:20:16 +0000 (17:50 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Jun 2023 05:33:45 +0000 (22:33 -0700)
commit31605c01fb242806f5b8c9d08abe11328d514206
tree3c03a3be2f7ccf9e02559ca11d6d53464f1dcdea
parent748b442800e877a93a4fa1256418d0b66bdc55ce
phy: mscc: Use PHY_ID_MATCH_VENDOR to minimize PHY ID table

All the PHY devices variants specified have the same mask and
hence can be simplified to one vendor look up for 0x00070400.
Any individual config can be identified by PHY_ID_MATCH_EXACT
in the respective structure.

Signed-off-by: Harini Katakam <harini.katakam@amd.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mscc/mscc.h
drivers/net/phy/mscc/mscc_main.c