st_pressure, st_accel IIO drivers fail to detect sensors after reloading kernel modules

Bug #1690310 reported by Shrirang Bagul on 2017-05-12
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Medium
Shrirang Bagul
linux (Ubuntu)
Medium
Unassigned
Xenial
Undecided
Unassigned

Bug Description

Fails to register the sensors when the user unloads and re-loads the driver module.

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.

This bug is used for tracking purposes, please do not triage.

Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
description: updated
Shrirang Bagul (shrirang-bagul) wrote :

The fix for this has already been reviewed and accepted [1]. It's sitting in the maintainers testing tree waiting to be submitted upstream to Linux kernel [2].

[1] http://marc.info/?l=linux-iio&m=149261071414832&w=2
[2] https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?h=testing&id=7383d44b84c94aaca4bf695a6bd8a69f2295ef1a)

tags: added: originate-from-1666144 plano
Changed in hwe-next:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Shrirang Bagul (shrirang-bagul)
Changed in linux (Ubuntu):
importance: Critical → Medium
Changed in hwe-next:
importance: Critical → Medium
Changed in hwe-next:
status: In Progress → Fix Committed
status: Fix Committed → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers