From: Mian Yousaf Kaukab Date: Fri, 9 Jan 2015 12:39:10 +0000 (+0100) Subject: usb: dwc2: gadget: report disconnection after reset X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d713c1531638df8d459d248a89948318cbeec4c;p=pandora-kernel.git usb: dwc2: gadget: report disconnection after reset If usb bus is reset without a physical disconnection, all endpoints will remain open. Call s3c_hsotg_disconnect() from reset handler to report a disconnect to gadget framework. hsotg->connected is checked in s3c_hsotg_disconnect() before processing disconnect. In some cases, USBRst is seen before EnumDone and after it as well. So move setting of hsotg->connected to set-address to avoid reporting extra disconnection in this case. Tested-by: Robert Baldyga Acked-by: Paul Zimmerman Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed