Revert "igc: Export LEDs"
Subsystems (3)
PATCH 1/1 Revert "igc: Export LEDs"
This reverts commit cf8331825a8d10e46fa574fdf015a65cb5a6db86.
There are better Linux interfaces to export the different LED modes and blinking reasons.
Revert this patch for now and come up with better solution later.
---
Link to the discussion:
https://lkml.kernel.org/netdev/[email protected]/
drivers/net/ethernet/intel/Kconfig | 1 - drivers/net/ethernet/intel/igc/igc.h | 10 -- drivers/net/ethernet/intel/igc/igc_defines.h | 10 -- drivers/net/ethernet/intel/igc/igc_main.c | 132 ------------------- drivers/net/ethernet/intel/igc/igc_regs.h | 2 - 5 files changed, 155 deletions(-)
drivers/net/ethernet/intel/Kconfig +0 -1
@@ -335,7 +335,6 @@ config IGC tristate "Intel(R) Ethernet Controller I225-LM/I225-V support" default n depends on PCI - depends on LEDS_CLASS help This driver supports Intel(R) Ethernet Controller I225-LM/I225-V family of adapters.
drivers/net/ethernet/intel/igc/igc.h +0 -10
@@ -13,7 +13,6 @@#include <linux/ptp_clock_kernel.h> #include <linux/timecounter.h> #include <linux/net_tstamp.h> -#include <linux/leds.h> #include "igc_hw.h"
@@ -240,17 +239,8 @@ struct igc_adapter {struct timespec64 start;struct timespec64 period; } perout[IGC_N_PEROUT ]; - -/* LEDs */ -struct mutex led_mutex; -struct led_classdev led0; -struct led_classdev led1; -struct led_classdev led2; }; -#define led_to_igc (ldev, led) \ - container_of(ldev, struct igc_adapter, led) -void igc_up (struct igc_adapter *adapter);void igc_down (struct igc_adapter *adapter);int igc_open (struct net_device *netdev);
drivers/net/ethernet/intel/igc/igc_defines.h +0 -10
@@ -144,16 +144,6 @@#define IGC_CTRL_SDP0_DIR 0x00400000/* SDP0 Data direction */ #define IGC_CTRL_SDP1_DIR 0x00800000/* SDP1 Data direction */ -/* LED Control */ -#define IGC_LEDCTL_LED0_MODE_SHIFT 0 -#define IGC_LEDCTL_LED0_MODE_MASK GENMASK(3, 0) -#define IGC_LEDCTL_LED1_MODE_SHIFT 8 -#define IGC_LEDCTL_LED1_MODE_MASK GENMASK(11, 8) -#define IGC_LEDCTL_LED2_MODE_SHIFT 16 -#define IGC_LEDCTL_LED2_MODE_MASK GENMASK(19, 16) - -#define IGC_CONNSW_AUTOSENSE_EN 0x1 -/* As per the EAS the maximum supported size is 9.5KB (9728 bytes) */ #define MAX_JUMBO_FRAME_SIZE 0x2600
drivers/net/ethernet/intel/igc/igc_main.c +0 -132
150 lines not on this page · raw message
drivers/net/ethernet/intel/igc/igc_regs.h +0 -2
@@ -10,8 +10,6 @@#define IGC_EECD 0x00010/* EEPROM/Flash Control - RW */ #define IGC_CTRL_EXT 0x00018/* Extended Device Control - RW */ #define IGC_MDIC 0x00020/* MDI Control - RW */ -#define IGC_LEDCTL 0x00E00/* LED Control - RW */ -#define IGC_MDICNFG 0x00E04/* MDC/MDIO Configuration - RW */ #define IGC_CONNSW 0x00034/* Copper/Fiber switch control - RW */ #define IGC_VET 0x00038/* VLAN Ether Type - RW */ #define IGC_I225_PHPM 0x00E14/* I225 PHY Power Management */
Signature · 1 line
2.30.2
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Mon, 19 Jul 2021 12:16:40 +0200 you wrote:
This reverts commit
cf8331825a8d10e46fa574fdf015a65cb5a6db86.There are better Linux interfaces to export the different LED modes and blinking reasons.
Revert this patch for now and come up with better solution later.
[...]
Here is the summary with links:
- [net-next] Revert "igc: Export LEDs"
https://git.kernel.org/netdev/net-next/c/edd2e9d58646
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html