Avoid usb detection at _FT8726 touchscreen driver

WHAT: This changes restrict the recent impletementation of usb detection
        at focaltech fingerprint driver so it does dot affect _FT8726
WHY:  At current implementation of usb detection, _FT8726 causes a 
      kernel panic when the USB cable is connected. _FT8726 cannot set
      the register that fts_mcu_usb_detect_set expects it to have, so it
      holds a mutex, fails to set the register and panics at 
      ___might_sleep. The support of us detect is handled by 
      FTS_USB_DETECT_EN, so disable it for _FT8726

Change-Id: I7be8eff1b9b23190a5165f6486bbfd0959eae6b4
Reviewed-on: https://gerrit.mot.com/2675494
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Pedro Tadahiro Kaneko <pedrotfk@motorola.com>
Reviewed-by: Claudio Junior <claudioj@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Bruno Oliveira 2023-07-13 10:36:29 -03:00
commit e891eb4643

View file

@ -286,7 +286,11 @@
/*
* Usb detect support
*/
#if (FTS_CHIP_TYPE == _FT8726)
#define FTS_USB_DETECT_EN 0
#else
#define FTS_USB_DETECT_EN 1
#endif
/*
* module_id: mean vendor_id generally, also maybe gpio or lcm_id...