Bug 187531 - Please provide way to submit panel parameters not via DeviceTree in Silead driver
Summary: Please provide way to submit panel parameters not via DeviceTree in Silead dr...
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-13 01:01 UTC by RussianNeuroMancer
Modified: 2019-07-24 03:46 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.8.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments
module parameters added (1.58 KB, patch)
2016-12-05 07:37 UTC, Sergei Trusov
Details | Diff

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'.

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