[PATCH iwl-next v5 3/6] ice: dpll: Use switch statements to handle pin states
Mekala, SunithaX D
sunithax.d.mekala at intel.com
Fri Sep 11 22:11:04 UTC 2026
> -----Original Message-----
> From: Sergey Temerkhanov <sergey.temerkhanov at intel.com>
> Sent: Monday, August 31, 2026 7:50 AM
> To: intel-wired-lan at lists.osuosl.org
> Cc: netdev at vger.kernel.org
> Subject: [PATCH iwl-next v5 3/6] ice: dpll: Use switch statements to handle pin states
>
> Use switch statements to handle pin states to make the code more
> readable. This also makes this code more future-proof, should any
> new states appear.
>
> This also changes how direction-mismatched state requests are handled in
> ice_dpll_sma_pin_state_set(). Previously, requesting CONNECTED on an
> INPUT-direction SMA pin or SELECTABLE on an OUTPUT-direction pin would
> fall through to ice_dpll_pin_disable() and return success. After this
> change those requests return -EINVAL without issuing a firmware command.
> Because the DPLL netlink core does not filter pin states by direction
> before calling the driver, this is a user-visible netlink API change.
>
> Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov at intel.com>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
> Reviewed-by: Przemyslaw Korba <przemyslaw.korba at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_dpll.c | 72 ++++++++++++++++++-----
> 1 file changed, 57 insertions(+), 15 deletions(-)
Tested-by: Sunitha Mekala <sunithax.d.mekala at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list