On 5/22/2024 12:19, Vitaly Lifshits wrote:
Add support for ethtool.set_phys_id callback to initiate LED blinking
and stopping them by the ethtool interface.
This is done by storing the initial LEDCTL register value and restoring
it when LED blinking is terminated.
In addition, moved IGC_LEDCTL related defines from igc_leds.c to
igc_defines.h where they can be included by all of the igc module
files.
Signed-off-by: Vitaly Lifshits <[email protected]>
Signed-off-by: Menachem Fogel <[email protected]>
---
drivers/net/ethernet/intel/igc/igc_defines.h | 22 ++++++++++++++
drivers/net/ethernet/intel/igc/igc_ethtool.c | 32 ++++++++++++++++++++
drivers/net/ethernet/intel/igc/igc_hw.h | 2 ++
drivers/net/ethernet/intel/igc/igc_leds.c | 21 +------------
drivers/net/ethernet/intel/igc/igc_main.c | 2 ++
5 files changed, 59 insertions(+), 20 deletions(-)
Tested-by: Naama Meir <[email protected]>