forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/broadcom/b43legacy/radio.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23
34 Broadcom B43legacy wireless driver
....@@ -12,20 +13,6 @@
1213 Some parts of the code in this file are derived from the ipw2200
1314 driver Copyright(c) 2003 - 2004 Intel Corporation.
1415
15
- This program is free software; you can redistribute it and/or modify
16
- it under the terms of the GNU General Public License as published by
17
- the Free Software Foundation; either version 2 of the License, or
18
- (at your option) any later version.
19
-
20
- This program is distributed in the hope that it will be useful,
21
- but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
- GNU General Public License for more details.
24
-
25
- You should have received a copy of the GNU General Public License
26
- along with this program; see the file COPYING. If not, write to
27
- the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
28
- Boston, MA 02110-1301, USA.
2916
3017 */
3118
....@@ -95,7 +82,6 @@
9582 B43legacy_WARN_ON(status & B43legacy_MACCTL_RADIOLOCK);
9683 status |= B43legacy_MACCTL_RADIOLOCK;
9784 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status);
98
- mmiowb();
9985 udelay(10);
10086 }
10187
....@@ -108,7 +94,6 @@
10894 B43legacy_WARN_ON(!(status & B43legacy_MACCTL_RADIOLOCK));
10995 status &= ~B43legacy_MACCTL_RADIOLOCK;
11096 b43legacy_write32(dev, B43legacy_MMIO_MACCTL, status);
111
- mmiowb();
11297 }
11398
11499 u16 b43legacy_radio_read16(struct b43legacy_wldev *dev, u16 offset)
....@@ -141,7 +126,6 @@
141126 void b43legacy_radio_write16(struct b43legacy_wldev *dev, u16 offset, u16 val)
142127 {
143128 b43legacy_write16(dev, B43legacy_MMIO_RADIO_CONTROL, offset);
144
- mmiowb();
145129 b43legacy_write16(dev, B43legacy_MMIO_RADIO_DATA_LOW, val);
146130 }
147131
....@@ -329,15 +313,14 @@
329313 return ret[channel - 1];
330314 }
331315
332
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
316
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
333317 void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val)
334318 {
335319 b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_CTRL, offset);
336
- mmiowb();
337320 b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_DATA, (u16)val);
338321 }
339322
340
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
323
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
341324 s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset)
342325 {
343326 u16 val;
....@@ -348,7 +331,7 @@
348331 return (s16)val;
349332 }
350333
351
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
334
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
352335 void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val)
353336 {
354337 u16 i;
....@@ -362,7 +345,7 @@
362345 }
363346 }
364347
365
-/* http://bcm-specs.sipsolutions.net/NRSSILookupTable */
348
+/* https://bcm-specs.sipsolutions.net/NRSSILookupTable */
366349 void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev)
367350 {
368351 struct b43legacy_phy *phy = &dev->phy;