projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67adda
)
power: rk818-charger: fix usb_charger not assigned new state error
author
Jianhong Chen
<chenjh@rock-chips.com>
Wed, 19 Oct 2016 08:38:13 +0000
(16:38 +0800)
committer
Jianhong Chen
<chenjh@rock-chips.com>
Wed, 19 Oct 2016 09:01:06 +0000
(17:01 +0800)
Change-Id: I841fe6106fb51820d541cd99a21d0ad0305dec9d
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
drivers/power/rk818_charger.c
patch
|
blob
|
history
diff --git
a/drivers/power/rk818_charger.c
b/drivers/power/rk818_charger.c
index aeff14f20498b996e8660606b2c8d798ed274c6f..f8717e77ddfba20c5e4d4265d74383de4e4d66ad 100644
(file)
--- a/
drivers/power/rk818_charger.c
+++ b/
drivers/power/rk818_charger.c
@@
-966,6
+966,7
@@
static void rk818_cg_charger_evt_worker(struct work_struct *work)
if (charger != USB_TYPE_UNKNOWN_CHARGER) {
CG_INFO("receive type-c notifier event: %s...\n",
event[charger]);
+ cg->usb_charger = charger;
rk818_cg_set_chrg_param(cg, charger);
rk818_cg_pr_info(cg);
}
@@
-1061,6
+1062,7
@@
static long rk818_cg_init_usb(struct rk818_charger *cg)
cg->cable_edev = edev;
schedule_delayed_work(&cg->host_work, 0);
+ schedule_delayed_work(&cg->usb_work, 0);
CG_INFO("register typec extcon evt notifier\n");
} else {