Re: [PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-14 Thread Marek Vasut
On 4/14/23 06:24, Nishanth Menon wrote: Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. While it is possible for the phy drivers to practically use the enum's

Re: [PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-14 Thread Marek BehĂșn
On Thu, 13 Apr 2023 23:24:32 -0500 Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This caused the range of > enums that this api was checking to go bad. > > While it is possible for the phy drivers to

[PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-13 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. While it is possible for the phy drivers to practically use the enum's directly, drivers such as dp83867 use