summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2017-01-09 13:10:24 -0800
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-12 10:02:48 +0200
commit866932e2771f35d20ed2f1865bcf6af8dba765bb (patch)
tree95ec33af012cb3251234456bb64a8182ea4ad2f3 /drivers/usb/dwc2
parentb2f92f0ff0a26a6d758ce85167a77d7d1268ca36 (diff)
usb: dwc2: Avoid suspending if we're in gadget mode
I've found when booting HiKey with the usb gadget cable attached if I then try to connect via adb, I get an infinite spew of: dwc2 f72c0000.usb: dwc2_hsotg_ep_sethalt(ep ffffffc0790ecb18 ep1out, 0) dwc2 f72c0000.usb: dwc2_hsotg_ep_sethalt(ep ffffffc0790eca18 ep1in, 0) It seems that the usb autosuspend is suspending the bus shortly after bootup when the gadget cable is attached. So when adbd then tries to use the device, it doesn't work and it then tries to restart it over and over via the ep_sethalt calls (via FUNCTIONFS_CLEAR_HALT ioctl). Chen Yu suggested this patch to avoid suspending if we're in device mode, and it avoids the problem. Cc: Wei Xu <xuwei5@hisilicon.com> Cc: Guodong Xu <guodong.xu@linaro.org> Cc: Amit Pundir <amit.pundir@linaro.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: John Youn <johnyoun@synopsys.com> Cc: Douglas Anderson <dianders@chromium.org> Cc: Chen Yu <chenyu56@huawei.com> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Felipe Balbi <felipe.balbi@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: linux-usb@vger.kernel.org Suggested-by: Chen Yu <chenyu56@huawei.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2')
-rw-r--r--drivers/usb/dwc2/hcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 911c3b36ac06..8b264d4aaaeb 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -4367,6 +4367,9 @@ static int _dwc2_hcd_suspend(struct usb_hcd *hcd)
if (!HCD_HW_ACCESSIBLE(hcd))
goto unlock;
+ if (hsotg->op_state == OTG_STATE_B_PERIPHERAL)
+ goto unlock;
+
if (!hsotg->params.hibernation)
goto skip_power_saving;
on> main, development dictionaries repositoryroot
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2017-06-01Version 5.3.4.1, tag libreoffice-5.3.4.1libreoffice-5.3.4.1Christian Lohmaier0-0/+0
2017-06-01Branch libreoffice-5-3-4libreoffice-5-3-4Christian Lohmaier0-0/+0
2017-05-02tdf#107558 French spelling dictionary (6.0.3) and thesaurusgov-5.3-49cp-5.3-66cp-5.3-65cp-5.3-64cp-5.3-63cp-5.3-60cp-5.3-59cp-5.3-58cp-5.3-57cp-5.3-56cp-5.3-55cp-5.3-53cp-5.3-52cp-5.3-51cp-5.3-50cp-5.3-49cp-5.3-47cp-5.3-46cp-5.3-44cp-5.3-43cp-5.3-42cp-5.3-41cp-5.3-40cp-5.3-39cp-5.3-38cp-5.3-37cp-5.3-36cp-5.3-35cp-5.3-33cp-5.3-32cp-5.3-29cp-5.3-28cp-5.3-26cp-5.3-25cp-5.3-24cp-5.3-22cp-5.3-21cp-5.3-20cp-5.3-19cp-5.3-18cp-5.3-17cp-5.3-15cp-5.3-14cp-5.3-13cp-5.3-12cp-5.3-11co-5.3-67co-5.3-66co-5.3-65co-5.3-64co-5.3-63co-5.3-59co-5.3-58co-5.3-57co-5.3-54co-5.3-49co-5.3-48cd-5.3-61cd-5.3-23libreoffice-5-3distro/collabora/cp-5.3distro/collabora/cd-5.3-3.4Olivier R6-84839/+88495
2017-03-03Update Croatian dictionary to version 2.0cp-5.3-9cp-5.3-8-wincp-5.3-8cp-5.3-7cp-5.3-6cp-5.3-5cp-5.3-4cp-5.3-3cp-5.3-2cp-5.3-10cp-5.3-1Krunoslav Šebetić3-215123/+55246
2017-02-07Guarani spell checker and thesaurus.Giovanni Caligaris9-9/+4250
2017-01-22tdf#105396 update German dictionariesAndras Timar15-90882/+360559
2016-12-29tdf#97349: typo fixes in control wordsAndras Timar1-2/+2
2016-12-14Updated the GB DictionaryMarco A.G.Pinto4-180/+2112
2016-11-23Branch libreoffice-5-3Christian Lohmaier0-0/+0
2016-11-22tdf#103922: add Tibetan syllable spellcheckerlibreoffice-5-3-branch-pointAron Budea9-0/+575
2016-11-20Czech thesaurus: regenerate from updated sourceStanislav Horacek4-4433/+3724
2016-11-07Czech thesaurus: regenerate from updated sourceStanislav Horacek6-82083/+80581
2016-10-08Calquing English’s title case is bad style in Spanish and GuaraniAdolfo Jayme Barrientos1-2/+2
2016-10-03Update pt_PT dictionary to version 16.10.1.2Andras Timar4-15942/+91971
2016-09-29Update Guarani thesaurus to v1.1Giovanni Calligaris11-915/+921
2016-08-16Update the Swedish dictionary to the latest releaseNiklas Johansson3-165718/+166321
2016-07-28cut size of README_en_GB.txtAron Budea1-15573/+11
2016-07-18tdf#97393, tdf#100019: updated EN (CA, GB, US, ZA) dictionariesAron Budea10-44003/+46538
2016-07-07Update pt_PT dictionary to version 16.7.4.1Andras Timar3-46/+74
2016-06-14tdf#90786 Put license file in the right directoryAron Budea1-1/+2
2016-05-24gb_Dictionary_add_thesaurus doesn't like whitespacelibreoffice-5-2-branch-pointcp-5.1-branch-pointChristian Lohmaier1-3/+1
2016-05-23thesuaurs.idx is generated by gb_Dictionary_add_thesaurusChristian Lohmaier2-145870/+1
2016-05-23tdf#97393 Update English Dictionaries to 2016.05.01 releaseAron Budea15-164413/+310946
2016-05-18tdf#90786 Bundle license file, and update Scottish Gaelic dict to 3.1Aron Budea4-6870/+111641
2016-04-07Update Croatian dictionaryKrunoslav Šebetić4-60130/+60741
2016-04-05Bring shipped Spanish dictionary up to version 2.1Ricardo Palomares8-7989/+22236
2016-03-14Update Icelandic dictionary and thesaurusBjörgvin Ragnarsson4-27612/+35842
2016-03-10tdf#98531 Updated Croatian dictionaryKrunoslav Šebetić3-186339/+186648
2016-02-26Czech thesaurus: Blacklist more words + re-generate after the recent changes.Jan Holesovsky2-100422/+75153
2016-02-26dictionary-to-thesaurus.py: Put the better categorized words to the front.Jan Holesovsky1-7/+13
2016-02-26dictionary-to-thesaurus.py: Only output the same class of word.Jan Holesovsky1-5/+27
2016-02-25Czech thesaurus: Updates of some terms.Jan Holesovsky2-36/+17
2016-02-25Czech thesaurus: Blacklist some unhelpful meanings.Jan Holesovsky3-8/+14
2016-02-25dictionary-to-thesaurus.py: Move blacklist to a separate file.Jan Holesovsky2-16/+35
2016-02-25Related tdf#93514: Introduce a new Czech thesaurus.Jan Holesovsky6-5/+186534
2016-02-25dictionary-to-thesaurus.py: Actually use the Czech names.Jan Holesovsky1-4/+4
2016-02-25dictionary-to-thesaurus.py: Various cleanups.Jan Holesovsky1-12/+66
2016-02-25dos2unix on the cs_CZ files.Jan Holesovsky4-520/+514
2016-02-25Czech: Script and dictionary to generate the Czech thesaurus.Jan Holesovsky2-0/+217872
2016-02-11Updated pt_PT dictionary to version 16.1.3.4Andras Timar2-15/+20
2016-01-17Bring shipped Spanish dictionary up to version 2.0Ricardo Palomares7-48438/+56809
2016-01-07Update the Swedish spelling dictionariesNiklas Johansson3-79/+649
2016-01-04tdf#96782 updated German dictionariesAndras Timar15-150513/+345430
2015-12-28Updated Slovenian thesaurusAndras Timar3-380/+1468
2015-12-12Add Guarani thesaurus (gug-PY)Giovanni Caligaris11-0/+3293
2015-10-27tdf#95024 update Hungarian spelling dictionarylibreoffice-5-1-branch-pointLászló Németh4-83523/+84518
2015-10-15Update pt_PT dictionary to version 15.10.3.1Andras Timar2-3/+4
2015-09-28tdf#94573: invalid encoding in hyph_zu_ZAJulien Nabet1-1/+1
2015-09-21tdf#94415 update Greek dictionary to version 0.9Andras Timar