Commit 1495298d authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

b43: separate ssb core reset

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c4a2a081
...@@ -1143,10 +1143,9 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags) ...@@ -1143,10 +1143,9 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags)
} }
} }
void b43_wireless_core_reset(struct b43_wldev *dev, u32 flags) static void b43_ssb_wireless_core_reset(struct b43_wldev *dev, u32 flags)
{ {
u32 tmslow; u32 tmslow;
u32 macctl;
flags |= B43_TMSLOW_PHYCLKEN; flags |= B43_TMSLOW_PHYCLKEN;
flags |= B43_TMSLOW_PHYRESET; flags |= B43_TMSLOW_PHYRESET;
...@@ -1166,6 +1165,13 @@ void b43_wireless_core_reset(struct b43_wldev *dev, u32 flags) ...@@ -1166,6 +1165,13 @@ void b43_wireless_core_reset(struct b43_wldev *dev, u32 flags)
ssb_write32(dev->sdev, SSB_TMSLOW, tmslow); ssb_write32(dev->sdev, SSB_TMSLOW, tmslow);
ssb_read32(dev->sdev, SSB_TMSLOW); /* flush */ ssb_read32(dev->sdev, SSB_TMSLOW); /* flush */
msleep(1); msleep(1);
}
void b43_wireless_core_reset(struct b43_wldev *dev, u32 flags)
{
u32 macctl;
b43_ssb_wireless_core_reset(dev, flags);
/* Turn Analog ON, but only if we already know the PHY-type. /* Turn Analog ON, but only if we already know the PHY-type.
* This protects against very early setup where we don't know the * This protects against very early setup where we don't know the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment