diff options
| author | Nishanth Menon <[email protected]> | 2023-04-14 17:06:45 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-05-05 17:48:44 -0400 |
| commit | 09005c2fb288decb4010f062fdc87d0b82e57584 (patch) | |
| tree | 373d329312ff9f0ae57c04fbe594818c74297a5d /cmd | |
| parent | f1a63f7181784e6de92a9759e7d61e5ce9c00582 (diff) | |
net: phy: Make phy_interface_is_rgmii a switch statement
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 wasn't impacted (all the RGMII definitions remained
within range), this experience should be used to never to have to face
this kind of challenge again.
While it is possible for the phy drivers to use the enums directly,
drivers such as dp83867, dp83869, marvell, micrel_ksz90x1 etc use this
api.
Reported-by: Tom Rini <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Marek BehĂșn <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
