]> www.infradead.org Git - users/willy/pagecache.git/commit
ice: fix PHY Clock Recovery availability check
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Mon, 30 Sep 2024 18:36:22 +0000 (20:36 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 3 Dec 2024 18:11:52 +0000 (10:11 -0800)
commit01fd68e54794fb1e1fe95be38facf9bbafee9ca3
treee0110e520710c855c9b9b5b8389bb8136274e9ed
parentaf8edaeddbc52e53207d859c912b017fd9a77629
ice: fix PHY Clock Recovery availability check

To check if PHY Clock Recovery mechanic is available for a device, there
is a need to verify if given PHY is available within the netlist, but the
netlist node type used for the search is wrong, also the search context
shall be specified.

Modify the search function to allow specifying the context in the
search.

Use the PHY node type instead of CLOCK CONTROLLER type, also use proper
search context which for PHY search is PORT, as defined in E810
Datasheet [1] ('3.3.8.2.4 Node Part Number and Node Options (0x0003)' and
'Table 3-105. Program Topology Device NVM Admin Command').

[1] https://cdrdv2.intel.com/v1/dl/getContent/613875?explicitVersion=true

Fixes: 91e43ca0090b ("ice: fix linking when CONFIG_PTP_1588_CLOCK=n")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c