Messages in this thread | | | From | Linus Walleij <> | Date | Mon, 24 Apr 2017 16:26:48 +0200 | Subject | Re: [PATCH] iio: st_pressure: st_accel: Initialise sensor platform data properly |
| |
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
| |