Re: [PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii 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 exposed a problem in range checking functions to identify the interface type. Though this specific api was'nt impacted (all the RGMII

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

2023-04-14 Thread Marek BehĂșn
On Thu, 13 Apr 2023 23:24:33 -0500 Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This exposed a problem in > range checking functions to identify the interface type. Though this > specific api was'nt

[PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii 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 exposed a problem in range checking functions to identify the interface type. Though this specific api was'nt impacted (all the RGMII definitions remained within range), this