1. 30 8月, 2021 35 次提交
  2. 29 8月, 2021 5 次提交
    • D
      Merge tag 'wireless-drivers-next-2021-08-29' of... · eaf2aaec
      David S. Miller 提交于
      Merge tag 'wireless-drivers-next-2021-08-29' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next
      
      Kalle Valo says:
      
      ====================
      pull-request: wireless-drivers-next-2021-08-29
      
      here's a pull request to net-next tree, more info below. Please let me know if
      there are any problems.
      
      wireless-drivers-next patches for v5.15
      
      Second, and most likely last, set of patches for v5.15. Lots of
      iwlwifi patches this time, but smaller changes to other drivers as
      well. Nothing special standing out.
      
      Major changes:
      
      rtw88
      
      * add quirk to disable pci caps on HP Pavilion 14-ce0xxx
      
      brcmfmac
      
      * Add WPA3 Personal with FT to supported cipher suites
      
      wcn36xx
      
      * allow firmware name to be overridden by DT
      
      iwlwifi
      
      * support scanning hidden 6GHz networks
      
      * support for a new hardware family (Bz)
      
      * support for new firmware API versions
      
      mwifiex
      
      * add reset_d3cold quirk for Surface gen4+ devices
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eaf2aaec
    • J
      ssb: fix boolreturn.cocci warning · 8d4be124
      Jing Yangyang 提交于
      ./include/linux/ssb/ssb_driver_extif.h:200:8-9:WARNING: return of 0/1 in
      function 'ssb_extif_available' with return type bool
      
      Return statements in functions returning bool should use true/false
      instead of 1/0.
      
      Generated by: scripts/coccinelle/misc/boolreturn.cocci
      Reported-by: NZeal Robot <zealci@zte.com.cn>
      Signed-off-by: NJing Yangyang <jing.yangyang@zte.com.cn>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/20210824061341.59255-1-deng.changcheng@zte.com.cn
      8d4be124
    • C
      intel: switch from 'pci_' to 'dma_' API · ebe9e651
      Christophe JAILLET 提交于
      The wrappers in include/linux/pci-dma-compat.h should go away.
      
      The patch has been generated with the coccinelle script below.
      
      It has been hand modified to use 'dma_set_mask_and_coherent()' instead of
      'pci_set_dma_mask()/pci_set_consistent_dma_mask()' when applicable.
      This is less verbose.
      
      It has been compile tested.
      
      @@
      @@
      -    PCI_DMA_BIDIRECTIONAL
      +    DMA_BIDIRECTIONAL
      
      @@
      @@
      -    PCI_DMA_TODEVICE
      +    DMA_TO_DEVICE
      
      @@
      @@
      -    PCI_DMA_FROMDEVICE
      +    DMA_FROM_DEVICE
      
      @@
      @@
      -    PCI_DMA_NONE
      +    DMA_NONE
      
      @@
      expression e1, e2, e3;
      @@
      -    pci_alloc_consistent(e1, e2, e3)
      +    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)
      
      @@
      expression e1, e2, e3;
      @@
      -    pci_zalloc_consistent(e1, e2, e3)
      +    dma_alloc_coherent(&e1->dev, e2, e3, GFP_)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_free_consistent(e1, e2, e3, e4)
      +    dma_free_coherent(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_map_single(e1, e2, e3, e4)
      +    dma_map_single(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_single(e1, e2, e3, e4)
      +    dma_unmap_single(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4, e5;
      @@
      -    pci_map_page(e1, e2, e3, e4, e5)
      +    dma_map_page(&e1->dev, e2, e3, e4, e5)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_page(e1, e2, e3, e4)
      +    dma_unmap_page(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_map_sg(e1, e2, e3, e4)
      +    dma_map_sg(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_unmap_sg(e1, e2, e3, e4)
      +    dma_unmap_sg(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_single_for_cpu(e1, e2, e3, e4)
      +    dma_sync_single_for_cpu(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_single_for_device(e1, e2, e3, e4)
      +    dma_sync_single_for_device(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_sg_for_cpu(e1, e2, e3, e4)
      +    dma_sync_sg_for_cpu(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2, e3, e4;
      @@
      -    pci_dma_sync_sg_for_device(e1, e2, e3, e4)
      +    dma_sync_sg_for_device(&e1->dev, e2, e3, e4)
      
      @@
      expression e1, e2;
      @@
      -    pci_dma_mapping_error(e1, e2)
      +    dma_mapping_error(&e1->dev, e2)
      
      @@
      expression e1, e2;
      @@
      -    pci_set_dma_mask(e1, e2)
      +    dma_set_mask(&e1->dev, e2)
      
      @@
      expression e1, e2;
      @@
      -    pci_set_consistent_dma_mask(e1, e2)
      +    dma_set_coherent_mask(&e1->dev, e2)
      Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/f55043d0c847bfae60087707778563cf732a7bf9.1629619229.git.christophe.jaillet@wanadoo.fr
      ebe9e651
    • T
      mwifiex: pcie: add reset_d3cold quirk for Surface gen4+ devices · a847666a
      Tsuchiya Yuto 提交于
      To reset mwifiex on Surface gen4+ (Pro 4 or later gen) devices, it
      seems that putting the wifi device into D3cold is required according
      to errata.inf file on Windows installation (Windows/INF/errata.inf).
      
      This patch adds a function that performs power-cycle (put into D3cold
      then D0) and call the function at the end of reset_prepare().
      
      Note: Need to also reset the parent device (bridge) of wifi on SB1;
      it might be because the bridge of wifi always reports it's in D3hot.
      When I tried to reset only the wifi device (not touching parent), it gave
      the following error and the reset failed:
      
          acpi device:4b: Cannot transition to power state D0 for parent in D3hot
          mwifiex_pcie 0000:03:00.0: can't change power state from D3cold to D0 (config space inaccessible)
      Signed-off-by: NTsuchiya Yuto <kitakar@gmail.com>
      Signed-off-by: NJonas Dreßler <verdre@v0yd.nl>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/20210820142050.35741-3-verdre@v0yd.nl
      a847666a
    • J
      mwifiex: pcie: add DMI-based quirk implementation for Surface devices · 5448bc2a
      Jonas Dreßler 提交于
      This commit adds the ability to apply device-specific quirks to the
      mwifiex driver. It uses DMI matching similar to the quirks brcmfmac uses
      with dmi.c. We'll add identifiers to match various MS Surface devices,
      which this is primarily meant for, later.
      
      This commit is a slightly modified version of a previous patch sent in
      by Tsuchiya Yuto.
      Co-developed-by: NTsuchiya Yuto <kitakar@gmail.com>
      Signed-off-by: NTsuchiya Yuto <kitakar@gmail.com>
      Signed-off-by: NJonas Dreßler <verdre@v0yd.nl>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/20210820142050.35741-2-verdre@v0yd.nl
      5448bc2a