Skip to content

Commit

Permalink
b43: HT-PHY: make it BCMA-only
Browse files Browse the repository at this point in the history
HT-PHY was found only on BCM4331 which is a BCMA-based chipset. This is
reallly unlikely we will ever see HT-PHY on SSB thus make the whole code
BCMA specific. This will allow us to call various BCMA-specific
functions directly (without extra checks).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Mar 6, 2013
1 parent ef95e58 commit 7c2332b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/b43/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ config B43_PHY_LP

config B43_PHY_HT
bool "Support for HT-PHY (high throughput) devices"
depends on B43
depends on B43 && B43_BCMA
---help---
Support for the HT-PHY.

Expand Down
5 changes: 5 additions & 0 deletions drivers/net/wireless/b43/phy_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,11 @@ static int b43_phy_ht_op_init(struct b43_wldev *dev)
u16 tmp;
u16 clip_state[3];

if (dev->dev->bus_type != B43_BUS_BCMA) {
b43err(dev->wl, "HT-PHY is supported only on BCMA bus!\n");
return -EOPNOTSUPP;
}

b43_phy_ht_tables_init(dev);

b43_phy_mask(dev, 0x0be, ~0x2);
Expand Down

0 comments on commit 7c2332b

Please sign in to comment.