Bug 205659 - TSL2571 not working
Summary: TSL2571 not working
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: Other Linux
: P1 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-26 11:23 UTC by Andrej
Modified: 2019-11-26 11:23 UTC (History)
0 users

See Also:
Kernel Version: 4.19.x
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Andrej 2019-11-26 11:23:44 UTC
Hello everyone,
 
I would like to report a bug regarding to TSL2571 light sensor. Previously I was using 4.4.113 kernel, where the sensor was working as well. Tested with two independent devices.
>$ cat in_intensity0_raw
>114

With the new kernel, output has only small resolution.
>$cat in_intensity0_raw
>1
There are values only like 1-2.
When I was trying to calibrate the sensor, it failed.
>$ echo > in_illuminance0_calibrate
>sh write error: Numerical result out of range
It was also working with the old kernel.
After some re-searching, I have found, which commit could broke this. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=498efcd08114905074a644bf81f82ce5c62eac43
I have reverted and re-based the commit on the top of my branch and sensor is working again. But calibrate it with "in_illuminance0_calibrate" is still not possible. Anyway I am using only the "raw" interface.

Regards,
Andy

Note You need to log in before you can comment on or make changes to this bug.