pmaports/device/linux-htc-protou/fix_otg_errors.patch
Ingo Feinerer 28f0e5d4e1
htc-protou: new device (HTC Desire X) (!588)
Changes in the kernel defconfig:
- disable ANDROID_PARANOID_NETWORK (removes network restrictions)
- enable CONFIG_USB_G_ANDROID and CONFIG_DIAG_CHAR (for USB networking)
- enable DEVTMPFS (needed for udev -> touch support in weston)
- enable FB_MSM_DEFAULT_DEPTH_RGB565 (for 16-bit support to avoid red
  screen)
- enable SYSVIPC (so busybox' syslogd can log to a ringbuffer in the
  kernel)
- enable VT (for virtual terminal over USB)

[ci:skip-build]: already built successfully in CI
2019-08-31 21:19:16 +02:00

14 lines
460 B
Diff

diff --git a/drivers/usb/otg/msm72k_otg.c b/drivers/usb/otg/msm72k_otg.c
--- a/drivers/usb/otg/msm72k_otg.c
+++ b/drivers/usb/otg/msm72k_otg.c
@@ -2029,10 +2029,6 @@ static void msm_otg_sm_work(struct work_struct *w)
queue_work(dev->wq, &dev->notifier_work);
}
- if (check_htc_mode_status() != NOT_ON_AUTOBOT) {
- htc_mode_enable(0);
- android_switch_default();
- }
dev->ac_detect_count = 0;
del_timer(&dev->ac_detect_timer);