pmaports/device/testing/linux-htc-protou/fix_otg_errors.patch
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01: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);