From: Sylvain Rochet Date: Thu, 12 Feb 2015 17:54:07 +0000 (+0100) Subject: usb: gadget: atmel_usba_udc: Add suspend/resume with wakeup support X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=112bf24471b50f806cbcbead7bd485da70401b83;p=pandora-kernel.git usb: gadget: atmel_usba_udc: Add suspend/resume with wakeup support This patch add suspend/resume with wakeup support for Atmel USBA. On suspend: We stay continuously clocked if Vbus signal is not available. If Vbus signal is available we set the Vbus signal as a wake up source then we stop the USBA itself and all clocks used by USBA. On resume: We recover clocks and USBA if we stopped them. If a device is currently connected at resume time we enable the controller. Signed-off-by: Sylvain Rochet Acked-by: Boris Brezillon Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed