diff options
| author | Yochai Hagvi <[email protected]> | 2024-01-25 13:40:55 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-02-20 18:22:15 +0000 |
| commit | e8335ef57c6816d81b24173ba88cc9b3f043687f (patch) | |
| tree | 675785f75dfcd70bcfd8ebe2ec08f9049a7757e7 /drivers/net/ethernet/intel/ice/ice_main.c | |
| parent | docs: netdev: update the link to the CI repo (diff) | |
| download | kernel-e8335ef57c6816d81b24173ba88cc9b3f043687f.tar.gz kernel-e8335ef57c6816d81b24173ba88cc9b3f043687f.zip | |
ice: fix connection state of DPLL and out pin
Fix the connection state between source DPLL and output pin, updating the
attribute 'state' of 'parent_device'. Previously, the connection state
was broken, and didn't reflect the correct state.
When 'state_on_dpll_set' is called with the value
'DPLL_PIN_STATE_CONNECTED' (1), the output pin will switch to the given
DPLL, and the state of the given DPLL will be set to connected.
E.g.:
--do pin-set --json '{"id":2, "parent-device":{"parent-id":1,
"state": 1 }}'
This command will connect DPLL device with id 1 to output pin with id 2.
When 'state_on_dpll_set' is called with the value
'DPLL_PIN_STATE_DISCONNECTED' (2) and the given DPLL is currently
connected, then the output pin will be disabled.
E.g:
--do pin-set --json '{"id":2, "parent-device":{"parent-id":1,
"state": 2 }}'
This command will disable output pin with id 2 if DPLL device with ID 1 is
connected to it; otherwise, the command is ignored.
Fixes: d7999f5ea64b ("ice: implement dpll interface to control cgu")
Reviewed-by: Wojciech Drewek <[email protected]>
Reviewed-by: Arkadiusz Kubalewski <[email protected]>
Signed-off-by: Yochai Hagvi <[email protected]>
Tested-by: Sunitha Mekala <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions
