[PATCH] b43: prevent firmware on bcm5354 from taking over wrong GPIO pins
zajec5 at gmail.com
Tue Mar 6 16:04:01 EST 2012
2012/2/28 Hauke Mehrtens <hauke at hauke-m.de>:
> When using the bcm5354 (Soc with integrated LP-PHY Wifi) with a recent
> firmware >= 478.104 it runs out of memory after a very short time in
> OpenWrt after doing an active scan or any thing else where packages are
> send. This was cased by a gpio misconfiguration, the firmware triggered
> the GPIO pins used for buttons on some devices and that caused an other
> driver (OpenWrt diag) listening for these buttons irqs to send many
> messages to the user space.
> This patch fixes the bug for my devices (Asus WL-520GU) and makes it
> work with firmware 666.2. Now the firmware just uses LED GPIO pin
> number 1 and not the button pins any more.
> This is the GPIO Pin layout used on my device, see .
> GPIO pin layout:
> pin# name type
> 0 power led
> 1 wlan led
> 2 reset button
> 3 ses buttom
> This is the nvram configuration output of "nvram show |grep gpio"
> related nvram configuration:
> : https://dev.openwrt.org/browser/trunk/package/broadcom-diag/src/diag.c
Hauke: could you provide me
pr_info("Init value of B43_GPIO_CONTROL: 0x%X\n",
please? You can put proposed code right after
gpiodev = b43_ssb_gpio_dev(dev);
More information about the b43-dev