usb: gadget: configfs: Add a specific configFS reset callback
authorWesley Cheng <wcheng@codeaurora.org>
Tue, 29 Dec 2020 23:03:31 +0000 (15:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 13:34:22 +0000 (14:34 +0100)
commit4d7aae9f7a18f27ade0fc1d275f272f23529d6ba
treefb518d3234c229d7e41c3c3a9eb9efd3ec9b80dd
parented054e4e95d6cb0582f1283707ddb40f18d14bfb
usb: gadget: configfs: Add a specific configFS reset callback

In order for configFS based USB gadgets to set the proper charge current
for bus reset scenarios, expose a separate reset callback to set the
current to 100mA based on the USB battery charging specification.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Link: https://lore.kernel.org/r/1609283011-21997-4-git-send-email-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/configfs.c