linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] b43: Replace hardcoded Analog switch
@ 2008-09-03 10:31 Michael Buesch
  0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2008-09-03 10:31 UTC (permalink / raw)
  To: John Linville; +Cc: bcm43xx-dev, linux-wireless

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

Signed-off-by: Michael Buesch <mb@bu3sch.de>

---

John, please queue for the next merge window.


Index: wireless-testing/drivers/net/wireless/b43/main.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/b43/main.c	2008-09-03 11:58:23.000000000 +0200
+++ wireless-testing/drivers/net/wireless/b43/main.c	2008-09-03 12:27:03.000000000 +0200
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-03 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-03 10:31 [PATCH] b43: Replace hardcoded Analog switch Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).