Bug 187531

Summary: Please provide way to submit panel parameters not via DeviceTree in Silead driver
Product: Drivers Reporter: RussianNeuroMancer (russianneuromancer)
Component: Input DevicesAssignee: drivers_input-devices
Status: RESOLVED CODE_FIX    
Severity: normal CC: sergei.a.trusov
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.8.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: module parameters added

Description RussianNeuroMancer 2016-11-13 01:01:45 UTC
There is many BayTrail/CherryTrail-based China tablets and transformers on the market that have Silead touch panels. This devices came with preinstalled Windows or Android (or both) and use proprietary Silead Inc driver. New Intel's Silead touch driver that was merged in Linux 4.8 use 4095x4095 panel parameters as default on tablets where panel parameters not available from DSDT or DT, hence on all (or almost all) hardware available on the market for end-users. Obviously, such default make touchscreen unusable even if correct firmware was submitted by user. As I understand, the only way to submit right panel parameters to the driver right now, is by overriding DSDT or by editing driver source code, both ways not so user friendly. 
Please provide some way to submit panel parameters to the driver besides mentioned. Maybe implement it via kernel module options and/or set of quirks?
Comment 1 Sergei Trusov 2016-12-05 07:37:31 UTC
Created attachment 246851 [details]
module parameters added

The patch exports five module parameters: max_x, max_y, invert_x, invert_y, swap_x_y. The last tree are of type bool and have no side effects when value is 'N'.