net: phy: marvell: Import and use marvell_phy.h from Linux
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:08:06 +0000 (18:08 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:21:37 +0000 (14:21 +0200)
commitbf3dabb7de7979cbca8680e688911f36056204b1
tree922719fe156c70401c9cacded35a1306cdd3494c
parent75d28899e3e93b8fed241744c6687f9606310f72
net: phy: marvell: Import and use marvell_phy.h from Linux

Import marvell_phy.h from Linux 5.14.y as of commit
a5de4be0aaaa6 ("net: phy: marvell10g: fix differentiation of 88X3310 from 88X3340")
and use it in marvell PHY driver instead of current ad-hoc macros.
Two of the PHY IDs are unknown to Linux, 88E1149S and 88E1680, for
those two, only sync the length of the hexadecimal number to 8 digits.

No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/marvell.c
include/marvell_phy.h [new file with mode: 0644]