瀏覽代碼

Merge tag 'usb-ci-v4.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb into usb-linus

Peter writes:

Fix for kernel panic during the system reboot for some boards
Greg Kroah-Hartman 9 年之前
父節點
當前提交
c1aa67729a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/usb/chipidea/host.c

+ 2 - 0
drivers/usb/chipidea/host.c

@@ -188,6 +188,8 @@ static void host_stop(struct ci_hdrc *ci)
 
 
 	if (hcd) {
 	if (hcd) {
 		usb_remove_hcd(hcd);
 		usb_remove_hcd(hcd);
+		ci->role = CI_ROLE_END;
+		synchronize_irq(ci->irq);
 		usb_put_hcd(hcd);
 		usb_put_hcd(hcd);
 		if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) &&
 		if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) &&
 			(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))
 			(ci->platdata->flags & CI_HDRC_TURN_VBUS_EARLY_ON))