ice: dpll: fix check for dpll input priority range
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tue, 31 Oct 2023 17:06:54 +0000 (18:06 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Nov 2023 18:02:15 +0000 (10:02 -0800)
commit4a4027f25dc3f39c2aafb3bf8926125c5378c9dc
treee8f7fac264f93615f1a972b5026f8b947ec9114b
parent7a1aba89ac54ccf6cad23a91a34c0ab24b1d7997
ice: dpll: fix check for dpll input priority range

Supported priority value for input pins may differ with regard of NIC
firmware version. E810T NICs with 3.20/4.00 FW versions would accept
priority range 0-31, where firmware 4.10+ would support the range 0-9
and extra value of 255.
Remove the in-range check as the driver has no information on supported
values from the running firmware, let firmware decide if given value is
correct and return extack error if the value is not supported.

Fixes: d7999f5ea64b ("ice: implement dpll interface to control cgu")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_dpll.c
drivers/net/ethernet/intel/ice/ice_dpll.h