aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-05-27 16:07:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-05-29 13:10:33 -0400
commit09951ad4936948e03316fdb1fe636846f706136e (patch)
tree77ef0567528a4b8b47970e1b091acddb55ae8b01 /drivers/net/wireless/b43/main.c
parentcf42c4e5d3019d801ec6d033b63de5446a53af5c (diff)
b43: PHY: allow init optimizations by tracking PHY state
PHY has to be often re-initialized (e.g. during band switching after PHY reset), however some operations have to be performed only once (only power reset affects them). Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r--drivers/net/wireless/b43/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 3d67e6b08e1c..bf279170b483 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -5164,6 +5164,7 @@ static void b43_supported_bands(struct b43_wldev *dev, bool *have_2ghz_phy,
5164static int b43_wireless_core_attach(struct b43_wldev *dev) 5164static int b43_wireless_core_attach(struct b43_wldev *dev)
5165{ 5165{
5166 struct b43_wl *wl = dev->wl; 5166 struct b43_wl *wl = dev->wl;
5167 struct b43_phy *phy = &dev->phy;
5167 int err; 5168 int err;
5168 u32 tmp; 5169 u32 tmp;
5169 bool have_2ghz_phy = false, have_5ghz_phy = false; 5170 bool have_2ghz_phy = false, have_5ghz_phy = false;
@@ -5181,6 +5182,8 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5181 goto out; 5182 goto out;
5182 } 5183 }
5183 5184
5185 phy->do_full_init = true;
5186
5184 /* Try to guess supported bands for the first init needs */ 5187 /* Try to guess supported bands for the first init needs */
5185 switch (dev->dev->bus_type) { 5188 switch (dev->dev->bus_type) {
5186#ifdef CONFIG_B43_BCMA 5189#ifdef CONFIG_B43_BCMA