usb: bdc: fix "xsf for ep not enabled" errror
authorAl Cooper <alcooperx@gmail.com>
Wed, 19 Jul 2017 19:11:46 +0000 (15:11 -0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:58 +0000 (14:18 +0300)
commitcff97f3353b6bae09c8c5419f4294fb7fdecd656
treecd8d96e9060a5ac9241107d0cd33f916e3b80fa6
parent0de9742514a05e5d9a06479bd98b9f894f85328e
usb: bdc: fix "xsf for ep not enabled" errror

This patch essentially clears the port status change bits at the
correct times. It is necessary because the driver was not handling
the change bits correctly for events during device
connection/disconnection and bus enumeration. So, one of them (PCC)
was left stuck sometimes causing the "xsf for ep not enabled"
error we get on first connection. This was found by the Android team.
This was debugged and fixed by Sasi Kumar.

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