1. 23 Jul, 2020 13 commits
    • Vaibhav Gupta's avatar
      cardreader/rtsx_pcr.c: use generic power management · 8f27d659
      Vaibhav Gupta authored
      Drivers should not use legacy power management as they have to manage power
      states and related operations, for the device, themselves. This driver was
      handling them with the help of PCI helper functions like
      pci_save/restore_state(), pci_enable/disable_device(), etc.
      
      With generic PM, all essentials will be handled by the  PCI core. Driver
      needs to do only device-specific operations.
      
      The driver was also using pci_enable_wake(...,..., 0) to disable wake. Use
      device_wakeup_disable() instead.
      
      Compile-tested only.
      Signed-off-by: default avatarVaibhav Gupta <vaibhavgupta40@gmail.com>
      Link: https://lore.kernel.org/r/20200720101722.145211-1-vaibhavgupta40@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8f27d659
    • Christophe JAILLET's avatar
      misc: hpilo: avoid a useless memset · 21ee9b19
      Christophe JAILLET authored
      Avoid a memset after a call to 'dma_alloc_coherent()'.
      This is useless since
      commit 518a2f19 ("dma-mapping: zero memory returned from dma_alloc_*")
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Link: https://lore.kernel.org/r/20200718070246.338016-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      21ee9b19
    • Christophe JAILLET's avatar
      misc: hpilo: switch from 'pci_' to 'dma_' API · 146f90af
      Christophe JAILLET authored
      The wrappers in include/linux/pci-dma-compat.h should go away.
      
      The patch has been generated with the coccinelle script below and has been
      hand modified to replace GFP_ with a correct flag.
      It has been compile tested.
      
      When memory is allocated in 'ilo_ccb_setup()' GFP_ATOMIC must be used
      because a spin_lock is hold in 'ilo_open()' before calling
      'ilo_ccb_setup()'
      
      @@
      @@
      -    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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Link: https://lore.kernel.org/r/20200718070224.337964-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      146f90af
    • Greg Kroah-Hartman's avatar
      Merge tag 'phy-for-5.9' of... · 1859a772
      Greg Kroah-Hartman authored
      Merge tag 'phy-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy into char-misc-next
      
      Vinod writes:
      
      phy for 5.9
      
       - New PHY Drivers:
         - Samsung UFS
         - Qcom USB DWC for ipq806x
         - Xilinx ZynqMP Gigabit Transceiver
         - Qcom USB QMP for IPQ8074
         - BCM63xx USBH
      
       - Removed:
         - Qcom ufs qmp phy driver
      
       - Updates:
         - Support for Qcom SM8250 QMP V4 USB3 UNIPHY
         - qcom-snps runtime pm support
         - Cleanup of W=1 warns in the subsystem
      
      * tag 'phy-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy: (46 commits)
        phy: qualcomm: fix setting of tx_deamp_3_5db when device property read fails
        phy: bcm63xx-usbh: Add BCM63xx USBH driver
        dt-bindings: phy: add bcm63xx-usbh bindings
        phy: armada-38x: fix NETA lockup when repeatedly switching speeds
        dt: update Marvell Armada 38x COMPHY binding
        phy: samsung-ufs: Fix IS_ERR argument
        dt-bindings: phy: renesas,usb3-phy: Add r8a774e1 support
        dt-bindings: phy: renesas,usb2-phy: Add r8a774e1 support
        phy: renesas: rcar-gen3-usb2: exit if request_irq() failed
        phy: renesas: rcar-gen3-usb2: move irq registration to init
        devicetree: bindings: phy: Document ipq806x dwc3 qcom phy
        phy: qualcomm: add qcom ipq806x dwc usb phy driver
        phy: samsung-ufs: add UFS PHY driver for samsung SoC
        dt-bindings: phy: Document Samsung UFS PHY bindings
        phy: sun4i-usb: explicitly include gpio/consumer.h
        phy: stm32: use NULL instead of zero
        phy: exynos5-usbdrd: use correct format for structure description
        phy: rockchip-typec: use correct format for structure description
        phy: xgene: remove unsigned integer comparison with less than zero
        phy: mapphone-mdm6600: Add missing description for some structure fields
        ...
      1859a772
    • Alexander A. Klimov's avatar
      char: Replace HTTP links with HTTPS ones · 4e74eeb2
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Link: https://lore.kernel.org/r/20200713104453.33414-1-grandmaster@al2klimov.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4e74eeb2
    • Alexander A. Klimov's avatar
      misc: Replace HTTP links with HTTPS ones · a52c8097
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Link: https://lore.kernel.org/r/20200713164024.35988-1-grandmaster@al2klimov.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a52c8097
    • Randy Dunlap's avatar
      android: binder.h: drop a duplicated word · 1859f4eb
      Randy Dunlap authored
      Drop the repeated word "the" in a comment.
      
      Cc: Arve Hjønnevåg <arve@android.com>
      Cc: Todd Kjos <tkjos@android.com>
      Cc: Martijn Coenen <maco@android.com>
      Cc: Joel Fernandes <joel@joelfernandes.org>
      Cc: Hridya Valsaraju <hridya@google.com>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Cc: devel@driverdev.osuosl.org
      Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Link: https://lore.kernel.org/r/20200719002738.20210-1-rdunlap@infradead.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1859f4eb
    • Randy Dunlap's avatar
      misc: mic: <linux/mic_bus.h>: drop a duplicated word · 34ec0aa6
      Randy Dunlap authored
      Drop the repeated word "the" in a comment.
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Sudeep Dutt <sudeep.dutt@intel.com>
      Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20200719002943.20624-1-rdunlap@infradead.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      34ec0aa6
    • Gustavo A. R. Silva's avatar
      mei: Avoid the use of one-element arrays · 3c3b7dde
      Gustavo A. R. Silva authored
      One-element arrays are being deprecated[1]. Replace the one-element
      arrays with a simple value type u8 reserved, once this is just a
      placeholder for alignment.
      
      Also, while there, use the preferred form for passing a size of a struct.
      The alternative form where struct name is spelled out hurts readability
      and introduces an opportunity for a bug when the variable type is changed
      but the corresponding sizeof that is passed as argument is not.
      
      [1] https://github.com/KSPP/linux/issues/79Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      Link: https://lore.kernel.org/r/20200714214516.GA1040@embeddedorSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3c3b7dde
    • Alexander A. Klimov's avatar
      mei: Replace HTTP links with HTTPS ones · 74b04fae
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Acked-by: default avatarTomas Winkler <tomas.winkler@intel.com>
      Link: https://lore.kernel.org/r/20200717185925.84102-1-grandmaster@al2klimov.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      74b04fae
    • Gustavo A. R. Silva's avatar
      mei: hdcp: Replace one-element array with flexible-array member · c56967d6
      Gustavo A. R. Silva authored
      There is a regular need in the kernel to provide a way to declare
      having a dynamically sized set of trailing elements in a structure.
      Kernel code should always use “flexible array members”[1] for these
      cases. The older style of one-element or zero-length arrays should
      no longer be used[2].
      
      Also, make use of the array_size() helper instead of the open-coded
      version in memcpy(). These sorts of multiplication factors need to
      be wrapped in array_size().
      
      And while there, use the preferred form for passing a size of a struct.
      The alternative form where struct name is spelled out hurts readability
      and introduces an opportunity for a bug when the pointer variable type is
      changed but the corresponding sizeof that is passed as argument is not.
      
      [1] https://en.wikipedia.org/wiki/Flexible_array_member
      [2] https://github.com/KSPP/linux/issues/79Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      Link: https://lore.kernel.org/r/20200722181534.GA31357@embeddedorSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c56967d6
    • Greg Kroah-Hartman's avatar
      Merge tag 'fpga-for-5.9' of... · cb0cec23
      Greg Kroah-Hartman authored
      Merge tag 'fpga-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga into char-misc-next
      
      Moritz writes:
      
      FPGA Manager changes for 5.9-rc1
      
      Here is the (slightly larger than usual) patch set for the 5.9-rc1 merge
      window.
      
      DFL:
      - Xu's changes add support for AFU interrupt handling and puts them to
        use for error handling.
      - Xu's other change also adds another device-id for the Intel FPGA PAC N3000.
      - John's change converts from using get_user_pages() to
        pin_user_pages().
      - Gustavo's patch cleans up some of the allocation by using
        struct_size().
      
      Xilinx:
      - Luca's changes clean up the xilinx-spi and xilinx-slave-serial drivers
        and updates the comments and dt-bindings to reflect the fact it also
        supports 7 series devices.
      
      Core:
      - Tom cleaned up the fpga-bridge / fpga-mgr core by removing some
        dead-stores.
      
      All patches have been reviewed on the mailing list, and have been in the
      last few linux-next releases (as part of my for-next branch) without issues.
      Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
      
      * tag 'fpga-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga:
        fpga: dfl: pci: add device id for Intel FPGA PAC N3000
        Documentation: fpga: dfl: add descriptions for interrupt related interfaces.
        fpga: dfl: afu: add AFU interrupt support
        fpga: dfl: fme: add interrupt support for global error reporting
        fpga: dfl: afu: add interrupt support for port error reporting
        fpga: dfl: introduce interrupt trigger setting API
        fpga: dfl: pci: add irq info for feature devices enumeration
        fpga: dfl: parse interrupt info for feature devices on enumeration
        fpga manager: xilinx-spi: check INIT_B pin during write_init
        dt-bindings: fpga: xilinx-slave-serial: add optional INIT_B GPIO
        fpga: Fix dead store in fpga-bridge.c
        fpga: Fix dead store fpga-mgr.c
        fpga: dfl: Use struct_size() in kzalloc()
        fpga manager: xilinx-spi: remove unneeded, mistyped variables
        fpga manager: xilinx-spi: valid for the 7 Series too
        dt-bindings: fpga: xilinx-slave-serial: valid for the 7 Series too
        fpga: dfl: afu: convert get_user_pages() --> pin_user_pages()
      cb0cec23
    • Greg Kroah-Hartman's avatar
      Merge tag 'soundwire-5.9-rc1' of... · 575ec5e5
      Greg Kroah-Hartman authored
      Merge tag 'soundwire-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire into char-misc-next
      
      Vinod writes:
      
      soundwire updates for 5.9-rc1
      
      This contains few core changes and bunch of Intel driver updates:
      
       - Adds definitions for 1.2 spec
       - Sanyog left as a MAINTAINER and Bard took his place while Sanyog
         is a reviewer now.
       - Intel: Lots of updates to stream/dai handling, wake support and link
         synchronization.
      
      * tag 'soundwire-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire: (31 commits)
        Soundwire: intel_init: save Slave(s) _ADR info in sdw_intel_ctx
        soundwire: intel: add wake interrupt support
        soundwire: intel/cadence: merge Soundwire interrupt handlers/threads
        soundwire: intel_init: use EXPORT_SYMBOL_NS
        soundwire: intel_init: add implementation of sdw_intel_enable_irq()
        soundwire: intel: introduce helper for link synchronization
        soundwire: intel: introduce a helper to arm link synchronization
        soundwire: intel: revisit SHIM programming sequences.
        soundwire: intel: reuse code for wait loops to set/clear bits
        soundwire: fix the kernel-doc comment
        soundwire: sdw.h: fix indentation
        soundwire: sdw.h: fix PRBS/Static_1 swapped definitions
        soundwire: intel: don't free dma_data in DAI shutdown
        soundwire: cadence: allocate/free dma_data in set_sdw_stream
        soundwire: intel: remove stream allocation/free
        soundwire: stream: add helper to startup/shutdown streams
        soundwire: intel: implement get_sdw_stream() operations
        MAINTAINERS: change SoundWire maintainer
        soundwire: bus: initialize bus clock base and scale registers
        soundwire: extend SDW_SLAVE_ENTRY
        ...
      575ec5e5
  2. 22 Jul, 2020 5 commits
  3. 21 Jul, 2020 22 commits