Skip to content

Commit 78f42ae

Browse files
committed
Merge remote-tracking branch 'wireless-next/master' into HEAD
2 parents aa5a1b8 + 8708aac commit 78f42ae

267 files changed

Lines changed: 31191 additions & 3642 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/arm/mach-omap2/board-omap3evm.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static struct omap2_hsmmc_info mmc[] = {
309309
.gpio_wp = 63,
310310
.deferred = true,
311311
},
312-
#ifdef CONFIG_WL12XX_PLATFORM_DATA
312+
#ifdef CONFIG_WILINK_PLATFORM_DATA
313313
{
314314
.name = "wl1271",
315315
.mmc = 2,
@@ -450,7 +450,7 @@ static struct regulator_init_data omap3evm_vio = {
450450
.consumer_supplies = omap3evm_vio_supply,
451451
};
452452

453-
#ifdef CONFIG_WL12XX_PLATFORM_DATA
453+
#ifdef CONFIG_WILINK_PLATFORM_DATA
454454

455455
#define OMAP3EVM_WLAN_PMENA_GPIO (150)
456456
#define OMAP3EVM_WLAN_IRQ_GPIO (149)
@@ -563,7 +563,7 @@ static struct omap_board_mux omap35x_board_mux[] __initdata = {
563563
OMAP_PIN_OFF_NONE),
564564
OMAP3_MUX(GPMC_WAIT2, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
565565
OMAP_PIN_OFF_NONE),
566-
#ifdef CONFIG_WL12XX_PLATFORM_DATA
566+
#ifdef CONFIG_WILINK_PLATFORM_DATA
567567
/* WLAN IRQ - GPIO 149 */
568568
OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),
569569

@@ -601,7 +601,7 @@ static struct omap_board_mux omap36x_board_mux[] __initdata = {
601601
OMAP3_MUX(SYS_BOOT4, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
602602
OMAP3_MUX(SYS_BOOT5, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
603603
OMAP3_MUX(SYS_BOOT6, OMAP_MUX_MODE3 | OMAP_PIN_OFF_NONE),
604-
#ifdef CONFIG_WL12XX_PLATFORM_DATA
604+
#ifdef CONFIG_WILINK_PLATFORM_DATA
605605
/* WLAN IRQ - GPIO 149 */
606606
OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),
607607

@@ -637,7 +637,7 @@ static struct gpio omap3_evm_ehci_gpios[] __initdata = {
637637

638638
static void __init omap3_evm_wl12xx_init(void)
639639
{
640-
#ifdef CONFIG_WL12XX_PLATFORM_DATA
640+
#ifdef CONFIG_WILINK_PLATFORM_DATA
641641
int ret;
642642

643643
/* WL12xx WLAN Init */

‎drivers/bcma/bcma_private.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ int bcma_sprom_get(struct bcma_bus *bus);
4747
/* driver_chipcommon.c */
4848
#ifdef CONFIG_BCMA_DRIVER_MIPS
4949
void bcma_chipco_serial_init(struct bcma_drv_cc *cc);
50+
extern struct platform_device bcma_pflash_dev;
5051
#endif /* CONFIG_BCMA_DRIVER_MIPS */
5152

5253
/* driver_chipcommon_pmu.c */

‎drivers/bcma/driver_chipcommon_nflash.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* Licensed under the GNU/GPL. See COPYING for details.
66
*/
77

8+
#include "bcma_private.h"
9+
810
#include <linux/platform_device.h>
911
#include <linux/bcma/bcma.h>
1012

11-
#include "bcma_private.h"
12-
1313
struct platform_device bcma_nflash_dev = {
1414
.name = "bcma_nflash",
1515
.num_resources = 0,

‎drivers/bcma/driver_chipcommon_sflash.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* Licensed under the GNU/GPL. See COPYING for details.
66
*/
77

8+
#include "bcma_private.h"
9+
810
#include <linux/platform_device.h>
911
#include <linux/bcma/bcma.h>
1012

11-
#include "bcma_private.h"
12-
1313
static struct resource bcma_sflash_resource = {
1414
.name = "bcma_sflash",
1515
.start = BCMA_SOC_FLASH2,

‎drivers/bcma/driver_gpio.c‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio)
7373
bcma_chipco_gpio_pullup(cc, 1 << gpio, 0);
7474
}
7575

76+
static int bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
77+
{
78+
struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip);
79+
80+
if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC)
81+
return bcma_core_irq(cc->core);
82+
else
83+
return -EINVAL;
84+
}
85+
7686
int bcma_gpio_init(struct bcma_drv_cc *cc)
7787
{
7888
struct gpio_chip *chip = &cc->gpio;
@@ -85,6 +95,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc)
8595
chip->set = bcma_gpio_set_value;
8696
chip->direction_input = bcma_gpio_direction_input;
8797
chip->direction_output = bcma_gpio_direction_output;
98+
chip->to_irq = bcma_gpio_to_irq;
8899
chip->ngpio = 16;
89100
/* There is just one SoC in one device and its GPIO addresses should be
90101
* deterministic to address them more easily. The other buses could get

‎drivers/bcma/driver_mips.c‎

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,33 @@
1414

1515
#include <linux/bcma/bcma.h>
1616

17+
#include <linux/mtd/physmap.h>
18+
#include <linux/platform_device.h>
1719
#include <linux/serial.h>
1820
#include <linux/serial_core.h>
1921
#include <linux/serial_reg.h>
2022
#include <linux/time.h>
2123

24+
static const char *part_probes[] = { "bcm47xxpart", NULL };
25+
26+
static struct physmap_flash_data bcma_pflash_data = {
27+
.part_probe_types = part_probes,
28+
};
29+
30+
static struct resource bcma_pflash_resource = {
31+
.name = "bcma_pflash",
32+
.flags = IORESOURCE_MEM,
33+
};
34+
35+
struct platform_device bcma_pflash_dev = {
36+
.name = "physmap-flash",
37+
.dev = {
38+
.platform_data = &bcma_pflash_data,
39+
},
40+
.resource = &bcma_pflash_resource,
41+
.num_resources = 1,
42+
};
43+
2244
/* The 47162a0 hangs when reading MIPS DMP registers registers */
2345
static inline bool bcma_core_mips_bcm47162a0_quirk(struct bcma_device *dev)
2446
{
@@ -211,6 +233,7 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
211233
{
212234
struct bcma_bus *bus = mcore->core->bus;
213235
struct bcma_drv_cc *cc = &bus->drv_cc;
236+
struct bcma_pflash *pflash = &cc->pflash;
214237

215238
switch (cc->capabilities & BCMA_CC_CAP_FLASHT) {
216239
case BCMA_CC_FLASHT_STSER:
@@ -220,15 +243,20 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
220243
break;
221244
case BCMA_CC_FLASHT_PARA:
222245
bcma_debug(bus, "Found parallel flash\n");
223-
cc->pflash.present = true;
224-
cc->pflash.window = BCMA_SOC_FLASH2;
225-
cc->pflash.window_size = BCMA_SOC_FLASH2_SZ;
246+
pflash->present = true;
247+
pflash->window = BCMA_SOC_FLASH2;
248+
pflash->window_size = BCMA_SOC_FLASH2_SZ;
226249

227250
if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) &
228251
BCMA_CC_FLASH_CFG_DS) == 0)
229-
cc->pflash.buswidth = 1;
252+
pflash->buswidth = 1;
230253
else
231-
cc->pflash.buswidth = 2;
254+
pflash->buswidth = 2;
255+
256+
bcma_pflash_data.width = pflash->buswidth;
257+
bcma_pflash_resource.start = pflash->window;
258+
bcma_pflash_resource.end = pflash->window + pflash->window_size;
259+
232260
break;
233261
default:
234262
bcma_err(bus, "Flash type not supported\n");

‎drivers/bcma/main.c‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ static int bcma_register_cores(struct bcma_bus *bus)
149149
dev_id++;
150150
}
151151

152+
#ifdef CONFIG_BCMA_DRIVER_MIPS
153+
if (bus->drv_cc.pflash.present) {
154+
err = platform_device_register(&bcma_pflash_dev);
155+
if (err)
156+
bcma_err(bus, "Error registering parallel flash\n");
157+
}
158+
#endif
159+
152160
#ifdef CONFIG_BCMA_SFLASH
153161
if (bus->drv_cc.sflash.present) {
154162
err = platform_device_register(&bcma_sflash_dev);

‎drivers/net/wireless/ath/ath5k/phy.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,10 @@ ath5k_hw_update_noise_floor(struct ath5k_hw *ah)
16131613
ah->ah_cal_mask |= AR5K_CALIBRATION_NF;
16141614

16151615
ee_mode = ath5k_eeprom_mode_from_channel(ah->ah_current_channel);
1616+
if (WARN_ON(ee_mode < 0)) {
1617+
ah->ah_cal_mask &= ~AR5K_CALIBRATION_NF;
1618+
return;
1619+
}
16161620

16171621
/* completed NF calibration, test threshold */
16181622
nf = ath5k_hw_read_measured_noise_floor(ah);

‎drivers/net/wireless/ath/ath5k/reset.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,8 @@ ath5k_hw_commit_eeprom_settings(struct ath5k_hw *ah,
985985
return;
986986

987987
ee_mode = ath5k_eeprom_mode_from_channel(channel);
988+
if (WARN_ON(ee_mode < 0))
989+
return;
988990

989991
/* Adjust power delta for channel 14 */
990992
if (channel->center_freq == 2484)

‎drivers/net/wireless/ath/ath9k/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ config ATH9K_DEBUGFS
5858
bool "Atheros ath9k debugging"
5959
depends on ATH9K
6060
select MAC80211_DEBUGFS
61+
select RELAY
6162
---help---
6263
Say Y, if you need access to ath9k's statistics for
6364
interrupts, rate control, etc.

0 commit comments

Comments
 (0)