[Gta04-owner] QtMoko v41 - bluetooth problem

NeilBrown neilb at suse.de
Thu Mar 15 01:00:10 CET 2012

On Thu, 15 Mar 2012 08:25:38 +1100 NeilBrown <neilb at suse.de> wrote:

> > If you enable WLan (ifconfig wlan0 up) BT will work too (at least it
> > stops reporting errors). Maybe the chip is not powered up if only BT
> > is used. I have to test a bit more to find out what happens.
> I know what is happening here.
> The chip is powered OK, but while wlan0 is "down" the wifi reset is
> also held low (necessary for proper reset).
> And unfortunately the wifi reset is tied to the BT reset.  Oops.
> This might be messy to fix.
> If future boards could have separate GPIOs for these two reset lines, that
> would be good.

I've push the following patch into my 3.2-gta04 branch.
It isn't a real solution, but it helps.


From d5e5117af4606e31a8018bf312194169c6e0d306 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb at suse.de>
Date: Thu, 15 Mar 2012 10:58:10 +1100
Subject: [PATCH] HACK: partial work around  for BT/wlan reset problem

We need to reset the wifi chip when we power it off
(for complicated reasons that I half understand),
but resetting wifi also resets bluetooth - sad.

So don't hold the reset line while wifi is off, but just
pulse when wifi is turned off.

This is enough to make wifi happy without making BT unusable.

However if you shutdown wifi while bluetooth is active,
you will probably confuse bluetooth.

Signed-off-by: NeilBrown <neilb at suse.de>

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index 21ecf21..4e26fbe 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -64,6 +64,8 @@ static int fixed_voltage_disable(struct regulator_dev *dev)
 	if (gpio_is_valid(data->gpio)) {
 		gpio_set_value_cansleep(data->gpio, !data->enable_high);
 		data->is_enabled = false;
+		udelay(10);
+		gpio_set_value_cansleep(data->gpio, data->enable_high);
 	return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120315/1900c5ff/attachment.bin>

More information about the Gta04-owner mailing list