AnsweredAssumed Answered

How modify egalax_tx.c driver to get information when it hangs?

Question asked by bb bbb on Apr 18, 2017
Latest reply on Apr 19, 2017 by bb bbb

We have custom board with imx6 and touchscreen egalx_tx.c driver. It works correctly but sometimes it hangs up. We want to modify driver to read in every 60 second inforamtion from chip and if we check that it hangs we reset it. How can I implement this to driver? I know ioctl but I do not see this implementation in i2c_driver. I want from user space check if driver can read register from chip and if driver can't I reset chip by antoher ioctl command. Is it good idea? Can you give me example how implement ioctl functionality in i2c_driver? Thank you