Re: ssb: Delete an error message for a failed memory allocation in ssb_devices_register()

2017-05-24 Thread Kalle Valo
SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 17 May 2017 18:12:16 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > >

Re: [PATCHv4] wlcore: add wl1285 compatible

2017-05-24 Thread Kalle Valo
r...@kernel.org> > Acked-by: Kalle Valo <kv...@codeaurora.org> > Acked-by: Tony Lindgren <t...@atomide.com> > Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> My understanding is that there will be a new version. Please let me know if I misu

Re: [v2, 01/10] rt2x00: change function pointers for register accessors

2017-05-24 Thread Kalle Valo
Arnd Bergmann wrote: > This prepares the driver for changing all the 'read' register accessors > to return the value instead of passing it by reference. Since a lot > of them are used in callbacks, this takes care of the callbacks first, > adding a couple of helpers that will be

Re: wlcore: fix 64K page support

2017-05-24 Thread Kalle Valo
Arnd Bergmann wrote: > In the stable linux-3.16 branch, I ran into a warning in the > wlcore driver: > > drivers/net/wireless/ti/wlcore/spi.c: In function 'wl12xx_spi_raw_write': > drivers/net/wireless/ti/wlcore/spi.c:315:1: error: the frame size of 12848 > bytes is larger than

Re: [PATCHv4] wlcore: add wl1285 compatible

2017-05-22 Thread Kalle Valo
r...@kernel.org> > Acked-by: Kalle Valo <kv...@codeaurora.org> > Acked-by: Tony Lindgren <t...@atomide.com> > Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> > --- > Hi Dave, > > I previously send this in two patches, but its hard to a

Re: [PATCHv4] wlcore: add wl1285 compatible

2017-05-22 Thread Kalle Valo
David Miller <da...@davemloft.net> writes: > From: Kalle Valo <kv...@codeaurora.org> > Date: Mon, 22 May 2017 12:28:20 +0300 > >> Sebastian Reichel <sebastian.reic...@collabora.co.uk> writes: >> >>> Motorola Droid 4 uses a WL1285C. With differen

Re: [15/16] hostap: convert hostap_cmd_queue.usecnt from atomic_t to refcount_t

2017-05-22 Thread Kalle Valo
Elena Reshetova wrote: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. > >

Re: ray_cs: Avoid reading past end of buffer

2017-05-22 Thread Kalle Valo
Kees Cook wrote: > Using memcpy() from a buffer that is shorter than the length copied means > the destination buffer is being filled with arbitrary data from the kernel > rodata segment. In this case, the source was made longer, since it did not > match the destination

Re: [PATCHv4] wlcore: add wl1285 compatible

2017-05-22 Thread Kalle Valo
r...@kernel.org> > Acked-by: Kalle Valo <kv...@codeaurora.org> > Acked-by: Tony Lindgren <t...@atomide.com> > Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> A note to patchwork: this is for 4.12 -- https://patchwork.kernel.org/patch/9713645/ https:

Re: [v4] brcmfmac: btcoex: replace init_timer with setup_timer

2017-05-22 Thread Kalle Valo
Xie Qirong wrote: > setup_timer.cocci suggested the following improvement: > drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c:383:1-11: Use > setup_timer function for function on line 384. > > The combination of init_timer and setting up the data and function field

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-18 Thread Kalle Valo
gt; have a consistent state across all the register access functions. Can these all go to 4.13 or would you prefer me to push the first two 4.12? Or what? -- Kalle Valo

Re: [v2] mwifiex: pcie: de-duplicate buffer allocation code

2017-05-19 Thread Kalle Valo
Brian Norris wrote: > This code was duplicated as part of the PCIe FLR code added to this > driver. Let's de-duplicate it to: > > * make things easier to read (mwifiex_pcie_free_buffers() now has a >corresponding mwifiex_pcie_alloc_buffers()) > * reduce likelihood

Re: Make BCMA a menuconfig to ease disabling it all

2017-05-19 Thread Kalle Valo
Vincent Legoll wrote: > No need to get into the submenu to disable all BCMA-related config entries > > Signed-off-by: Vincent Legoll I would like to get an ack from someone before I'll apply this. Patch set to Deferred. --

Re: [01/11] mwifiex: fixup error cases in mwifiex_add_virtual_intf()

2017-05-19 Thread Kalle Valo
Brian Norris wrote: > If we fail to add an interface in mwifiex_add_virtual_intf(), we might > hit a BUG_ON() in the networking code, because we didn't tear things > down properly. Among the problems: > > (a) when failing to allocate workqueues, we fail to unregister

Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_attr_interfmode_store

2017-05-31 Thread Kalle Valo
ently. So I recommend that you also mention your tool in the commit log, makes understanding the background of the patch easier. -- Kalle Valo

Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_op_bss_info_changed

2017-05-31 Thread Kalle Valo
r than > sleeping with a lock held. Sure, but IMHO in general I think the practise of releasing the lock like this in a middle of function is dangerous as one can easily miss that upper and lower halves of the function are not actually atomic anymore. And in this case that it's under a conditional makes it even worse. -- Kalle Valo

Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

2017-06-05 Thread Kalle Valo
Brian Norris <briannor...@chromium.org> writes: > On Thu, Jun 01, 2017 at 12:15:45PM +0300, Kalle Valo wrote: >> Brian Norris <briannor...@chromium.org> writes: >> >> > In general, it's helpful to use the same code for device removal as for >> > d

Re: cw1200: Fix a sleep-in-atomic bug in cw1200_tx_confirm_cb and cw1200_cqm_bssloss_sm

2017-06-01 Thread Kalle Valo
Jia-Ju Bai wrote: > The driver may sleep under a spin lock, and the function call path is: > cw1200_tx_confirm_cb (acquire the lock by spin_lock) > __cw1200_cqm_bssloss_sm > cancel_work_sync --> may sleep > > cw1200_cqm_bssloss_sm > __cw1200_cqm_bssloss_sm >

Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

2017-06-01 Thread Kalle Valo
up if/when we bring the device back up. I don't know exactly what kind of reset this is about, but isn't this a quite intrusive solution? For example, phy name changes because of this? -- Kalle Valo

Re: [net-next] qtnfmac: remove duplicated assignment to mac

2017-06-01 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > mac is being assigned twice, remove redundant 2nd assignment. > > Detected by CoverityScan, CID#1437554 ("Incorrect expression") > > Signed-off-by: Colin Ian King >

Re: [PATCH] b43legacy: Fix a sleep-in-atomic bug in b43legacy_op_bss_info_changed

2017-05-31 Thread Kalle Valo
> + spin_lock_irqsave(>irq_lock, flags); To me this looks like a fragile workaround and not a real fix. You can easily add new race conditions with releasing the lock like this. -- Kalle Valo

Re: New vger mailing list request - linux-firmware

2017-06-08 Thread Kalle Valo
org (an alias I think, not sure) for submitting patches to linux-firmware.git. I think it will be confusing if we will have two separate linux-firmware destinations under kernel.org domain: linux-firmw...@kernel.org linux-firmw...@vger.kernel.org Maybe rename the new list to linux-fw-...@vger.kernel.org or something like that to make it more obvious which one is which? -- Kalle Valo

Re: linux-next: build failure after merge of the wireless-drivers-next tree

2017-06-08 Thread Kalle Valo
ons are required, correct? > > Dave Miller will need to apply that patch (or something similar) when > he merges the wireless-drivers-next tree into the net-next tree. I > will keep applying the patch each day until then. Thanks, I'll remind Dave about this when i submit the pull request (very soon now). -- Kalle Valo

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Kalle Valo
Caesar Wang <w...@rock-chips.com> writes: > 在 2017年06月13日 15:04, Kalle Valo 写道: >> Caesar Wang <w...@rock-chips.com> writes: >> >>> Kalle, >>> >>> 在 2017年06月13日 14:28, Kalle Valo 写道: >>>> Caesar Wang <w...@rock-chips

Re: linux-next: build warning after merge of the wireless-drivers tree

2017-06-15 Thread Kalle Valo
r code in firmware > callback") Thanks, for the report. I also noticed this, only after I had applied the patch, but hopefully Arend sends a patch to fix this soon. -- Kalle Valo

Re: ath6kl: fix spelling mistake: "Indicat" -> "Indicate"

2017-06-16 Thread Kalle Valo
Colin Ian King <colin.k...@canonical.com> wrote: > Trivial fix to spelling mistake in ath6kl_dbg debug message > > Signed-off-by: Colin Ian King <colin.k...@canonical.com> > Reviewed-by: Steve deRosier <deros...@gmail.com> > Signed-off-by: Kalle Valo <kv

Re: [PATCH v2 08/11] brcmsmac: make some local variables 'static const' to reduce stack size

2017-06-15 Thread Kalle Valo
arend.vanspr...@broadcom.com> > Signed-off-by: Arnd Bergmann <a...@arndb.de> I found the cover letter from lkml and apparently the plan is that Andrew will pick these three brcmsmac patches, so I'll drop them in wireless patchwork. -- Kalle Valo

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Kalle Valo
"& channel=%d freq=%d\n", > __func__, band, channel, freq); I don't see how this fixes anything, care to explain? And the title is quite vague. And I would rather fix the root cause, mwifiex folks please comment. -- Kalle Valo

Re: [-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

2017-06-13 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not > need to be in global scope. > > Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not > declared. Should

Re: [wireless-next] qtnfmac: check band before allocating cmd_skb to avoid resource leak

2017-06-13 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > The current code allocates cmd_skb and then will leak this if band->band > is an illegal value. It is simpler to sanity check the band first before > allocating cmd_skb so that we don't have to

Re: [PATCH] mwifiex: fixes the trivial print

2017-06-13 Thread Kalle Valo
Caesar Wang <w...@rock-chips.com> writes: > Kalle, > > 在 2017年06月13日 14:28, Kalle Valo 写道: >> Caesar Wang <w...@rock-chips.com> writes: >> >>> We have always met the unused log be printed as following. >>> >>> ... >>> [23193.52

Re: [PATCHv5] wlcore: add wl1285 compatible

2017-06-13 Thread Kalle Valo
r...@kernel.org> > Acked-by: Kalle Valo <kv...@codeaurora.org> > Acked-by: Tony Lindgren <t...@atomide.com> > Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> Patch applied to wireless-drivers-next.git, thanks. 078b30da3f07 wlcore: add wl1285 comp

Re: mwifiex: Replace semaphore async_sem with mutex

2017-06-13 Thread Kalle Valo
Binoy Jayan wrote: > The semaphore 'async_sem' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > Reviewed-by: Arnd Bergmann Patch applied to

Re: wlcore: spi: remove unnecessary variable

2017-06-13 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > Remove unnecessary variable and refactor the code. > > Addresses-Coverity-ID: 1365000 > Signed-off-by: Gustavo A. R. Silva Patch applied to wireless-drivers-next.git, thanks. c48c281e7236 wlcore: spi: remove

Re: brcmfmac: Fix kernel oops on resume when request firmware fails.

2017-06-12 Thread Kalle Valo
Enric Balletbo i Serra wrote: > When request firmware fails, brcmf_ops_sdio_remove is being called and > brcmf_bus freed. In such circumstancies if you do a suspend/resume cycle > the kernel hangs on resume due a NULL pointer dereference in resume > function. > >

Re: [PATCH 0/6] Constant Time Memory Comparisons Are Important

2017-06-11 Thread Kalle Valo
nters where I could learn more about this? -- Kalle Valo

Re: [PATCHv3] wlcore: add wl1285 compatible

2017-05-05 Thread Kalle Valo
...@kernel.org> > Signed-off-by: Sebastian Reichel <sebastian.reic...@collabora.co.uk> For the wireless part: Acked-by: Kalle Valo <kv...@codeaurora.org> > Hi Dave, > > I previously send this in two patches, but its hard to apply without > requiring multiple kernel

Re: [4/4] mwifiex: pcie: de-duplicate buffer allocation code

2017-05-04 Thread Kalle Valo
Brian Norris <briannor...@chromium.org> writes: > On Tue, Mar 21, 2017 at 02:14:05PM +0200, Kalle Valo wrote: >> What I could do is to wait for the patches 1-3 trickle down to w-d-next >> and then apply this patch. It usually takes few weeks, but with bad luck >>

Re: [PATCH 1/2] wcn36xx: Pass used skb to ieee80211_tx_status()

2017-05-04 Thread Kalle Valo
- but I'm likely > missing something. > >> As it is with your patch, it'll go and report the TX status without any >> TX status information - which is handled in wcn36xx_dxe_tx_ack_ind() >> for those frames needing it. >> > > Right, it doesn't sound desired. However, during normal operation I'm > not seeing IEEE80211_TX_CTL_REQ_TX_STATUS being set and as such > ieee80211_led_tx() is never called. So what's the conclusion? How do we get leds working? -- Kalle Valo

Re: new warning at net/wireless/util.c:1236

2017-05-03 Thread Kalle Valo
211] As this is with iwlwifi adding also Luca. There were some rate handling changes in iwlwifi, like commit 77e409455f41, but don't know if that could cause this. -- Kalle Valo

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-19 Thread Kalle Valo
at are in your tree but not yet in linux-next, as I don't > see > the warning and also see no reference to rt2800_bbp_read in rt2800lib.h I did a test build with current wireless-drivers-next and I also don't see any warnings. -- Kalle Valo

Re: [PATCH v2 00/10] rt2x00: rt2x00: improve calling conventions for register accessors

2017-05-19 Thread Kalle Valo
Arnd Bergmann <a...@arndb.de> writes: > On Fri, May 19, 2017 at 7:18 AM, Kalle Valo <kv...@codeaurora.org> wrote: >> Arnd Bergmann <a...@arndb.de> writes: >> >>> I've managed to split up my long patch into a series of reasonble >>> steps now. >

Re: net: ath: tx99: fixed a spelling issue

2017-05-19 Thread Kalle Valo
ammly wrote: > Fixed a spelling issue. > > Signed-off-by: Ammly Fredrick Patch applied to ath-next branch of ath.git, thanks. c46e2a848f29 ath9k: fix spelling in ath9k_tx99_init() -- https://patchwork.kernel.org/patch/9703211/

Re: wil6210: use memdup_user

2017-05-19 Thread Kalle Valo
Geliang Tang wrote: > Use memdup_user() helper instead of open-coding to simplify the code. > > Signed-off-by: Geliang Tang Patch applied to ath-next branch of ath.git, thanks. 9a49290919e1 wil6210: use memdup_user --

Re: [v2] ath9k: remove unnecessary code

2017-05-19 Thread Kalle Valo
"Gustavo A. R. Silva" <garsi...@embeddedor.com> wrote: > The array field eeprom_data in struct th9k_platform_data > is a fixed size array so it can never be NULL. > > Addresses-Coverity-ID: 1364903 > Cc: Arend Van Spriel <arend.vanspr...@broadcom.com> >

pull-request: wireless-drivers 2017-06-06

2017-06-06 Thread Kalle Valo
Kalle Valo (1): Merge tag 'iwlwifi-for-kalle-2017-06-05' of git://git.kernel.org/.../iwlwifi/iwlwifi-fixes Liad Kaufman (1): iwlwifi: mvm: support ibss in dqa mode Luca Coelho (3): iwlwifi: pcie: only use d0i3 in suspend/resume if system_pm is set to d0i3 iwlwifi: mvm

Re: [PATCH] wireless: iwlegacy: make const array static to shink object code size Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit

2017-09-22 Thread Kalle Valo
committing the patch. Yeah, I'll fix that when I commit this. But very good that you pointed it out, I might miss stuff like this. I'll also remove the "wireless:" prefix from the title. -- Kalle Valo

Re: [PATCH 1/1] wireless: broadcom: brcm80211: use setup_timer() helper

2017-09-21 Thread Kalle Valo
roadcom:" in the title. I can fix both of those. -- Kalle Valo

Re: [PATCH] ath10: mark PM functions as __maybe_unused

2017-09-21 Thread Kalle Valo
the #ifdef, this just marks both functions > as __maybe_unused, which is a more robust way to do this. > > Fixes: 32faa3f0ee50 ("ath10k: add the PCI PM core suspend/resume ops") > Signed-off-by: Arnd Bergmann <a...@arndb.de> Applied to ath-current branch in ath.git, thanks. (Having problems with my patchwork script so sending this manually) -- Kalle Valo

Re: RTL8192EE PCIe Wireless Network Adapter crashed with linux-4.13

2017-09-21 Thread Kalle Valo
ing > CONFIG_INTEL_IOMMU_DEFAULT_ON also breaks my system. But not all systems have iommu so check from dmesg that iommu is really enabled. -- Kalle Valo

Re: rsi: fix a dereference on adapter before it has been null checked

2017-09-20 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > The assignment of dev is dereferencing adapter before adapter has > been null checked, potentially leading to a null pointer dereference. > Fix this by simply moving the assignment of dev to a

Re: mwifiex: make const arrays static to shink object code size

2017-09-20 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Don't populate const arrays on the stack, instead make them static > Makes the object code smaller by nearly 300 bytes: > > Before: >text data bss dec hex filename >

Re: [1/2] b43: fix unitialized reads of ret by initializing the array to zero

2017-09-20 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > The u8 char array ret is not being initialized and elements outside > the range start to end contain just garbage values from the stack. > This results in a later scan of the array to read

Re: [PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-05 Thread Kalle Valo
; >>> > >>> > 于 2017年10月4日 GMT+08:00 下午5:02:17, Kalle Valo <kv...@codeaurora.org> >>写到: >>> > > Icenowy Zheng <icen...@aosc.io> writes: >>> > > >>> > > > Allwinner XR819 is a SDIO Wi-Fi chip, which ha

Re: [PATCH] mwifiex: Use put_unaligned_le32

2017-10-05 Thread Kalle Valo
vers/net/wireless/marvell/mwifiex/cmdevt.c > index 0edc5d6..e28e119 100644 > --- a/drivers/net/wireless/marvell/mwifiex/cmdevt.c > +++ b/drivers/net/wireless/marvell/mwifiex/cmdevt.c > @@ -17,6 +17,7 @@ > * this warranty disclaimer. > */ > > +#include I don't think this is correct. Should it be asm/unaligned.h? -- Kalle Valo

Re: [PATCH] mwifiex: Use put_unaligned_le32

2017-10-05 Thread Kalle Valo
oplevel header file which includes header files based on arch configuration. Also grepping the sources support that, nobody from drivers/ include access_ok.h directly. But I can't say that I fully understand how the header files work so please do correct me if I have mistaken. -- Kalle Valo

Re: [PATCH] mwifiex: Use put_unaligned_le32

2017-10-06 Thread Kalle Valo
n this case, the key is CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS. It >> seems that asm-generic/unaligned.h is set up to include different >> headers, based on the expected architecture behavior. >> > Yes, asm-generic/unaligned.h looks more appopriate and is most generic >

Re: [PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-04 Thread Kalle Valo
ere is no upstream xr819 wireless driver in drivers/net/wireless directory. Do we still accept bindings like this for out-of-tree drivers? -- Kalle Valo

Re: ath9k: make const array reg_hole_list static, reduces object code size

2017-10-04 Thread Kalle Valo
18 15248 0 72766 11c3e debug.o > > After: >text data bss dec hex filename > 57218 15344 0 72562 11b72 debug.o > > Signed-off-by: Colin Ian King <colin.k...@canonical.com> > Signed-off-by: Kalle Valo <kv.

Re: net/wireless/ray_cs: Convert timers to use

2017-10-10 Thread Kalle Valo
Kees Cook <keesc...@chromium.org> wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo <kv...@codeauror

Re: [v2] p54: don't unregister leds when they are not initialized

2017-10-10 Thread Kalle Valo
Andrey Konovalov wrote: > ieee80211_register_hw() in p54_register_common() may fail and leds won't > get initialized. Currently p54_unregister_common() doesn't check that and > always calls p54_unregister_leds(). The fix is to check priv->registered > flag before calling

Re: [PATCH] ath9k: debug: Simplify error checking

2017-10-13 Thread Kalle Valo
ul(buf, 0, ) || val > 1) > return -EINVAL; Same as with the ath10k patch, please keep the two if statements separate. -- Kalle Valo

Re: ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-10-13 Thread Kalle Valo
xes: 32faa3f0ee50 ("ath10k: add the PCI PM core suspend/resume ops") > Fixes: 77258d409ce4 ("ath10k: enable pci soc powersaving") > Signed-off-by: Brian Norris <briannor...@chromium.org> > Cc: Ryan Hsu <ryan...@qti.qualcomm.com> > Cc: Kalle Valo <kv.

Re: [v2] mwifiex: Use put_unaligned_le32

2017-10-13 Thread Kalle Valo
Himanshu Jha wrote: > Use put_unaligned_le32 rather than using byte ordering function and > memcpy which makes code clear. > Also, add the header file where it is declared. > > Done using Coccinelle and semantic patch used is : > > @ rule1 @ > identifier tmp;

Re: rsi: fix integer overflow warning

2017-10-13 Thread Kalle Valo
Arnd Bergmann wrote: > gcc produces a harmless warning about a recently introduced > signed integer overflow: > > drivers/net/wireless/rsi/rsi_91x_hal.c: In function 'rsi_prepare_mgmt_desc': > include/uapi/linux/swab.h:13:15: error: integer overflow in expression >

Re: usb/net/rt2x00: warning in rt2800_eeprom_word_index

2017-10-16 Thread Kalle Valo
automated Linux kernel testing. That's an important > capability. Not really following you. Are you saying that using WARN() prevents automated Linux kernel testing? -- Kalle Valo

Re: [PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-16 Thread Kalle Valo
s a specified variant of cw1200 family) >> >> Ah, so the upstream cw1200 driver supports xr819? Has anyone tested >> that? Or does cw1200 more changes than just adding the DT support? > > The support of XR819 in CW1200 driver is far more difficult than I > imagined -- the codedrop used in the mainlined CW1200 driver seems to > be so old that it's before XR819 (which seems to be based on CW1160), > and there's a large number of problems to adapt it to a modern CW1200 > variant. > > P.S. could you apply this device tree binding patch now? As I haven't seen any consensus that applying bindings document for out-of-tree drivers is ok so at least I'm not taking this. Though not sure what DT maintainers are planning to do. -- Kalle Valo

Re: [PATCH 00/58] networking: Convert timers to use timer_setup()

2017-10-17 Thread Kalle Valo
be bad). The thing is that I really do not have time to figure out for every patch via which tree it's supposed to go. For now I'll just drop all your timer_setup() related patches from my queue and I'll assume Dave will take those. Ok? [1] https://patchwork.kernel.org/project/linux-wireless/list/ -- Kalle Valo

Re: bcma: keep *config menu together

2017-10-13 Thread Kalle Valo
Randy Dunlap wrote: > From: Randy Dunlap > > Use "if BCMA"/"endif" around all Kconfig symbols so that they are > kept together in *config menus instead of showing up in unexpected > places. Also remove "depends on BCMA" since this is handled by the

Re: [PATCH] ath10k: spectral: Simplify error checking

2017-10-13 Thread Kalle Valo
f (kstrtoul(buf, 0, ) || val > 255) > return -EINVAL; Removing the check for negative is correct but I don't think you are simplifying anything, on the contrary it's harder to read. Please keep the two if statements separate. -- Kalle Valo

Re: [PATCH] wcn36xx: Remove unnecessary rcu_read_unlock in wcn36xx_bss_info_changed

2017-10-11 Thread Kalle Valo
at one. Kalle can you please include > this in a v4.14-rc pull request? > > > : > > Fixes: 39efc7cc7ccf ("wcn36xx: Introduce mutual exclusion of fw > configuration") > >> Signed-off-by: Jia-Ju Bai <baijiaju1...@163.com> > > Acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Ok, I'll queue this to 4.14. -- Kalle Valo

Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs

2017-10-11 Thread Kalle Valo
like pointless patch churn > for zero gain and it's just ugly. In general I find it useful to mark fall through cases. And it's just a comment with two words, so they cannot hurt your eyes that much. -- Kalle Valo

pull-request: wireless-drivers 2017-10-13

2017-10-13 Thread Kalle Valo
): iwlwifi: stop dbgc recording before stopping DMA Johannes Berg (1): iwlwifi: nvm-parse: unify channel flags printing Kalle Valo (1): Merge tag 'iwlwifi-for-kalle-2017-10-06' of git://git.kernel.org/.../iwlwifi/iwlwifi-fixes Kevin Cernekee (1): brcmfmac: Add check for short

Re: rtlwifi: Remove unused cur_rfstate variables

2017-10-13 Thread Kalle Valo
Christos Gkekas wrote: > Clean up unused cur_rfstate variables in rtl8188ee, rtl8723ae, rtl8723be > and rtl8821ae. > > Signed-off-by: Christos Gkekas Patch applied to wireless-drivers-next.git, thanks. 76d7b12cbbe2 rtlwifi: Remove unused

Re: [PATCH] iwlwifi: mvm: only send LEDS_CMD when the FW supports it

2017-09-07 Thread Kalle Valo
<luciano.coe...@intel.com> Linus, do you want to apply this directly or should we take it via the normal route (wireless-drivers -> net)? If your prefer the latter when I'm planning to submit this to Dave in a day or two and expecting it to get to your tree in about a week, depending of course what is Dave's schedule. -- Kalle Valo

Re: [PATCH] ath10: mark PM functions as __maybe_unused

2017-09-07 Thread Kalle Valo
the #ifdef, this just marks both functions > as __maybe_unused, which is a more robust way to do this. > > Fixes: 32faa3f0ee50 ("ath10k: add the PCI PM core suspend/resume ops") > Signed-off-by: Arnd Bergmann <a...@arndb.de> Thanks. But the title should have "ath10k:", I'll fix that. -- Kalle Valo

pull-request: wireless-drivers 2017-09-08

2017-09-08 Thread Kalle Valo
Hi Dave, few fixes to net tree for 4.14. Note that this pull request contains the iwlwifi fix Linus hopes to have by end of the merge window. Please let me know if there are any problems. Kalle The following changes since commit 8e0deed92406d93ae0365cb8a6134db5721e7aca: tipc: remove

Re: [GIT] Networking

2017-08-30 Thread Kalle Valo
David Miller <da...@davemloft.net> writes: > From: Kalle Valo <kv...@codeaurora.org> > Date: Wed, 30 Aug 2017 17:45:31 +0300 > >> Pavel Machek <pa...@ucw.cz> writes: >> >>> Could we get this one in? >>> >>> wl1251 miss

Re: rsi: remove memset before memcpy

2017-08-30 Thread Kalle Valo
Himanshu Jha wrote: > calling memcpy immediately after memset with the same region of memory > makes memset redundant. > > Signed-off-by: Himanshu Jha Patch applied to wireless-drivers-next.git, thanks. 66a3479e1217 rsi: remove memset

Re: iwlwifi: mvm: only send LEDS_CMD when the FW supports it

2017-09-07 Thread Kalle Valo
Luciano Coelho wrote: > From: Luca Coelho > > The LEDS_CMD command is only supported in some newer FW versions > (e.g. iwlwifi-8000C-31.ucode), so we can't send it to older versions > (such as iwlwifi-8000C-27.ucode). > > To fix this, check for a new

Re: [PATCH] iwlwifi: mvm: only send LEDS_CMD when the FW supports it

2017-09-07 Thread Kalle Valo
Linus Torvalds <torva...@linux-foundation.org> writes: > On Thu, Sep 7, 2017 at 5:39 AM, Kalle Valo <kv...@codeaurora.org> wrote: >> >> Linus, do you want to apply this directly or should we take it via the >> normal route (wireless-drivers -> net)? If your pr

Re: [1/1] wireless: broadcom: brcm80211: use setup_timer() helper

2017-09-25 Thread Kalle Valo
d from that onwards. You have only onetime chance to fix it yourself when you register to patchwork. After that only server admins can fix it and you need to contact kernel.org helpdesk. Apparently in recent versions of patchwork this should work better but kernel.org hasn't updated it yet. -- Kalle Valo

Re: [1/1] brcmfmac: use setup_timer() helper

2017-09-25 Thread Kalle Valo
Allen Pais wrote: > Use setup_timer function instead of initializing timer with the > function and data fields. > > Signed-off-by: Allen Pais Patch applied to wireless-drivers-next.git, thanks. 30ac40763939 brcmfmac: use setup_timer() helper --

Re: brcmsmac: make const array ucode_ofdm_rates static, reduces object code size

2017-09-25 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Don't populate const array ucode_ofdm_rates on the stack, instead make it > static. Makes the object code smaller by 100 bytes: > > Before: >text data bss dec hex

Re: mwifiex: make const array tos_to_ac static, reduces object code size

2017-09-25 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Don't populate the read-only const array tos_to_ac on the stack, > instead make it static. Makes the object code smaller by 250 bytes: > > Before: >text data bss dec

Re: b43: make const arrays static, reduces object code size

2017-09-25 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Don't populate const arrays on the stack, instead make them static. > Makes the object code smaller by over 60 bytes: > > Before: >text data bss dec hex filename >

Re: iwlegacy: make const array static to shink object code size

2017-09-25 Thread Kalle Valo
Colin Ian King wrote: > From: Colin Ian King > > Don't populate const array ac_to_fifo on the stack in an inlined > function, instead make it static. Makes the object code smaller > by over 800 bytes: > >text data bss

Re: [PATCH 2/6] ath9k: add a quirk to set use_msi automatically

2017-09-26 Thread Kalle Valo
rnel.org/r/20170925041153.26574-1-dr...@endlessm.com -- Kalle Valo

Re: [PATCH 05/18] net: use ARRAY_SIZE

2017-10-02 Thread Kalle Valo
13 files changed, 177 insertions(+), 413 deletions(-) We have a tree for wireless so usually it's better to submit wireless changes on their own but here I assume Dave will apply this to his tree. If not, please resubmit the wireless part in a separate patch. -- Kalle Valo

Re: [v4, 1/9] brcmsmac: make some local variables 'static const' to reduce stack size

2017-10-02 Thread Kalle Valo
Arnd Bergmann wrote: > With KASAN and a couple of other patches applied, this driver is one > of the few remaining ones that actually use more than 2048 bytes of > kernel stack: > > broadcom/brcm80211/brcmsmac/phy/phy_n.c: In function > 'wlc_phy_workarounds_nphy_gainctrl': >

Re: [v4,2/9] brcmsmac: split up wlc_phy_workarounds_nphy

2017-10-02 Thread Kalle Valo
Arnd Bergmann wrote: > The stack consumption in this driver is still relatively high, with one > remaining warning if the warning level is lowered to 1536 bytes: > > drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c:17135:1: error: > the frame size of 1880 bytes is

Re: usb/wireless/rsi_91x: use-after-free write in __run_timers

2017-09-24 Thread Kalle Valo
setup. Apparently you are running syzkaller on QEMU but what I don't understand is how the rsi device comes into the picture. Did you have a rsi usb device connected to the virtual machine or what? Or does syzkaller do some kind of magic here? -- Kalle Valo

Re: ath10k: make ath10k_hw_ce_regs const

2017-09-25 Thread Kalle Valo
l <bhumi...@gmail.com> > Signed-off-by: Kalle Valo <kv...@qca.qualcomm.com> Patch applied to ath-next branch of ath.git, thanks. 496cbf3ebb6b ath10k: make ath10k_hw_ce_regs const -- https://patchwork.kernel.org/patch/9951901/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

pull-request: wireless-drivers 2017-09-25

2017-09-25 Thread Kalle Valo
Kalle Valo (2): Merge tag 'iwlwifi-for-kalle-2017-09-15' of git://git.kernel.org/.../iwlwifi/iwlwifi-fixes Merge ath-current from ath.git Luca Coelho (4): iwlwifi: mvm: use IWL_HCMD_NOCOPY for MCAST_FILTER_CMD iwlwifi: mvm: handle FIF_ALLMULTI when setting multicast

Re: [PATCH] brcm80211: make const array ucode_ofdm_rates static, reduces object code size

2017-09-24 Thread Kalle Valo
Arend van Spriel <arend.vanspr...@broadcom.com> writes: > Please use 'brcmsmac:' as prefix instead of 'brcm80211:'. I can fix that. -- Kalle Valo

Re: [8/10] ath9k: Use ARRAY_SIZE macro

2017-09-25 Thread Kalle Valo
s*\[\s*0\s*\]\s*\) > /ARRAY_SIZE(\1)/g' and manual check/verification. > > Signed-off-by: Thomas Meyer <tho...@m3y3r.de> > Signed-off-by: Kalle Valo <kv...@qca.qualcomm.com> Patch applied to ath-next branch of ath.git, thanks. 896cbefadf62 ath9k: Use ARRAY_SIZE

Re: [v2] ath9k: remove cast to void pointer

2017-09-25 Thread Kalle Valo
; void* e; > type T; > identifier f; > @@ > > ( > *((T *)e) > | > ((T *)x)[...] > | > ((T *)x)->f > | > - (T *) > e > ) > > > Signed-off-by: Himanshu Jha <himanshujha199...@gmail.com> > Signed-off-by: Kalle Valo <kv...@

Re: [PATCH v4 1/9] brcmsmac: make some local variables 'static const' to reduce stack size

2017-09-24 Thread Kalle Valo
ble backports. > > The other two patches do not need to be backported. > > Acked-by: Arend van Spriel <arend.vanspr...@broadcom.com> > Signed-off-by: Arnd Bergmann <a...@arndb.de> I'll queue this and the two following brcmsmac patches for 4.14. Also I'll add (only for this patch): Cc: <sta...@vger.kernel.org> -- Kalle Valo

Re: [1/1] wireless: broadcom: brcm80211: use setup_timer() helper

2017-09-25 Thread Kalle Valo
Allen wrote: > Use setup_timer function instead of initializing timer with the > function and data fields. > > Signed-off-by: Allen Pais Also your name in patchwork is just "Allen", without your lastname. I can fix it this time, but please

Re: usb/wireless/rsi_91x: use-after-free write in __run_timers

2017-09-25 Thread Kalle Valo
Andrey Konovalov <andreyk...@google.com> writes: > On Mon, Sep 25, 2017 at 6:26 AM, Kalle Valo <kv...@codeaurora.org> wrote: >> Andrey Konovalov <andreyk...@google.com> writes: >> >>> I've got the following report while fuzzing th

<    5   6   7   8   9   10   11   12   13   14   >