Re: [PATCH v9 52/55] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

From: Dmitry Osipenko
Date: Wed Mar 25 2020 - 15:41:37 EST


25.03.2020 22:35, Dmitry Osipenko ÐÐÑÐÑ:
...
>> + INIT_WORK(&data->watchdog_work, mxt_watchdog_work);
>> +
>> + /* setup watchdog timer */
>> + timer_setup(&data->watchdog_timer, mxt_watchdog_timer, 0);
>> +
>> + mxt_start_wd_timer(data);
>
> I'd expect it to be optional and opt-in by either using #ifdef
> TOUCHSCREEN_ATMEL_MXT_DEBUG or having a new debugfs option to explicitly
> enable the "watchdog".
>

It also could be a kernel module parameter.