845-b43-only-use-gpio-0-1-for-led.patch 695 B

1234567891011121314151617
  1. --- a/drivers/net/wireless/broadcom/b43/main.c
  2. +++ b/drivers/net/wireless/broadcom/b43/main.c
  3. @@ -2899,6 +2899,14 @@ static int b43_gpio_init(struct b43_wlde
  4. } else if (dev->dev->chip_id == 0x5354) {
  5. /* Don't allow overtaking buttons GPIOs */
  6. set &= 0x2; /* 0x2 is LED GPIO on BCM5354 */
  7. + } else if (dev->dev->chip_id == BCMA_CHIP_ID_BCM4716 ||
  8. + dev->dev->chip_id == BCMA_CHIP_ID_BCM47162 ||
  9. + dev->dev->chip_id == BCMA_CHIP_ID_BCM5356 ||
  10. + dev->dev->chip_id == BCMA_CHIP_ID_BCM5357 ||
  11. + dev->dev->chip_id == BCMA_CHIP_ID_BCM53572) {
  12. + /* just use gpio 0 and 1 for 2.4 GHz wifi led */
  13. + set &= 0x3;
  14. + mask &= 0x3;
  15. }
  16. if (0 /* FIXME: conditional unknown */ ) {