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 <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>

Reviewed-by: Marek Vasut <[email protected]>

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.

Reply via email to