William Wu
f7169a90bc
power: rk818-charger: fix usb charger undetected
...
On some platforms (e.g. rk3399), we use extcon notify
framework to receive USB charger notifier from USB PHY
driver. Generally, the USB PHY driver uses a work to check
vbus status and the USB charger type every 2 seconds,
this polling mechanism may cause USB charger undetected
if we plug in/out USB charger quickly.
A typical error case is:
1. Plug in an USB DCP Adapter.
- USB PHY driver sends notifier to rk818-charger
2. Plug out the USB Adapter, and plug in again immediately
- rk818 detects plug out irq, and turns off charging
- USB PHY driver schedule work doesn't detect the plug
out/in operations, and doesn't send usb charger notifier
Fortunately, rk818 can detect plug in irq, so let's check
the USB charger type in rk818 plug in irq handler.
Change-Id: Iee45769c8a98c709da2dbfa514198ab0f648fd20
Signed-off-by: William Wu <william.wu@rock-chips.com >
2017-07-07 19:17:12 +08:00
..
2017-05-12 14:22:14 +08:00
2017-05-06 14:23:00 +08:00
2015-09-22 13:35:31 +02:00
2015-11-11 15:57:28 +08:00
2013-04-16 17:38:10 -07:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 13:35:28 +02:00
2015-06-26 17:44:09 -07:00
2015-05-23 19:44:14 +02:00
2015-10-19 10:38:03 +02:00
2015-09-23 18:59:19 +02:00
2011-01-26 17:24:53 +08:00
2017-05-14 13:32:54 +02:00
2016-10-31 04:14:00 -06:00
2016-02-29 20:49:13 +08:00
2015-07-27 16:09:53 +02:00
2017-07-06 09:32:57 +08:00
2015-06-13 04:06:33 +02:00
2016-02-29 20:49:13 +08:00
2011-11-07 15:06:59 +08:00
2011-09-01 10:34:26 +08:00
2015-11-11 15:57:28 +08:00
2015-04-30 17:39:40 +02:00
2017-06-16 16:22:54 +08:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-10-13 11:28:07 +01:00
2015-03-13 23:15:51 +01:00
2015-07-27 16:28:54 +02:00
2015-07-27 16:28:54 +02:00
2015-03-13 23:15:51 +01:00
2016-12-26 17:45:08 +08:00
2015-03-13 23:15:51 +01:00
2016-12-01 15:18:44 +05:30
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2017-06-16 16:22:54 +08:00
2015-09-22 13:35:29 +02:00
2015-11-11 15:57:28 +08:00
2015-07-24 16:52:24 +02:00
2017-06-16 16:22:54 +08:00
2015-09-22 16:02:16 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 16:20:10 +02:00
2015-03-13 23:15:51 +01:00
2015-11-11 15:57:28 +08:00
2016-09-30 10:18:39 +02:00
2015-07-16 21:39:30 +01:00
2015-07-27 16:28:54 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2015-09-22 13:35:30 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2016-11-22 11:40:28 +08:00
2015-05-23 20:06:19 +02:00
2016-11-22 11:40:28 +08:00
2012-03-11 14:27:37 -04:00
2015-09-24 22:35:24 +02:00
2016-12-22 15:31:12 +08:00
2012-11-15 14:24:09 +08:00
2014-10-17 10:36:52 +08:00
2012-10-17 09:50:42 +08:00
2016-12-22 15:31:12 +08:00
2017-06-21 14:08:00 +08:00
2017-06-21 15:07:08 +08:00
2017-07-07 19:17:12 +08:00
2016-02-29 20:49:13 +08:00
2014-08-22 10:01:21 +08:00
2014-08-22 10:01:21 +08:00
2014-08-22 10:01:21 +08:00
2015-08-05 05:39:08 +02:00
2014-10-09 14:42:36 +08:00
2015-09-22 13:35:30 +02:00
2014-09-11 14:28:23 +08:00
2014-09-11 14:28:23 +08:00
2015-08-03 17:14:57 +02:00
2015-03-13 23:15:51 +01:00
2015-06-10 16:18:46 +02:00
2015-09-22 13:35:30 +02:00
2010-12-10 15:42:40 +08:00
2016-08-19 11:06:11 +08:00
2015-03-13 23:15:51 +01:00
2015-09-22 16:03:37 +02:00
2016-09-30 10:18:39 +02:00
2015-09-26 19:10:09 +02:00
2015-04-06 19:39:57 +02:00
2012-07-20 10:45:52 +08:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2012-02-13 10:42:18 +08:00
2015-09-26 18:55:09 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00