Bug 205659

Summary: TSL2571 not working
Product: Drivers Reporter: Andrej (andrej.v)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: Other   
OS: Linux   
Kernel Version: 4.19.x Subsystem:
Regression: No Bisected commit-id:

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