Skip to contentSkip to conversation

b43: Replace hardcoded Analog switch

PATCH New Michael Buesch 1 participant 1 message Sep 3, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Replace hardcoded Analog switch

Replace a hardcoded Analog switch (which breaks on N-PHY) by a call to the switch_analog PHY operation.

---

John, please queue for the next merge window.

drivers/net/wireless/b43/main.c +2 -1
Index: wireless-testing/drivers/net/wireless/b43/main.c
===================================================================
@@ -2715,13 +2715,14 @@ static int b43_chip_init(struct b43_wlde
 		goto out;	/* firmware is released later */
 
 	err = b43_upload_initvals(dev);
 	if (err)
 		goto err_gpio_clean;
 
-	b43_write16(dev, 0x03E6, 0x0000);
+	/* Turn the Analog on and initialize the PHY. */
+	phy->ops->switch_analog(dev, 1);
 	err = b43_phy_init(dev);
 	if (err)
 		goto err_gpio_clean;
 
 	/* Disable Interference Mitigation. */
 	if (phy->ops->interf_mitigation)