usb: bdc: Add support for suspend/resume
authorAl Cooper <alcooperx@gmail.com>
Wed, 19 Jul 2017 19:11:45 +0000 (15:11 -0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:58 +0000 (14:18 +0300)
commit0de9742514a05e5d9a06479bd98b9f894f85328e
tree11c463e88339ddb43596e4bbc12752173363873d
parent8ac1685bf911f70aea6de67b3db5674c3ea112f1
usb: bdc: Add support for suspend/resume

Based on a previous commit by Danesh Petigara <dpetigara@broadcom.com>
that added resume to solve the following problem:
"The BDC driver will fail after resuming from S3 suspend and this
will cause any upper layer gadget driver to fail."
This commit also adds support for suspend and manages the clock during
suspend/resume.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/bdc/bdc.h
drivers/usb/gadget/udc/bdc/bdc_core.c