OSDN Git Service

usb: bdc: Halt controller on suspend
authorDanesh Petigara <danesh.petigara@broadcom.com>
Wed, 22 Jul 2020 17:07:45 +0000 (13:07 -0400)
committerFelipe Balbi <balbi@kernel.org>
Fri, 24 Jul 2020 13:45:15 +0000 (16:45 +0300)
commit5fc453d7de3d0c345812453823a3a56783c5f82c
tree74c1c14539c82654f229adb1d85494f709576b15
parentb10d33c4f068ebb70a607d644b7ace259127aa18
usb: bdc: Halt controller on suspend

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>
drivers/usb/gadget/udc/bdc/bdc_core.c