From: Marek Szyprowski Date: Mon, 20 Oct 2014 10:45:38 +0000 (+0200) Subject: usb: dwc2: gadget: use soft-disconnect udc feature in pullup() method X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b9451f8c4fbaf0549139755fb45ff2b57975b7f;p=pandora-kernel.git usb: dwc2: gadget: use soft-disconnect udc feature in pullup() method This patch moves udc initialization from pullup() method to s3c_hsotg_udc_start(), so that method ends with hardware fully initialized and left in soft-disconnected state. After this change, the pullup() method simply clears soft-disconnect start() when called with is_on=1. For completeness, a call to s3c_hsotg_core_disconnect() has been added when pullup() method is called with is_on=0, what puts the udc hardware back to soft-disconnected state. Acked-by: Paul Zimmerman Signed-off-by: Marek Szyprowski Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed