Avoid closing the zForce input device on startup
The Neonode zForce touchscreen input device often fails when it is opened immediately after being closed. The device driver logs the following messages to the kernel ring buffer: [drivers/input/touchscreen/zforce_i2c.c-422] zforce_i2c_open() [zForce_ir_touch_recv_data-145] command Activate (0) ... [zForce_ir_touch_recv_data-154] command Resolution (0) ... [zForce_ir_touch_recv_data-179] command Frequency (0) ... [drivers/input/touchscreen/zforce_i2c.c-437] zforce_i2c_close() [drivers/input/touchscreen/zforce_i2c.c-422] zforce_i2c_open() [zForce_ir_touch_recv_data-142] command Deactivate ... [zForce_ir_touch_recv_data-198] command overrun (8) ... Reorder the initialization sequence to be "open, open, close" instead of "open, close, open" so that the device is never actually closed. With this change, the device reference count remains above zero so the call to close it is ignored, and the device driver logs the following messages to the ring buffer: [drivers/input/touchscreen/zforce_i2c.c-422] zforce_i2c_open() [zForce_ir_touch_recv_data-145] command Activate (0) ... [zForce_ir_touch_recv_data-154] command Resolution (0) ... [zForce_ir_touch_recv_data-179] command Frequency (0) ... Fixes #2
Loading
Please register or sign in to comment