We are using TWL6032A2B4YFFR PMIC. When USB plug is removed while first connected to a host, sometimes Android does not detect the event and the USB icon remains. We have found that in the failing case the following registers remain while USB cable is unplugged.
When USB disconnected but icon stuck, PMIC generates an interrupt (IRQ 378) with wrong information, reading the interrupt status registers...
- STS_HW_CONDITIONS bit-3 reads 1 (Charger is plugged)
- CONTROLLER_STAT1 bit-2 reads 0 (VBUS is not present)
In this failure case, battery icon is white with no charging sign, probably due to no VBUS signal is read.
In correct USB disconnected case, STS_HW_CONDITIONS register bit-3 reads 0 (No charger plugged).
What could possibly be causing the failing condition.