1. 22 Aug, 2017 21 commits
  2. 20 Aug, 2017 19 commits
    • Larry Finger's avatar
      staging: rtlwifi: Reviewers fixes · a575de2d
      Larry Finger authored
      This commit adds the TODO file and implements some reviewers comments
      made against some patches to the wireless tree.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a575de2d
    • Larry Finger's avatar
      staging: r8822be: Add Makefiles and Kconfig for new driver · 5b5ab4cb
      Larry Finger authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      This commit enables building of the new driver. For this version, all
      routines are built into a single module r8822be. When this driver is
      moved to the wireless tree, halmac, phydm, and rtl8822be will become
      new modules.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5b5ab4cb
    • Ping-Ke Shih's avatar
      staging: r8822be: Add the driver code · 7e5b796c
      Ping-Ke Shih authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      This commit adds the code for the new r8822be driver.
      Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7e5b796c
    • Ping-Ke Shih's avatar
      staging: r8822be: Add phydm mini driver · 9ce99b04
      Ping-Ke Shih authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      New Realtek wireless devices have a new method for PHY control and
      dynamic management. The RTL8822BE is the first of these devices, thus
      there is additional code required.
      
      In the final version, this code will be a separate module; however,
      it is combined with the r8822be driver to minimize the interference
      with the drivers in the wireless tree.
      Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9ce99b04
    • Ping-Ke Shih's avatar
      staging: r8822be: Add code for halmac sub-driver · 938a0447
      Ping-Ke Shih authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      New Realtek devices implement a common sub-driver to control the MAC
      layer. The RTL8822BE is the first of these devices, thus its introduction
      involves some extra code. In the wireless tree, this will be a separate
      module; however, it is compiled into the 8822be driver here.
      Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      938a0447
    • Ping-Ke Shih's avatar
      staging: r8822be: Add r8822be btcoexist routines to staging · b53b764b
      Ping-Ke Shih authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      This commit adds the routines needed for BT coexistence with the
      new driver.
      Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b53b764b
    • Larry Finger's avatar
      staging: r8822be: Copy existing btcoexist code into staging · fbdc6ba8
      Larry Finger authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      This commit copies the existing routines from .../rtlwifi/btcoexist/
      into staging. There are no changes other than removing all EXPORT
      statements, and the fixing of checkpatch messages. The latter will
      be backported to the wireless tree.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Ping-Ke Shih <pkshih@realtek.com>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fbdc6ba8
    • Ping-Ke Shih's avatar
      staging: r8822be: Add existing rtlwifi and rtl_pci parts for new driver · 56bde846
      Ping-Ke Shih authored
      The RTL8822BE, an 802.11ac wireless network card, is now appearing in
      new computers. Its driver is being placed in staging to reduce the time
      that users of this new card will have access to in-kernel drivers.
      
      This commit copies the code that currently constitutes the rtlwifi and
      rtl_pci mini drivers. This material is copied into staging to prevent
      any undo interaction between the existing drivers and this new one.
      The only changes in this code are the removal of all export statements,
      and the fixing of some checkpatch messages. The latter will be backported
      into the wireless tree.
      Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
      Cc: Birming Chiu <birming@realtek.com>
      Cc: Shaofu <shaofu@realtek.com>
      Cc: Steven Ting <steventing@realtek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      56bde846
    • Alex Briskin's avatar
      staging: wlan-ng: hfa384x_usb: Fix multiple line dereference · bf334c02
      Alex Briskin authored
      Refactor code to be more readable and eliminate the checkpatch
      warning
      Signed-off-by: default avatarAlex Briskin <br.shurik@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bf334c02
    • Srishti Sharma's avatar
      Staging: greybus: vibrator.c: Fixed alignment to match open parenthesis. · 2c5b7943
      Srishti Sharma authored
      Fixed alignment so that it matched open parenthesis
      Signed-off-by: default avatarSrishti Sharma <srishtishar@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2c5b7943
    • Bhumika Goyal's avatar
      staging: greybus: make device_type const · afd37dfa
      Bhumika Goyal authored
      Make this const as it is only stored in the type field of a device
      structure, which is const.
      Done using Coccinelle.
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      afd37dfa
    • Colin Ian King's avatar
      staging/rts5208: fix incorrect shift to extract upper nybble · 34ff1bf4
      Colin Ian King authored
      The mask of sns_key_info1 suggests the upper nybble is being extracted
      however the following shift of 8 bits is too large and always results in
      0.  Fix this by shifting only by 4 bits to correctly get the upper nybble.
      
      Detected by CoverityScan, CID#142891 ("Operands don't affect result")
      
      Fixes: fa590c22 ("staging: rts5208: add support for rts5208 and rts5288")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      34ff1bf4
    • Xiangyang Zhang's avatar
      staging: pi433: fixed coding style issues · 6feb5c82
      Xiangyang Zhang authored
      space required before the open parenthesis, open brace should be
      on previous line.
      Signed-off-by: default avatarXiangyang Zhang <xyz.sun.ok@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6feb5c82
    • Jamie Huang's avatar
      staging:rtl8188eu: fix coding style issue · 08f7c8bb
      Jamie Huang authored
      checkpatch.pl gave
      ERROR: open brace '{' following function definitions go on the next line.
      Signed-off-by: default avatarJamie Huang <jamienstar@163.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      08f7c8bb
    • Dan Carpenter's avatar
      staging: lustre: lustre: Off by two in lmv_fid2path() · 0c1b9970
      Dan Carpenter authored
      We want to concatonate join string one, a '/' character, string two and
      then a NUL terminator.  The destination buffer holds ori_gf->gf_pathlen
      characters.  The strlen() function returns the number of characters not
      counting the NUL terminator.  So we should be adding two extra spaces,
      one for the foward slash and one for the NUL.
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
      Reviewed-by: default avatarfrank zago <fzago@cray.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0c1b9970
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-4.14b' of... · 5e47adb9
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-4.14b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      Second set of IIO new device support, features and cleanup for the 4.14 cycle.
      
      New device support:
      * ak8974
        - support the AMI306.
      * st_magnetometer
        - add support for the LIS2MDL with bindings.
      * rockchip-saradc
        - add binding for rv1108 SoC (no driver change).
      * srf08
        - add srf02 (i2c only) and srf10 support.
      * stm32-timer
        - support for the STM32H7 to existing driver.
      
      Features:
      * tools
        - move over to the tools buildsystem rather than hand rolling.
        - add an install section to the build.
      * ak8974
        - use serial number to add device randomness.
        - add AMI306 calibration data output.
      * ccs811
        - triggered buffer support.
      * srf08
        - add a device tree table as the old style i2c probing is going away,
        - add triggered buffer support
      * st32-adc
        - add optional st,min-sample-time-nsecs binding to allow control of
          sampling against analog circuitry.
      * stm32-timer
        - add output compare triggers.
      * ti-ads1015
        - add threshold event support.
      * ti-ads7950
        - Allow use on ACPI platforms including providing a default reference
          voltage as there is no way to obtain this on ACPI currently.
      
      Cleanup and fixes:
      * ad7606
        - fix an error return code in probe.
      * ads1015
        - fix incorrect data rate setting update when capture in progress,
        - fix wrong scale information for the ADS1115,
        - make conversions work when CONFIG_PM is not set,
        - make sure we don't get a stale result after a runtime resume by
          ensuring we wait long enough,
        - avoid returning a false error form the buffer setup callbacks,
        - add enough wait time to get the correct conversion,
        - remove an unnecessary config register update,
        - add a helper to set conversion mode reducing repeated boilerplate,
        - use devm_iio_triggered_buffer_setup to simplify error and remove
          paths,
        - use iio_device_claim_direct_mode instead of opencoding the same.
      * ak8974
        - mark the INT_CLEAR register as precious to prevent debugfs access.
      * apds9300
        - constify the i2c_device_id.
      * at91-sama5 adc
        - add missing Kconfig dependency.
      * bma180 accel
        - constify the i2c_device_id.
      * rockchip_saradc
        - explicitly request exclusive reset control as part of the reset rework
          on going throughout the kernel.
      * st_accel
        - fix drdy configuration for a load of accelerometers that only have
          the int1 line.  Fix is unimportant as presumably no deviec tree actually
          used the non existent hardware line.
      * st_pressure
        - fix drdy configuration for LPS22HB and LPS25H by dropping int2 support
          as they don't have this. Fix is unimportant as presumably no device tree
          actually used the non existent hardware line.
      * stm32-dac
        - explicitly request exclusive reset control (part of reset being reworked).
      * tsl2583
        - constify the i2c_device_id.
      * xadc
        - coding style fixes.
      5e47adb9
    • Philipp Zabel's avatar
      iio: adc: rockchip_saradc: explicitly request exclusive reset control · 87587016
      Philipp Zabel authored
      Commit a53e35db ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: linux-iio@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      87587016
    • Philipp Zabel's avatar
      iio: dac: stm32-dac-core: explicitly request exclusive reset control · a1b509df
      Philipp Zabel authored
      Commit a53e35db ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
      Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
      Cc: Alexandre Torgue <alexandre.torgue@st.com>
      Cc: linux-iio@vger.kernel.org
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      a1b509df
    • Akinobu Mita's avatar
      iio: adc: ti-ads1015: add threshold event support · d9f39bab
      Akinobu Mita authored
      The ADS1015 device provides programmable comparator that can issue an
      interrupt on the ALERT pin.  This change adds the iio threshold event
      support for that feature.
      
      The ADS1015 device only have a single config register which contains an
      input multiplexer selection, comparator settings, and etc.  So only a
      single event channel can be enabled at a time.  Also enabling both buffer
      and event are prohibited for simplicity.
      
      Cc: Daniel Baluta <daniel.baluta@gmail.com>
      Cc: Jonathan Cameron <jic23@kernel.org>
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
      d9f39bab