device-google-sargo: Reload I2C drivers on error

It's common for the I2C touch driver on the Google Pixel 3a to crash resulting in touch input not working, see [1].

This patch adds a systemd service that can be used to monitor for errors and reload the drivers on error, the original idea came from [2].

The actual script is not systemd specific, so that the script can be ported to openrc if required.

1: https://gitlab.com/sdm670-mainline/linux/-/work_items/6 2: https://gitlab.com/sdm670-mainline/linux/-/work_items/6#note_3104050714

Signed-off-by: Alistair Francis alistair@alistair23.me

Merge request reports

Loading