mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
6abe534f07
Currently we register the pass-through serio port when we probe the F03 RMI
function, and then, in sensor configure phase, we unmask interrupts.
Unfortunately this is too late, as other drivers are free probe devices
attached to the serio port as soon as it is probed. Because interrupts are
masked, the IO times out, which may result in not being able to detect
trackpoints on the pass-through port.
To fix the issue we implement open() and close() methods for the
pass-through serio port and unmask interrupts from there. We also move
creation of the pass-through port form probe to configure stage, as RMI
driver does not enable transport interrupt until all functions are probed
(we should change this, but this is a separate topic).
We also try to clear the pending data before unmasking interrupts, because
some devices like to spam the system with multiple 0xaa 0x00 announcements,
which may interfere with us trying to query ID of the device.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rmi_2d_sensor.c | ||
rmi_2d_sensor.h | ||
rmi_bus.c | ||
rmi_bus.h | ||
rmi_driver.c | ||
rmi_driver.h | ||
rmi_f01.c | ||
rmi_f03.c | ||
rmi_f11.c | ||
rmi_f12.c | ||
rmi_f30.c | ||
rmi_f34.c | ||
rmi_f34.h | ||
rmi_f34v7.c | ||
rmi_f54.c | ||
rmi_f55.c | ||
rmi_i2c.c | ||
rmi_smbus.c | ||
rmi_spi.c |