]> git.ipfire.org Git - people/arne_f/kernel.git/commit
usb: bdc: Halt controller on suspend
authorDanesh Petigara <danesh.petigara@broadcom.com>
Wed, 22 Jul 2020 17:07:45 +0000 (13:07 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:06 +0000 (09:48 +0200)
commitfd0b60b0524920c29a57df1240a62b3a208360ec
tree805aa1ab28af6e8380ef45c230d30902aeda7bf2
parent6f4c9d91c1aa088dd73d330e752e8a121ac0c52d
usb: bdc: Halt controller on suspend

[ Upstream commit 5fc453d7de3d0c345812453823a3a56783c5f82c ]

GISB bus error kernel panics have been observed during S2 transition
tests on the 7271t platform. The errors are a result of the BDC
interrupt handler trying to access BDC register space after the
system's suspend callbacks have completed.

Adding a suspend hook to the BDC driver that halts the controller before
S2 entry thus preventing unwanted access to the BDC register space during
this transition.

Signed-off-by: Danesh Petigara <danesh.petigara@broadcom.com>
Signed-off-by: Al Cooper <alcooperx@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/bdc/bdc_core.c