No description
Find a file
Rohith Kollalsi 93f8a37113 usb: dwc3: Prevent deadlock when wakeup happens through pwr event irq
Consider a scenario when a device which supports auto suspend is
connected to DUT and auto suspend happened. Now, as the device is
disconnected to DUT. Resume_work is called due to extcon notification
of disconnect and then again suspend is expected to schedule. As
a part of disconnect, pwr event irq and DP_HS_PHY_IRQ also got
triggered and now since usb is in lpm, resume work got scheduled
twice. This resume work flushed sm_work which is stuck because
disable_irq call is waiting for pwr_irq call which called resume_work
to complete. This is clearly a circular dependency because
resume work will flush sm_work which is waiting for pwr_irq_thread
to be complete because disable_irq in msm_suspend waits for
pwr_irq_handler to complete.

Solve this by replacing disable_irq api with disable_irq_nosync
so that it doesn't block control suspend.

Below are the sequence of events.

	usb is auto suspended with device connected to DUT.

	Now device is disconnected from DUT and hence resume
	hanppens first and then suspend.

	dwc3_resume_work is called due to extcon as a part of
	disconnect then suspend will be scheduled.

	When dwc3 is still in lpm, i.e dwc3_resume_work did
	not take effect yet.

	Now power event irq is fired because of which resume
	work runs.

	This resume work flushes sm work. Which is currently
	executing msm_suspend where disable_irq is waiting
	for power_irq call to finish which is waiting for
	sm_work to finish.

Change-Id: Ibf6e73663d4acaf997291e7eff6577adeaad6e8a
Signed-off-by: Rohith Kollalsi <quic_rkollals@quicinc.com>
2021-11-01 14:22:36 +05:30
arch Merge "arm64: defconfig: Enable focaltech touchscreen for kona device" 2020-07-21 18:33:05 -07:00
block ANDROID: block: require drivers to declare supported crypto key type(s) 2020-07-08 10:19:08 -07:00
certs
crypto Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
Documentation fscrypt: add FS_IOC_GET_ENCRYPTION_NONCE ioctl 2020-07-08 22:40:37 +05:30
drivers usb: dwc3: Prevent deadlock when wakeup happens through pwr event irq 2021-11-01 14:22:36 +05:30
firmware Fix built-in early-load Intel microcode alignment 2020-01-23 08:21:29 +01:00
fs Merge "ANDROID: fscrypt: fall back to filesystem-layer crypto when needed" 2020-07-18 14:26:37 -07:00
include Merge "soc: qcom: socinfo: Add support for bengal iot soc-id" 2020-07-22 19:50:55 -07:00
init Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
ipc This is the 4.19.107 stable release 2020-03-03 07:33:01 +01:00
kernel Merge "kernel/notifier.c: intercept duplicate registrations to avoid infinite loops" 2020-07-23 05:51:33 -07:00
lib Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
LICENSES
mm Merge "Revert "mm, page_alloc: fix core hung in free_pcppages_bulk()"" 2020-07-04 08:39:33 -07:00
net genetlink: remove genl_bind 2020-07-01 17:42:45 -06:00
samples FROMGIT: samples/hw_breakpoint: drop use of kallsyms_lookup_name() 2020-03-12 11:18:49 +00:00
scripts scripts: Consider env variables while running 'make' 2020-05-29 11:51:00 +05:30
security apparmor: don't try to replace stale label in ptraceme check 2020-06-11 21:13:57 +08:00
sound sound: usb: Fix error handling path 2020-06-24 15:47:36 +05:30
techpack Revert "techpack: replace type with xtype while searching for sub-dirs" 2019-11-19 07:06:17 -08:00
tools ANDROID: Incremental fs: Clean up incfs_test build process 2020-06-28 10:16:27 -07:00
usr
virt Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
abi_gki_aarch64.xml ANDROID: update the ABI xml representation 2020-03-12 14:26:15 -07:00
abi_gki_aarch64_cuttlefish_whitelist ANDROID: ABI/Whitelist: update for Cuttlefish 2020-02-12 11:11:16 +00:00
abi_gki_aarch64_qcom_whitelist ANDROID: Update ABI whitelist for qcom SoCs 2020-03-06 14:50:51 -08:00
abi_gki_aarch64_whitelist ANDROID: abi_gki_aarch64_whitelist: add module_layout and task_struct 2020-03-05 09:07:15 +00:00
Android.bp Example kernel headers header_lib package 2020-01-18 11:53:58 -08:00
AndroidKernel.mk
build.config.aarch64 ANDROID: refactor build.config files to remove duplication 2019-10-22 18:27:12 -07:00
build.config.allmodconfig ANDROID: Don't base allmodconfig on gki_defconfig 2019-12-05 12:48:26 +00:00
build.config.allmodconfig.aarch64 ANDROID: Add allmodconfig build.configs for x86_64 and aarch64 2019-11-12 20:55:23 +00:00
build.config.allmodconfig.x86_64 ANDROID: Add allmodconfig build.configs for x86_64 and aarch64 2019-11-12 20:55:23 +00:00
build.config.common ANDROID: clang: update to 10.0.4 2020-02-19 19:33:36 +00:00
build.config.cuttlefish.aarch64 ANDROID: cf build: Use merge_configs 2020-02-18 21:19:23 +00:00
build.config.cuttlefish.x86_64 ANDROID: cf build: Use merge_configs 2020-02-18 21:19:23 +00:00
build.config.gki ANDROID: gki: Removed cf modules from gki_defconfig 2020-01-31 16:23:38 -08:00
build.config.gki.aarch64 ANDROID: Add ABI Whitelist for qcom 2020-02-28 23:45:43 +00:00
build.config.gki.x86_64 ANDROID: refactor build.config files to remove duplication 2019-10-22 18:27:12 -07:00
build.config.goldfish.arm
build.config.goldfish.arm64
build.config.goldfish.mips
build.config.goldfish.mips64
build.config.goldfish.x86
build.config.goldfish.x86_64
build.config.x86_64 ANDROID: refactor build.config files to remove duplication 2019-10-22 18:27:12 -07:00
COPYING
CREDITS
cuttlefish.fragment ANDROID: Add TPM support and the vTPM proxy to Cuttlefish. 2020-03-13 17:19:53 +00:00
gen_headers_arm.bp msm: camera: compilation fix in isp 2020-07-21 01:05:54 -07:00
gen_headers_arm64.bp msm: camera: compilation fix in isp 2020-07-21 01:05:54 -07:00
Kbuild
Kconfig
kernel_headers.py Revert "kernel_headers: Disable headers matching" 2020-05-01 13:22:22 -07:00
MAINTAINERS Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
Makefile Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
README
verity_dev_keys.x509

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.