https://github.com/torvalds/linux
Revision 0e5a3c8284a30f4c43fd81d7285528ece74563b5 authored by Gary Bisson on 25 January 2021, 16:19:34 UTC, committed by Greg Kroah-Hartman on 05 February 2021, 09:21:40 UTC
Commit fe8abf332b8f ("usb: dwc3: support clocks and resets for DWC3
core") introduced clock support and a new function named
dwc3_core_init_for_resume() which enables the clock before calling
dwc3_core_init() during resume as clocks get disabled during suspend.

Unfortunately in this commit the DWC3_GCTL_PRTCAP_OTG case was forgotten
and therefore during resume, a platform could call dwc3_core_init()
without re-enabling the clocks first, preventing to resume properly.

So update the resume path to call dwc3_core_init_for_resume() as it
should.

Fixes: fe8abf332b8f ("usb: dwc3: support clocks and resets for DWC3 core")
Cc: stable@vger.kernel.org
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Link: https://lore.kernel.org/r/20210125161934.527820-1-gary.bisson@boundarydevices.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d4a6106
History
Tip revision: 0e5a3c8284a30f4c43fd81d7285528ece74563b5 authored by Gary Bisson on 25 January 2021, 16:19:34 UTC
usb: dwc3: fix clock issue during resume in OTG mode
Tip revision: 0e5a3c8
File Mode Size
kasan
Kconfig -rw-r--r-- 28.1 KB
Kconfig.debug -rw-r--r-- 5.6 KB
Makefile -rw-r--r-- 4.3 KB
backing-dev.c -rw-r--r-- 25.2 KB
balloon_compaction.c -rw-r--r-- 8.2 KB
cleancache.c -rw-r--r-- 9.8 KB
cma.c -rw-r--r-- 14.2 KB
cma.h -rw-r--r-- 646 bytes
cma_debug.c -rw-r--r-- 4.5 KB
compaction.c -rw-r--r-- 81.2 KB
debug.c -rw-r--r-- 8.5 KB
debug_page_ref.c -rw-r--r-- 1.4 KB
debug_vm_pgtable.c -rw-r--r-- 29.0 KB
dmapool.c -rw-r--r-- 13.7 KB
early_ioremap.c -rw-r--r-- 6.8 KB
fadvise.c -rw-r--r-- 5.3 KB
failslab.c -rw-r--r-- 1.4 KB
filemap.c -rw-r--r-- 100.7 KB
frame_vector.c -rw-r--r-- 6.4 KB
frontswap.c -rw-r--r-- 14.2 KB
gup.c -rw-r--r-- 81.1 KB
gup_test.c -rw-r--r-- 5.4 KB
gup_test.h -rw-r--r-- 915 bytes
highmem.c -rw-r--r-- 19.3 KB
hmm.c -rw-r--r-- 16.6 KB
huge_memory.c -rw-r--r-- 82.6 KB
hugetlb.c -rw-r--r-- 155.1 KB
hugetlb_cgroup.c -rw-r--r-- 21.4 KB
hwpoison-inject.c -rw-r--r-- 2.6 KB
init-mm.c -rw-r--r-- 1.3 KB
internal.h -rw-r--r-- 19.3 KB
interval_tree.c -rw-r--r-- 3.1 KB
ioremap.c -rw-r--r-- 6.5 KB
khugepaged.c -rw-r--r-- 58.7 KB
kmemleak.c -rw-r--r-- 56.2 KB
ksm.c -rw-r--r-- 88.8 KB
list_lru.c -rw-r--r-- 14.3 KB
maccess.c -rw-r--r-- 8.7 KB
madvise.c -rw-r--r-- 30.5 KB
mapping_dirty_helpers.c -rw-r--r-- 10.5 KB
memblock.c -rw-r--r-- 60.2 KB
memcontrol.c -rw-r--r-- 190.2 KB
memfd.c -rw-r--r-- 7.9 KB
memory-failure.c -rw-r--r-- 52.4 KB
memory.c -rw-r--r-- 141.5 KB
memory_hotplug.c -rw-r--r-- 50.7 KB
mempolicy.c -rw-r--r-- 76.1 KB
mempool.c -rw-r--r-- 15.8 KB
memremap.c -rw-r--r-- 14.0 KB
memtest.c -rw-r--r-- 2.8 KB
migrate.c -rw-r--r-- 81.9 KB
mincore.c -rw-r--r-- 7.0 KB
mlock.c -rw-r--r-- 22.2 KB
mm_init.c -rw-r--r-- 5.3 KB
mmap.c -rw-r--r-- 103.0 KB
mmap_lock.c -rw-r--r-- 5.8 KB
mmu_gather.c -rw-r--r-- 8.4 KB
mmu_notifier.c -rw-r--r-- 34.3 KB
mmzone.c -rw-r--r-- 2.2 KB
mprotect.c -rw-r--r-- 17.3 KB
mremap.c -rw-r--r-- 25.7 KB
msync.c -rw-r--r-- 2.6 KB
nommu.c -rw-r--r-- 44.8 KB
oom_kill.c -rw-r--r-- 30.4 KB
page-writeback.c -rw-r--r-- 84.6 KB
page_alloc.c -rw-r--r-- 249.3 KB
page_counter.c -rw-r--r-- 6.6 KB
page_ext.c -rw-r--r-- 10.9 KB
page_idle.c -rw-r--r-- 5.3 KB
page_io.c -rw-r--r-- 11.6 KB
page_isolation.c -rw-r--r-- 9.2 KB
page_owner.c -rw-r--r-- 16.3 KB
page_poison.c -rw-r--r-- 2.3 KB
page_reporting.c -rw-r--r-- 9.9 KB
page_reporting.h -rw-r--r-- 1.6 KB
page_vma_mapped.c -rw-r--r-- 7.8 KB
pagewalk.c -rw-r--r-- 14.2 KB
percpu-internal.h -rw-r--r-- 7.7 KB
percpu-km.c -rw-r--r-- 3.0 KB
percpu-stats.c -rw-r--r-- 6.0 KB
percpu-vm.c -rw-r--r-- 10.3 KB
percpu.c -rw-r--r-- 95.4 KB
pgalloc-track.h -rw-r--r-- 1.3 KB
pgtable-generic.c -rw-r--r-- 5.6 KB
process_vm_access.c -rw-r--r-- 8.2 KB
ptdump.c -rw-r--r-- 4.0 KB
readahead.c -rw-r--r-- 17.3 KB
rmap.c -rw-r--r-- 55.6 KB
rodata_test.c -rw-r--r-- 1.3 KB
shmem.c -rw-r--r-- 110.8 KB
shuffle.c -rw-r--r-- 4.7 KB
shuffle.h -rw-r--r-- 1.1 KB
slab.c -rw-r--r-- 105.2 KB
slab.h -rw-r--r-- 16.3 KB
slab_common.c -rw-r--r-- 29.3 KB
slob.c -rw-r--r-- 18.0 KB
slub.c -rw-r--r-- 140.8 KB
sparse-vmemmap.c -rw-r--r-- 6.8 KB
sparse.c -rw-r--r-- 26.4 KB
swap.c -rw-r--r-- 32.4 KB
swap_cgroup.c -rw-r--r-- 5.1 KB
swap_slots.c -rw-r--r-- 9.3 KB
swap_state.c -rw-r--r-- 24.9 KB
swapfile.c -rw-r--r-- 96.9 KB
truncate.c -rw-r--r-- 27.7 KB
usercopy.c -rw-r--r-- 9.5 KB
userfaultfd.c -rw-r--r-- 17.6 KB
util.c -rw-r--r-- 24.2 KB
vmacache.c -rw-r--r-- 2.7 KB
vmalloc.c -rw-r--r-- 91.4 KB
vmpressure.c -rw-r--r-- 13.9 KB
vmscan.c -rw-r--r-- 123.9 KB
vmstat.c -rw-r--r-- 52.9 KB
workingset.c -rw-r--r-- 21.3 KB
z3fold.c -rw-r--r-- 46.8 KB
zbud.c -rw-r--r-- 18.2 KB
zpool.c -rw-r--r-- 11.2 KB
zsmalloc.c -rw-r--r-- 61.0 KB
zswap.c -rw-r--r-- 38.3 KB

back to top