
14 Apr
2023
14 Apr
'23
1:22 p.m.
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 directly, drivers such as dp83867 use this helper to manage the configuration of the phy correctly.
Reported-by: Tom Rini trini@konsulko.com Signed-off-by: Nishanth Menon nm@ti.com
Reviewed-by: Marek Vasut marek.vasut+renesas@mailbox.org
It would be nice if you could do a follow-up patch as suggested by Marek Behun and inline this function into the TI PHY driver instead.