diff options
| author | Wei Fang <wei.fang@nxp.com> | 2026-07-20 09:43:08 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-27 16:31:53 -0700 |
| commit | c969fbc01d9ea95623e82eac396d8838bba4da07 (patch) | |
| tree | 952d999aaea4fa88cc80fddf26a78daad0f5d81b /tools/perf/scripts/python | |
| parent | 9db43e6f35db54f35742e23143cdd7251f952bfd (diff) | |
net: enetc: simplify enetc4_set_port_speed()
Since phylink may pass SPEED_UNKNOWN to mac_link_up, handle it
explicitly by defaulting to SPEED_10, then replace the switch statement
with a direct call to PCR_PSPEED_VAL(). Also update PCR_PSPEED_VAL() to
use FIELD_PREP() for proper field masking instead of an open-coded shift.
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260720014317.1059359-7-wei.fang@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
