forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/net/wireless/marvell/mwifiex/usb.c
....@@ -1,10 +1,10 @@
11 /*
2
- * Marvell Wireless LAN device driver: USB specific handling
2
+ * NXP Wireless LAN device driver: USB specific handling
33 *
4
- * Copyright (C) 2012-2014, Marvell International Ltd.
4
+ * Copyright 2011-2020 NXP
55 *
6
- * This software file (the "File") is distributed by Marvell International
7
- * Ltd. under the terms of the GNU General Public License Version 2, June 1991
6
+ * This software file (the "File") is distributed by NXP
7
+ * under the terms of the GNU General Public License Version 2, June 1991
88 * (the "License"). You may use, redistribute and/or modify this File in
99 * accordance with the terms and conditions of the License, a copy of which
1010 * is available by writing to the Free Software Foundation, Inc.,
....@@ -1145,10 +1145,9 @@
11451145 from_timer(timer_context, t, hold_timer);
11461146 struct mwifiex_adapter *adapter = timer_context->adapter;
11471147 struct usb_tx_data_port *port = timer_context->port;
1148
- unsigned long flags;
11491148 int err = 0;
11501149
1151
- spin_lock_irqsave(&port->tx_aggr_lock, flags);
1150
+ spin_lock_bh(&port->tx_aggr_lock);
11521151 err = mwifiex_usb_prepare_tx_aggr_skb(adapter, port, &skb_send);
11531152 if (err) {
11541153 mwifiex_dbg(adapter, ERROR,
....@@ -1175,7 +1174,7 @@
11751174 if (err == -1)
11761175 mwifiex_write_data_complete(adapter, skb_send, 0, -1);
11771176 unlock:
1178
- spin_unlock_irqrestore(&port->tx_aggr_lock, flags);
1177
+ spin_unlock_bh(&port->tx_aggr_lock);
11791178 }
11801179
11811180 /* This function write a command/data packet to card. */
....@@ -1186,7 +1185,6 @@
11861185 struct usb_card_rec *card = adapter->card;
11871186 struct urb_context *context = NULL;
11881187 struct usb_tx_data_port *port = NULL;
1189
- unsigned long flags;
11901188 int idx, ret;
11911189
11921190 if (test_bit(MWIFIEX_IS_SUSPENDED, &adapter->work_flags)) {
....@@ -1228,10 +1226,10 @@
12281226 }
12291227
12301228 if (adapter->bus_aggr.enable) {
1231
- spin_lock_irqsave(&port->tx_aggr_lock, flags);
1229
+ spin_lock_bh(&port->tx_aggr_lock);
12321230 ret = mwifiex_usb_aggr_tx_data(adapter, ep, skb,
12331231 tx_param, port);
1234
- spin_unlock_irqrestore(&port->tx_aggr_lock, flags);
1232
+ spin_unlock_bh(&port->tx_aggr_lock);
12351233 return ret;
12361234 }
12371235