20 Oct, 2013
1 commit
-
We want these fixes here too.
Signed-off-by: Greg Kroah-Hartman
17 Oct, 2013
1 commit
-
The dev_attrs field of struct bus_type is going away soon, dev_groups
should be used instead. This converts the bcma bus code to use the
correct field.Acked-by: Rafał Miłecki
Signed-off-by: Greg Kroah-Hartman
27 Sep, 2013
1 commit
-
This patch removes the bcma_core_pci_power_save() call from
the bcma_core_pci_{up,down}() functions as it tries to schedule
thus requiring to call them from non-atomic context. The function
bcma_core_pci_power_save() is now exported so the calling module
can explicitly use it in non-atomic context. This fixes the
'scheduling while atomic' issue reported by Tod Jackson and
Joe Perches.[ 13.210710] BUG: scheduling while atomic: dhcpcd/1800/0x00000202
[ 13.210718] Modules linked in: brcmsmac nouveau coretemp kvm_intel kvm cordic brcmutil bcma dell_wmi atl1c ttm mxm_wmi wmi
[ 13.210756] CPU: 2 PID: 1800 Comm: dhcpcd Not tainted 3.11.0-wl #1
[ 13.210762] Hardware name: Alienware M11x R2/M11x R2, BIOS A04 11/23/2010
[ 13.210767] ffff880177c92c40 ffff880170fd1948 ffffffff8169af5b 0000000000000007
[ 13.210777] ffff880170fd1ab0 ffff880170fd1958 ffffffff81697ee2 ffff880170fd19d8
[ 13.210785] ffffffff816a19f5 00000000000f4240 000000000000d080 ffff880170fd1fd8
[ 13.210794] Call Trace:
[ 13.210813] [] dump_stack+0x4f/0x84
[ 13.210826] [] __schedule_bug+0x43/0x51
[ 13.210837] [] __schedule+0x6e5/0x810
[ 13.210845] [] schedule+0x24/0x70
[ 13.210855] [] schedule_hrtimeout_range_clock+0x10c/0x150
[ 13.210867] [] ? update_rmtp+0x60/0x60
[ 13.210877] [] ? hrtimer_start_range_ns+0xf/0x20
[ 13.210887] [] schedule_hrtimeout_range+0xe/0x10
[ 13.210897] [] usleep_range+0x3b/0x40
[ 13.210910] [] bcma_pcie_mdio_set_phy.isra.3+0x4f/0x80 [bcma]
[ 13.210921] [] bcma_pcie_mdio_write.isra.4+0xbf/0xd0 [bcma]
[ 13.210932] [] bcma_pcie_mdio_writeread.isra.6.constprop.13+0x18/0x30 [bcma]
[ 13.210942] [] bcma_core_pci_power_save+0x3e/0x80 [bcma]
[ 13.210953] [] bcma_core_pci_up+0x2d/0x60 [bcma]
[ 13.210975] [] brcms_c_up+0xfc/0x430 [brcmsmac]
[ 13.210989] [] brcms_up+0x1d/0x20 [brcmsmac]
[ 13.211003] [] brcms_ops_start+0x298/0x340 [brcmsmac]
[ 13.211020] [] ? cfg80211_netdev_notifier_call+0xd2/0x5f0
[ 13.211030] [] ? packet_notifier+0xad/0x1d0
[ 13.211064] [] ieee80211_do_open+0x325/0xf80
[ 13.211076] [] ? __raw_notifier_call_chain+0x9/0x10
[ 13.211086] [] ieee80211_open+0x71/0x80
[ 13.211101] [] __dev_open+0x87/0xe0
[ 13.211109] [] __dev_change_flags+0x9c/0x180
[ 13.211117] [] dev_change_flags+0x23/0x70
[ 13.211127] [] devinet_ioctl+0x5b8/0x6a0
[ 13.211136] [] inet_ioctl+0x75/0x90
[ 13.211147] [] sock_do_ioctl+0x2b/0x70
[ 13.211155] [] sock_ioctl+0x71/0x2a0
[ 13.211169] [] do_vfs_ioctl+0x87/0x520
[ 13.211180] [] ? ____fput+0x9/0x10
[ 13.211198] [] ? task_work_run+0x9c/0xd0
[ 13.211202] [] SyS_ioctl+0x91/0xb0
[ 13.211208] [] system_call_fastpath+0x16/0x1b
[ 13.211217] NOHZ: local_softirq_pending 202The issue was introduced in v3.11 kernel by following commit:
commit aa51e598d04c6acf5477934cd6383f5a17ce9029
Author: Hauke Mehrtens
Date: Sat Aug 24 00:32:31 2013 +0200brcmsmac: use bcma PCIe up and down functions
replace the calls to bcma_core_pci_extend_L1timer() by calls to the
newly introduced bcma_core_pci_ip() and bcma_core_pci_down()Signed-off-by: Hauke Mehrtens
Cc: Arend van Spriel
Signed-off-by: John W. LinvilleThis fix has been discussed with Hauke Mehrtens [1] selection
option 3) and is intended for v3.12.Ref:
[1] http://mid.gmane.org/5239B12D.3040206@hauke-m.deCc: # 3.11.x
Cc: Tod Jackson
Cc: Joe Perches
Cc: Rafal Milecki
Cc: Hauke Mehrtens
Reviewed-by: Hante Meuleman
Signed-off-by: Arend van Spriel
Signed-off-by: John W. Linville
10 Sep, 2013
1 commit
-
On most 64 Bit systems unsigned long is 64 bit long and then -MAX_ERRNO
is out of the range of a u32 used to store the error code in.
This patch casts the -MAX_ERRNO to a u32 instead.This fixes a regression introduced in:
commit fd4edf197544bae1c77d84bad354aa7ce1d08ce1
Author: Hauke Mehrtens
Date: Mon Jul 15 13:15:08 2013 +0200bcma: fix handling of big addrl
Reported-by: Arend van Spriel
Signed-off-by: Hauke Mehrtens
Tested-by: Arend van Spriel
Signed-off-by: John W. Linville
27 Aug, 2013
4 commits
-
This enables or disables power saving on the PCIe bus when the wifi is
in operation or not.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This is not called any more, do not export it.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
The wifi driver should tell the PCIe core that it is now in operation
so that some workarounds can be applied and the power state is changed.
This should replace the call to bcma_core_pci_extend_L1timer by the
brcmsmac driver.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This PCIe controller does not support a max read request size above 128
bytes. The sold card I tested this controller with used 128 as default
value, but some new routers are sold with BCM4331 chips, which have a
default max read request size of 512. This device fails at the first
DMA reqeust whch is bigger than 126 bytes.This patch changes the max read request size to 128 for every device on
the PCIe link.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
23 Jul, 2013
4 commits
-
The return value of bcma_erom_get_addr_desc() is a unsigned value and it
could wrap around in the two complement writing. This happens for one
core in the BCM4708 SoC.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
It is better to return the actual error code than just -1.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
To make it possible to use the SoC host interface with ARM SoCs do not
depend on the MIPS driver any more.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
These cores were found on a BCM4708 (chipid 53010), this is a ARM SoC
with two Cortex A9 cores.bcma: bus0: Found chip with id 0xCF12, rev 0x00 and package 0x02
bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
bcma: bus0: Core 1 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
bcma: bus0: Core 6 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
bcma: bus0: Core 8 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
bcma: bus0: Core 9 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
bcma: bus0: Core 10 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
bcma: bus0: Core 11 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
bcma: bus0: Core 12 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
bcma: bus0: Core 13 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
bcma: bus0: Core 14 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
bcma: bus0: Core 15 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
bcma: bus0: Core 16 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
28 Jun, 2013
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
18 Jun, 2013
2 commits
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Broadocm updated their code, this may be needed for newer hardware or
some corner cases.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
13 Jun, 2013
2 commits
-
Most users are using bcma with a PCIe card, activate support for
this by default.Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
Conflicts:
drivers/net/wireless/ath/ath9k/Kconfig
net/mac80211/iface.c
23 May, 2013
3 commits
-
This is pretty much the same as rev 9, there are just 2 extra fields we
know about, but are not used/stored yet anyway.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Pass it as an argument to all functions. This is requires as newer SPROM
revisions have different lengths.Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
18 May, 2013
1 commit
-
PCIe and ARM CR4 cores were found on 14e4:43b1 AKA BCM4352.
Reported-by: Gabriel Thörnblad
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
10 May, 2013
1 commit
-
Pull MTD update from David Woodhouse:
- Lots of cleanups from Artem, including deletion of some obsolete
drivers- Support partitions larger than 4GiB in device tree
- Support for new SPI chips
* tag 'for-linus-20130509' of git://git.infradead.org/linux-mtd: (83 commits)
mtd: omap2: Use module_platform_driver()
mtd: bf5xx_nand: Use module_platform_driver()
mtd: denali_dt: Remove redundant use of of_match_ptr
mtd: denali_dt: Change return value to fix smatch warning
mtd: denali_dt: Use module_platform_driver()
mtd: denali_dt: Fix incorrect error check
mtd: nand: subpage write support for hardware based ECC schemes
mtd: omap2: use msecs_to_jiffies()
mtd: nand_ids: use size macros
mtd: nand_ids: improve LEGACY_ID_NAND macro a bit
mtd: add 4 Toshiba nand chips for the full-id case
mtd: add the support to parse out the full-id nand type
mtd: add new fields to nand_flash_dev{}
mtd: sh_flctl: Use of_match_ptr() macro
mtd: gpio: Use of_match_ptr() macro
mtd: gpio: Use devm_kzalloc()
mtd: davinci_nand: Use of_match_ptr()
mtd: dataflash: Use of_match_ptr() macro
mtd: remove h720x flash support
mtd: onenand: remove OneNAND simulator
...
05 Apr, 2013
1 commit
-
Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: Artem Bityutskiy
Cc: "Rafał Miłecki"
Signed-off-by: David Woodhouse
28 Mar, 2013
5 commits
-
These functions will be used by brcmsmac.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This function will be used by brcmsmac.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
Add some more chip IDs to bcma_pmu_get_alp_clock()
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
Instead of hard coding these values use the existing constants.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville -
This fixes some sparse warnings.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
26 Mar, 2013
1 commit
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
18 Mar, 2013
1 commit
-
Conflicts:
net/nfc/llcp/llcp.c
07 Mar, 2013
2 commits
-
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville -
Signed-off-by: Rafał Miłecki
Signed-off-by: John W. Linville
02 Mar, 2013
1 commit
-
…wireless into for-davem
28 Feb, 2013
1 commit
-
This spin lock was not initialized.
Signed-off-by: Hauke Mehrtens
Signed-off-by: John W. Linville
15 Feb, 2013
1 commit
-
Conflicts:
drivers/net/wireless/iwlwifi/dvm/tx.c
09 Feb, 2013
2 commits
-
Synchronize with 'net' in order to sort out some l2tp, wireless, and
ipv6 GRE fixes that will be built on top of in 'net-next'.Signed-off-by: David S. Miller
-
…wireless-next into for-davem
07 Feb, 2013
1 commit
-
…wireless into for-davem
06 Feb, 2013
1 commit
-
Conflicts:
drivers/net/ethernet/intel/e1000e/ethtool.c
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/wireless/iwlwifi/dvm/tx.c
net/ipv6/route.cThe ipv6 route.c conflict is simple, just ignore the 'net' side change
as we fixed the same problem in 'net-next' by eliminating cached
neighbours from ipv6 routes.The e1000e conflict is an addition of a new statistic in the ethtool
code, trivial.The vmxnet3 conflict is about one change in 'net' removing a guarding
conditional, whilst in 'net-next' we had a netdev_info() conversion.The iwlwifi conflict is dealing with a WARN_ON() conversion in
'net-next' vs. a revert happening in 'net'.Signed-off-by: David S. Miller
05 Feb, 2013
1 commit
-
This patch unregisters the gpio chip before bcma gets unloaded.
Signed-off-by: Hauke Mehrtens
Reported-by: Piotr Haber
Signed-off-by: John W. Linville