atlx.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) atlx.c (0290bd291cc0e0488e35e66bf39efcd7d9d9122b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* atlx.c -- common functions for Attansic network drivers
3 *
4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved.
5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com>
6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com>
7 * Copyright(c) 2007 Atheros Corporation. All rights reserved.
8 *

--- 169 unchanged lines hidden (view full) ---

178 atlx_read_phy_reg(&adapter->hw, 19, &phy_data);
179 spin_unlock_irqrestore(&adapter->lock, flags);
180}
181
182/**
183 * atlx_tx_timeout - Respond to a Tx Hang
184 * @netdev: network interface device structure
185 */
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* atlx.c -- common functions for Attansic network drivers
3 *
4 * Copyright(c) 2005 - 2006 Attansic Corporation. All rights reserved.
5 * Copyright(c) 2006 - 2007 Chris Snook <csnook@redhat.com>
6 * Copyright(c) 2006 - 2008 Jay Cliburn <jcliburn@gmail.com>
7 * Copyright(c) 2007 Atheros Corporation. All rights reserved.
8 *

--- 169 unchanged lines hidden (view full) ---

178 atlx_read_phy_reg(&adapter->hw, 19, &phy_data);
179 spin_unlock_irqrestore(&adapter->lock, flags);
180}
181
182/**
183 * atlx_tx_timeout - Respond to a Tx Hang
184 * @netdev: network interface device structure
185 */
186static void atlx_tx_timeout(struct net_device *netdev)
186static void atlx_tx_timeout(struct net_device *netdev, unsigned int txqueue)
187{
188 struct atlx_adapter *adapter = netdev_priv(netdev);
189 /* Do the reset outside of interrupt context */
190 schedule_work(&adapter->reset_dev_task);
191}
192
193/*
194 * atlx_link_chg_task - deal with link change event Out of interrupt context

--- 72 unchanged lines hidden ---
187{
188 struct atlx_adapter *adapter = netdev_priv(netdev);
189 /* Do the reset outside of interrupt context */
190 schedule_work(&adapter->reset_dev_task);
191}
192
193/*
194 * atlx_link_chg_task - deal with link change event Out of interrupt context

--- 72 unchanged lines hidden ---