1. 09 4月, 2017 1 次提交
  2. 02 4月, 2017 3 次提交
  3. 19 3月, 2017 2 次提交
  4. 04 2月, 2017 3 次提交
  5. 28 1月, 2017 1 次提交
  6. 22 1月, 2017 1 次提交
  7. 21 1月, 2017 1 次提交
  8. 14 1月, 2017 1 次提交
  9. 30 12月, 2016 3 次提交
  10. 12 11月, 2016 1 次提交
  11. 24 10月, 2016 1 次提交
    • S
      iio: bmi160_core: Fix sparse warning due to incorrect type in assignment · dd4ba3fb
      sayli karnik 提交于
      There is a type mismatch between the buffer which is of type s16 and the
      samples stored, which are declared as __le16.
      
      Fix the following sparse warning:
      drivers/iio/imu/bmi160/bmi160_core.c:411:26: warning: incorrect type
      in assignment (different base types)
      
      drivers/iio/imu/bmi160/bmi160_core.c:411:26: expected signed short
      [signed] [short] [explicitly-signed] <noident>
      drivers/iio/imu/bmi160/bmi160_core.c:411:26: got restricted __le16
      [addressable] [usertype] sample
      
      This is a cosmetic-type patch since it does not alter code behaviour.
      The le16 is going into a 16bit buf element, and is labelled as IIO_LE in the
      channel buffer definition.
      Signed-off-by: Nsayli karnik <karniksayli1995@gmail.com>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      dd4ba3fb
  12. 03 7月, 2016 1 次提交
  13. 01 7月, 2016 1 次提交
  14. 12 6月, 2016 1 次提交
  15. 05 5月, 2016 1 次提交
    • P
      iio: imu: inv_mpu6050: change the i2c gate to be mux-locked · 1ffcfaf1
      Peter Rosin 提交于
      The root i2c adapter lock is then no longer held by the i2c mux during
      accesses behind the i2c gate, and such accesses need to take that lock
      just like any other ordinary i2c accesses do.
      
      So, declare the i2c gate mux-locked, and zap the code that makes the
      unlocked i2c accesses and just use ordinary regmap_write accesses.
      
      This also happens to fix the deadlock described in
      http://patchwork.ozlabs.org/patch/584776/ authored by
      Adriana Reus <adriana.reus@intel.com> and submitted by
      Daniel Baluta <daniel.baluta@intel.com>
      
      ----------8<----------
      iio: imu: inv_mpu6050: Fix deadlock between i2c adapter lock and mpu lock
      
      This deadlock occurs if the accel/gyro and the sensor on the auxiliary
      I2C (in my setup it's an ak8975) are working at the same time.
      
      Scenario:
      
            T1					T2
           ====				       ====
      inv_mpu6050_read_fifo                  aux sensor op (eg. ak8975_read_raw)
              |                                     |
      mutex_lock(&indio_dev->mlock)           i2c_transfer
              |                                     |
      i2c transaction                         i2c adapter lock
              |                                     |
      i2c adapter lock                        i2c_mux_master_xfer
                                                    |
                                              inv_mpu6050_select_bypass
                                                    |
                                              mutex_lock(&indio_dev->mlock)
      
      When we operate on an mpu sensor the order of locking is mpu lock
      followed by the i2c adapter lock. However, when we operate the auxiliary
      sensor the order of locking is the other way around.
      
      ...
      ----------8<----------
      
      The reason this patch fixes the deadlock is that T2 does not grab the
      i2c adapter lock until the very end (and grabs the newfangled i2c mux
      lock where it previously grabbed the i2c adapter lock).
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Acked-by: NDaniel Baluta <daniel.baluta@intel.com>
      Tested-by: NCrestez Dan Leonard <leonard.crestez@intel.com>
      Signed-off-by: NPeter Rosin <peda@axentia.se>
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      1ffcfaf1
  16. 04 5月, 2016 5 次提交
  17. 26 4月, 2016 5 次提交
  18. 24 4月, 2016 1 次提交
  19. 22 4月, 2016 1 次提交
  20. 16 4月, 2016 2 次提交
  21. 03 4月, 2016 1 次提交
  22. 28 3月, 2016 1 次提交
    • R
      iio: imu: Fix inv_mpu6050 dependencies · f7072198
      Richard Weinberger 提交于
      Not all archs have io memory.
      Instead of selecting I2C_MUX (and bypassing the HAS_IOMEM dependency)
      depend directly on it.
      
      Fixes the following kconfig warning:
      warning: (MEDIA_SUBDRV_AUTOSELECT && VIDEO_CX231XX && INV_MPU6050_I2C) selects I2C_MUX which has unmet direct dependencies (I2C && HAS_IOMEM)
      And this build error:
      ERROR: "devm_ioremap_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined!
      ERROR: "of_address_to_resource" [drivers/i2c/muxes/i2c-mux-reg.ko] undefined!
      
      Cc: Jonathan Cameron <jic23@kernel.org>
      Cc: Hartmut Knaack <knaack.h@gmx.de>
      Cc: Lars-Peter Clausen <lars@metafoo.de>
      Cc: Peter Meerwald <pmeerw@pmeerw.net>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      f7072198
  23. 20 3月, 2016 1 次提交
  24. 06 3月, 2016 1 次提交