Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1629629

Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly
Date 2017-04-24 16:30 +0200
Message-ID <tzNa2-87g-29@gated-at.bofh.it> (permalink)
References <txYsW-4oW-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Apr 19, 2017 at 4:05 PM, Shrirang Bagul
<shrirang.bagul@canonical.com> wrote:

> This patch fixes the sensor platform data initialisation for st_pressure
> and st_accel device drivers. Without this patch, the driver fails to
> register the sensors when the user removes and re-loads the driver.
>
> 1. Unload the kernel modules for st_pressure
> $ sudo rmmod st_pressure_i2c
> $ sudo rmmod st_pressure
>
> 2. Re-load the driver
> $ sudo insmod st_pressure
> $ sudo insmod st_pressure_i2c
> --- OR ---
> $ sudo modprobe st_pressure_i2c
>
> dmesg errors:
>
> [ 160.935707] iio iio:device2: DRDY on pdata not valid.
> [ 160.941505] st-press-i2c: probe of i2c-SMO9210:00 failed with error -22
>
> The driver fails to register the pressure sensor device. Devices
> supported by st_accel driver also suffer from the same bug.
>
> Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>

Looks OK
Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly Shrirang Bagul <shrirang.bagul@canonical.com> - 2017-04-19 16:10 +0200
  Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform  data properly Linus Walleij <linus.walleij@linaro.org> - 2017-04-24 16:30 +0200
  Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform  data properly Jonathan Cameron <jic23@kernel.org> - 2017-04-26 07:40 +0200
    Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform  data properly Shrirang Bagul <shrirang.bagul@canonical.com> - 2017-04-28 06:20 +0200
      Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform  data properly Jonathan Cameron <jic23@kernel.org> - 2017-04-30 19:10 +0200

csiph-web