diff options
| author | 2022-03-17 16:13:07 +0530 | |
|---|---|---|
| committer | 2022-03-18 12:53:23 +0000 | |
| commit | cdea83cc103a737a235d77d0cd21ab8a1108a1d9 (patch) | |
| tree | 16fc854ad59126ebdad2d1b70d72ff6d391b90b6 /drivers/net/ethernet/microchip/lan743x_main.c | |
| parent | net: lan743x: Add support to display Tx Queue statistics (diff) | |
| download | wireguard-linux-cdea83cc103a737a235d77d0cd21ab8a1108a1d9.tar.xz wireguard-linux-cdea83cc103a737a235d77d0cd21ab8a1108a1d9.zip | |
net: lan743x: Add support for EEPROM
Add new the EEPROM read and write access functions and system lock
protection to access by devices for PCI11010/PCI11414 chips
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan743x_main.c')
| -rw-r--r-- | drivers/net/ethernet/microchip/lan743x_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index 7ace3ed35778..9ac0c2b96a15 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -2869,6 +2869,7 @@ static int lan743x_hardware_init(struct lan743x_adapter *adapter, adapter->used_tx_channels = PCI11X1X_USED_TX_CHANNELS; adapter->max_vector_count = PCI11X1X_MAX_VECTOR_COUNT; pci11x1x_strap_get_status(adapter); + spin_lock_init(&adapter->eth_syslock_spinlock); } else { adapter->max_tx_channels = LAN743X_MAX_TX_CHANNELS; adapter->used_tx_channels = LAN743X_USED_TX_CHANNELS; |
