net: phy: Synchronize PHY interface modes with Linux
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 21 Mar 2023 17:25:54 +0000 (18:25 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:20:53 +0000 (14:20 +0200)
commit75d28899e3e93b8fed241744c6687f9606310f72
tree085a6d785ddc63cbd967d22cdc5be1f6c82f00e3
parent166ea497505b0612be9f714b403be8461e23c242
net: phy: Synchronize PHY interface modes with Linux

Synchronize PHY interface modes with Linux next 6.2.y commit:
0194b64578e90 ("net: phy: improve phy_read_poll_timeout")

Retain LX2160A/LX2162A PHY modes as those are not yet supported
by the Linux kernel, but isolate those with ifdeffery.

Isolate NCSI which are also not supported by Linux kernel. Note
that the ifdeffery cannot be avoided with IS_ENABLED() here due
to compilation of the entire conditional, which would fail in
case NCSI symbols are not available.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/phy.c
include/phy_interface.h