1. 19 Jul, 2020 1 commit
  2. 17 Jul, 2020 7 commits
    • B K Karthik's avatar
      staging: comedi: comedi_fops.c: added casts to get rid of sparse warnings · 9d5d041e
      B K Karthik authored
      fixed sparse warnings by adding a cast in assignment from
      void [noderef] __user * to unsigned int __force *
      and a reverse cast in argument from
      unsigned int * to  unsigned int __user * .
      Signed-off-by: default avatarB K Karthik <karthik.bk2000@live.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Link: https://lore.kernel.org/r/20200717103031.3mfnlvqo3waolsee@pesu-pes-eduSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9d5d041e
    • Rahul Gottipati's avatar
      staging: rtl8188eu: add blank line after declarations · 891a8d77
      Rahul Gottipati authored
      Added a blank line after declarations in
      drivers/staging/rtl8188eu/core/rtw_security.c to fix a
      checkpatch.pl warning
      Signed-off-by: default avatarRahul Gottipati <rahul.blr97@gmail.com>
      Link: https://lore.kernel.org/r/20200715163152.GA10190@rahulg-ThinkPad-T450Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      891a8d77
    • Joe Perches's avatar
    • Suraj Upadhyay's avatar
      staging: qlge/qlge_main.c: Replace depracated MSI API. · 4eab532d
      Suraj Upadhyay authored
      Replace the depracated MSI API pci_enable_msi()
      with pci_alloc_irq_vectors().
      Signed-off-by: default avatarSuraj Upadhyay <usuraj35@gmail.com>
      Link: https://lore.kernel.org/r/20200716085811.GA29239@blackclownSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4eab532d
    • Rustam Kovhaev's avatar
      staging: rtl8712: handle firmware load failure · b4383c97
      Rustam Kovhaev authored
      when firmware fails to load we should not call unregister_netdev()
      this patch fixes a race condition between rtl871x_load_fw_cb() and
      r871xu_dev_remove() and fixes the bug reported by syzbot
      
      Reported-by: syzbot+80899a8a8efe8968cde7@syzkaller.appspotmail.com
      Link: https://syzkaller.appspot.com/bug?extid=80899a8a8efe8968cde7Signed-off-by: default avatarRustam Kovhaev <rkovhaev@gmail.com>
      Cc: stable <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20200716151324.1036204-1-rkovhaev@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b4383c97
    • Colin Ian King's avatar
      staging: rtl8192u: fix a dubious looking mask before a shift · c4283950
      Colin Ian King authored
      Currently the masking of ret with 0xff and followed by a right shift
      of 8 bits always leaves a zero result.  It appears the mask of 0xff
      is incorrect and should be 0xff00, but I don't have the hardware to
      test this. Fix this to mask the upper 8 bits before shifting.
      
      [ Not tested ]
      
      Addresses-Coverity: ("Operands don't affect result")
      Fixes: 8fc8598e ("Staging: Added Realtek rtl8192u driver to staging")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Link: https://lore.kernel.org/r/20200716154720.1710252-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c4283950
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-5.9a-take2' of... · f6b35db0
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-5.9a-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      First set of new device support, cleanups and features for IIO in the 5.9 cycle
      
      Some new devices, but particularly good this time is the core rework coming
      from Alexandru. Some of this has been in Analog's tree a long time, but other
      parts are motivated by closing down common mistakes in new drivers.
      
      Changes since first try at this pull request:
      * Add missed patch to actually remove iio_priv_to_dev and as a result
        also drop a few ingenic patches that need to be updated to take this
        into account.
      * Fix an ordering issue int he pollfunc attach in the core rework.
      
      New device support
      * qcom pmic7 adc
        - New driver using common qcom-vadc library. Some associated cleanups and
          refactors.
      * invensense icm42600
        - New driver supporting icm42600, icm42602, icm42605 and icm42622 via i2c
          or spi.  These are all 6 axis IMUs with gyro and accelerometers.
          Driver supports buffered modes using the hardware fifo and interpolation
          for accurate timestamps.
      * sensirion scd30
        - New driver for this carbon dioxide sensor including i2c and serial
          interfaces + bindings.
      
      Features
      * ak8975
        - Add reset gpio support.
      * bma400
        - Support SPI.
      * bmc150
        - Document and add support for bmc156b and bmm150b, tidy up _magn endings.
      * bmi160
        - Regulator and mount matrix support.
      * mxc4005
        - Add ID for mxc6655
      * rockchip-saradc
        - Triggered buffer support.
      
      DT bindings
      * qcom spmi-vadc converted to yaml + pmic7 bindings
      * ak8975 tidy up and convert to yaml + add reset-gpio binding
      * ingenic-adc -convert to yaml.
      
      Core rework all carried through by Alexandru Ardelean.
      * Assign parent device in the core rather than every driver. A few devices
        need to provide specific non standard parents, so there is support for
        overriding.
      * Start to take parts of struct iio_dev opaque to the drivers.
        This will be a long term job, but should reduce the number of drivers
        we get that use parts that are currently only 'internal' by documentation.
      * Move attach and detach of pollfunc to the core.  Every triggered buffer
        using driver had to do the same thing, so lets do it in the core.  The
        hard part here was getting all the drivers into canonical form so there
        would be no functional changes in this final patch.  That's taken quite
        a lot of work over last couple of cycles!
      
      Cleanups and minor fixes.
      * docs
        - Improve IIO_CONCENTRATION channel type description in ABI docs.
        - Drop doubled word cases.
        - Http to Https conversion.
      * core
        - Make iio_device_get_drvdata take a const struct iio_dev * avoiding some
          nasty casts.
      * ADCs
        - Drop lots of users of of_match_ptr macro, includes of mod_devicetable.h
          and CONFIG_OF protections.  These prevent use of ACPI PRP0001 with these
          drivers and get coppied into lots of new drivers.
      * ad5380
        - Constify iio_chan_spec_ext_info
      * ad5592r
        - Constify iio_chan_spec_ext_info
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * ad8366
        - Make gpio optional as doesn't matter if its there or not.
      * adis16480
        - Use irq types instead of the flags.
      * atlas-ezo-sensor
        - Minimize scope of ret variable.
      * at91-adc
        - Add COMPILE_TEST dependency to driver to improve build coverage.
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * at91-sama5d2
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
        - Drop Ludovic as a co-maintaienr.
      * cros_ec
        - Reapply the range after resume.
        - Add a read only frequency entry for legacy version.
        - Typo fixes
      * hts221
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * inv_mpu
        - Drop double check on ACPI companion device.
      * iqs621
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * iqs624
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * max11100
        - Constify iio_chan_spec
      * mmc35240
        - Constify reg_default
      * rockchip-saradc
        - Move to managed allocators for everything in probe.
        - Use more distinctive prefix for channel macros.
      * stk3310
        - Constify regmap_config.
      * stm32-adc
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * stm32-dfsdm-adc
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      * ti-am335x
        - Use managed allocations where straight forward in probe function.
      * tsl2563
        - Avoid use of iio_priv_to_dev (precursor to taking parts of iio_dev opaque)
      
      * tag 'iio-for-5.9a-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (107 commits)
        iio: buffer: fix attach/detach pollfunc order
        iio: core: remove iio_priv_to_dev() helper
        Replace HTTP links with HTTPS ones: drivers/iio
        Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio
        dt-bindings: iio/adc: Convert ingenic-adc docs to YAML.
        iio: cros_ec_accel_legacy: Add Read Only frequency entries
        MAINTAINERS: adc: at91-sama5d2_adc: remove myself as co-maintainer
        iio: adc: ti_am335x_adc: alloc kfifo & IRQ via devm_ functions
        iio: adc: ti_am335x_adc: alloc channels via devm_kcalloc()
        iio:adc:ingenic: drop of_match_ptr protection and include mod_devicetable.h
        iio:adc:ti-tlc4541: Drop CONFIG_OF and of_match_ptr protections.
        iio:adc:ti-adc161s626: Drop of_match_ptr protection.
        iio:adc:ti-adc084s021: drop of_match_ptr protection
        iio:adc:ti-adc0832: drop CONFIG_OF and of_match_ptr protections
        iio:adc:ti-adc081c: Drop of_match_ptr and change to mod_devicetable.h
        iio:adc:sd_adc_modulator: Drop of_match_ptr and tweak includes
        iio:adc:mcp3422: remove CONFIG_OF and of_match_ptr protections
        iio:adc:mcp320x: Drop CONFIG_OF and of_match_ptr protections
        iio:adc:max1118: Drop CONFIG_OF / of_match_ptr protections
        iio:adc:max11100: Drop of_match_ptr protection / add mod_devicetable.h include
        ...
      f6b35db0
  3. 15 Jul, 2020 12 commits
  4. 13 Jul, 2020 13 commits
  5. 12 Jul, 2020 3 commits
  6. 10 Jul, 2020 4 commits