16 Dec, 2014

1 commit

  • Pull staging driver updates from Greg KH:
    "Here's the big staging tree pull request for 3.19-rc1.

    We continued to delete more lines than were added, always a good
    thing, but not at a huge rate this release, only about 70k lines
    removed overall mostly from removing the horrid bcm driver.

    Lots of normal staging driver cleanups and fixes all over the place,
    well over a thousand of them, the shortlog shows all the horrid
    details.

    The "contentious" thing here is the movement of the Android binder
    code out of staging into the "real" part of the kernel. This is code
    that has been stable for a few years now and is working as-is in the
    tens of millions of devices with no issues. Yes, the code is horrid,
    and the userspace api leaves a lot to be desired, but it's not going
    to change due to legacy issues that we have no control over. Because
    so many devices and companies rely on this, and the code is stable,
    might as well promote it out of staging.

    This was all discussed at the Linux Plumbers conference, and everyone
    participating agreed that this was the best way forward.

    There is work happening to replace the binder code with something new
    that is happening right now, but I don't expect to see the results of
    that work for another year at the earliest. If that ever happens, and
    Android switches over to it, I'll gladly remove this version.

    As for maintainers, I'll be glad to maintain this code, I've been
    doing it for the past few years with no problems. I'll send a
    MAINTAINERS entry for it before 3.19-final is out, still need to talk
    to the Google developers about if they are willing to help with it or
    not, last I checked they were, which was good.

    All of these patches have been in linux-next for a while with no
    reported issues"

    * tag 'staging-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1382 commits)
    Staging: slicoss: Fix long line issues in slicoss.c
    staging: rtl8712: remove unnecessary else after return
    staging: comedi: change some printk calls to pr_err
    staging: rtl8723au: hal: Removed the extra semicolon
    lustre: Deletion of unnecessary checks before three function calls
    staging: lustre: fix sparse warnings: static function declaration
    staging: lustre: fixed sparse warnings related to static declarations
    staging: unisys: remove duplicate header
    staging: unisys: remove unneeded structure
    staging: ft1000 : replace __attribute ((__packed__) with __packed
    drivers: staging: rtl8192e: Include "asm/unaligned.h" instead of "access_ok.h" in "rtl819x_BAProc.c"
    Drivers:staging:rtl8192e: Fixed checkpatch warning
    Drivers:staging:clocking-wizard: Added a newline
    staging: clocking-wizard: check for a valid clk_name pointer
    staging: rtl8723au: Hal_InitPGData() avoid unnecessary typecasts
    staging: rtl8723au: _DisableAnalog(): Avoid zero-init variables unnecessarily
    staging: rtl8723au: Remove unnecessary wrapper _ResetDigitalProcedure1()
    staging: rtl8723au: _ResetDigitalProcedure1_92C() reduce code obfuscation
    staging: rtl8723au: Remove unnecessary wrapper _DisableRFAFEAndResetBB()
    staging: rtl8723au: _DisableRFAFEAndResetBB8192C(): Reduce code obfuscation
    ...

    Linus Torvalds
     

15 Dec, 2014

1 commit

  • Pull driver core update from Greg KH:
    "Here's the set of driver core patches for 3.19-rc1.

    They are dominated by the removal of the .owner field in platform
    drivers. They touch a lot of files, but they are "simple" changes,
    just removing a line in a structure.

    Other than that, a few minor driver core and debugfs changes. There
    are some ath9k patches coming in through this tree that have been
    acked by the wireless maintainers as they relied on the debugfs
    changes.

    Everything has been in linux-next for a while"

    * tag 'driver-core-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (324 commits)
    Revert "ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries"
    fs: debugfs: add forward declaration for struct device type
    firmware class: Deletion of an unnecessary check before the function call "vunmap"
    firmware loader: fix hung task warning dump
    devcoredump: provide a one-way disable function
    device: Add dev__once variants
    ath: ath9k: use debugfs_create_devm_seqfile() helper for seq_file entries
    ath: use seq_file api for ath9k debugfs files
    debugfs: add helper function to create device related seq_file
    drivers/base: cacheinfo: remove noisy error boot message
    Revert "core: platform: add warning if driver has no owner"
    drivers: base: support cpu cache information interface to userspace via sysfs
    drivers: base: add cpu_device_create to support per-cpu devices
    topology: replace custom attribute macros with standard DEVICE_ATTR*
    cpumask: factor out show_cpumap into separate helper function
    driver core: Fix unbalanced device reference in drivers_probe
    driver core: fix race with userland in device_add()
    sysfs/kernfs: make read requests on pre-alloc files use the buffer.
    sysfs/kernfs: allow attributes to request write buffer be pre-allocated.
    fs: sysfs: return EGBIG on write if offset is larger than file size
    ...

    Linus Torvalds
     

09 Dec, 2014

2 commits

  • * pm-runtime: (25 commits)
    i2c-omap / PM: Drop CONFIG_PM_RUNTIME from i2c-omap.c
    dmaengine / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    drivers: sh / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    e1000e / igb / PM: Eliminate CONFIG_PM_RUNTIME
    MMC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    MFD / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    misc / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    media / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    input / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    iio / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    hsi / OMAP / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    i2c-hid / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    drm / exynos / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    gpio / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    hwrandom / exynos / PM: Use CONFIG_PM in #ifdef
    block / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    USB / PM: Drop CONFIG_PM_RUNTIME from the USB core
    PM: Merge the SET*_RUNTIME_PM_OPS() macros
    PM / Kconfig: Do not select PM directly from Kconfig files
    PCI / PM: Drop CONFIG_PM_RUNTIME from the PCI core
    ...

    Rafael J. Wysocki
     
  • * acpi-video:
    ACPI / video: Run _BCL before deciding registering backlight

    * acpi-pmic:
    ACPI / PMIC: AXP288: support virtual GPIO in ACPI table
    ACPI / PMIC: support PMIC operation region for XPower AXP288
    ACPI / PMIC: support PMIC operation region for CrystalCove
    iio/axp288_adc: remove THIS_MODULE owner
    mfd/axp20x: avoid irq numbering collision
    iio: adc: Add module device table for autoloading
    iio: adc: Add support for axp288 adc
    mfd: axp20x: Extend axp20x to support axp288 pmic

    Rafael J. Wysocki
     

04 Dec, 2014

1 commit

  • After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
    selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
    depending on CONFIG_PM_RUNTIME may now be changed to depend on
    CONFIG_PM.

    Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
    drivers/iio/.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Srinivas Pandruvada

    Rafael J. Wysocki
     

03 Dec, 2014

1 commit


25 Nov, 2014

1 commit


18 Nov, 2014

2 commits


17 Nov, 2014

8 commits


16 Nov, 2014

2 commits

  • The mcb_device_id table is supposed to be zero-terminated.

    Signed-off-by: Axel Lin
    Cc:
    Signed-off-by: Jonathan Cameron

    Axel Lin
     
  • Currently, we get the new GSEL bits by OR-ing the old values
    with the new ones. This only works first time when the old
    values are 0.

    Startup:
    * GSEL0 = 0, GSEL1 = 0

    Set range to 4G: (GSEL0 = 1, GSEL1 = 0)
    * GSEL0 = 0 | 1 = 1
    * GSEL1 = 0 | 0 = 0
    * correct

    Change range to 2G: (GSEL0 = 0, GSEL1 = 0)
    * GSEL0 = 1 | 0 = 1
    * GSEL1 = 0 | 0 = 0
    * wrong, GSEL0 should be 0

    This has the nice effect that we can use the full scale range,
    exported in in_accel_scale_available.

    Fixes: a735e3d7f03 (iio: accel: kxcjk-1013: Set adjustable range)
    Signed-off-by: Daniel Baluta
    Reviewed-by: Srinivas Pandruvada
    Cc:
    Signed-off-by: Jonathan Cameron

    Daniel Baluta
     

10 Nov, 2014

1 commit


06 Nov, 2014

5 commits

  • …/iio into staging-next

    Jonathan writes:

    First round of new drivers, features and cleanups for IIO in the 3.19 cycle.

    New drivers / supported parts
    * rockchip - rk3066-tsadc variant
    * si7020 humidity and temperature sensor
    * mcp320x - add mcp3001, mcp3002, mcp3004, mcp3008, mcp3201, mcp3202
    * bmp280 pressure and temperature sensor
    * Qualcomm SPMI PMIC current ADC driver
    * Exynos_adc - support exynos7

    New features
    * vf610-adc - add temperature sensor support
    * Documentation of current attributes, scaled pressure, offset and
    scaled humidity, RGBC intensity gain factor and scale applied to
    differential voltage channels.
    * Bring iio_event_monitor up to date with newer modifiers.
    * Add of_xlate function to allow for complex channel mappings from the
    device tree.
    * Add -g parameter to generic_buffer example to allow for devices with
    directly fed (no trigger) buffers.
    * Move exynos driver over to syscon for PMU register access.

    Cleanups, fixes for new drivers
    * lis3l02dq drop an unneeded else.
    * st sensors - renam st_sensors to st_sensor_settings (for clarity)
    * st sensors - drop an unused parameter from all the probe utility
    functions.
    * vf610 better error handling and tidy up.
    * si7020 - cleanups following merge
    * as3935 - drop some unnecessary semicolons.
    * bmp280 - fix the pressure calculation.

    Greg Kroah-Hartman
     
  • Signed-off-by: George McCollister
    Acked-by: Hartmut Knaack
    Cc:
    Signed-off-by: Jonathan Cameron

    George McCollister
     
  • Because IIO_EV_DIR_* are not bitmasks but enums,
    IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING is not equal
    with IIO_EV_DIR_EITHER.

    This could lead to potential misformatted sysfs attributes
    like:
    * in_accel_x_thresh_(null)_en
    * in_accel_x_thresh_(null)_period
    * in_accel_x_thresh_(null)_value

    or even memory corruption.

    Fixes: b4b491c083 (iio: accel: kxcjk-1013: Support threshold)
    Signed-off-by: Daniel Baluta
    Cc:
    Signed-off-by: Jonathan Cameron

    Daniel Baluta
     
  • Fix the compiler error when the CONFIG_PM_OPS flag is not set.

    drivers/iio/light/tsl4531.c:235:8: error: ‘tsl4531_suspend’ undeclared here (not in a function)
    drivers/iio/light/tsl4531.c:235:8: error: ‘tsl4531_resume’ undeclared here (not in a function)

    Signed-off-by: Dan Murphy
    Signed-off-by: Jonathan Cameron

    Dan Murphy
     
  • Use byte_for_channel as iterator to properly initialize the buffer.

    Signed-off-by: Robin van der Gracht
    Acked-by: Denis Ciocca
    Signed-off-by: Jonathan Cameron
    Cc:

    Robin van der Gracht
     

05 Nov, 2014

4 commits

  • According to the datasheet and as defined in struct bmp280_comp_press, dig_p1 is
    of type u16, while dig_p2 to dig_p9 are of type s16. In
    bmp280_read_compensation_press(), values read from the device were treated as
    the wrong type.
    In bmp280_read_press() the fractional part of the measured pressure is
    calculated wrong. A better way is to use *val for the raw pressure and *val2 for
    the quotient and let the core do the proper conversion using IIO_VAL_FRACTIONAL.

    Signed-off-by: Hartmut Knaack
    Acked-by: Vlad Dogaru
    Signed-off-by: Jonathan Cameron

    Hartmut Knaack
     
  • The ADC on exynos7 is quite similar to ADCv2. The differences are as
    follows:
    - exynos7-adc has 8 input channels (as against 10 in ADCv2).
    - exynos7 does not include an ADC PHY control register.
    - Some ADC_CON2 register bits being used in ADCv2 are listed as
    reserved in exynos7-adc. This results in a different init_hw
    function for exynos7.

    Signed-off-by: Abhilash Kesavan
    Reviewed-by: Chanwoo Choi
    Signed-off-by: Jonathan Cameron

    Abhilash Kesavan
     
  • This patch updates the IIO based ADC driver to use syscon and regmap
    APIs to access and use PMU registers instead of remapping the PMU
    registers in the driver.

    Signed-off-by: Naveen Krishna Chatradhi
    To: linux-iio@vger.kernel.org
    Acked-by: Kukjin Kim
    Signed-off-by: Jonathan Cameron

    Naveen Krishna Chatradhi
     
  • Signed-off-by: George McCollister
    Acked-by: Hartmut Knaack
    Signed-off-by: Jonathan Cameron

    George McCollister
     

04 Nov, 2014

1 commit


26 Oct, 2014

3 commits


25 Oct, 2014

3 commits

  • When #iio-cells is greater than '0', the driver could provide
    a custom of_xlate function that reads the *args* and returns
    the appropriate index in registered IIO channels array.

    Add simple translation function, suitable for the most 1:1
    mapped channels in IIO chips, and use it when driver did not
    provide custom implementation.

    Signed-off-by: Ivan T. Ivanov
    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Ivan T. Ivanov
     
  • The proper way to divide two signed 64-bit values is to use div64_s64.

    Signed-off-by: Vlad Dogaru
    Reported-by: kbuild test robot
    Signed-off-by: Jonathan Cameron

    Vlad Dogaru
     
  • …/jic23/iio into staging-linus

    Jonathan writes:

    First round of IIO fixes for the 3.18 cycle.

    * ad5933 - fix a null pointer dereference due to an old change that prevents
    different channels being registered for the buffer and used for sysfs
    interfaces.
    * ad5933 - Drop a bonus _raw from attribute names.
    * st-sensors - Makes sure the correct number of elements are copied when
    filling a local buffer copy.
    * mxs-lradc - Disable clocks in a failure path during probe so they aren't
    left running.

    Greg Kroah-Hartman
     

23 Oct, 2014

2 commits


20 Oct, 2014

1 commit


10 Oct, 2014

1 commit