usb: dwc2: gadget: rework suspend/resume code to correctly restore gadget state
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 21 Nov 2014 14:14:49 +0000 (15:14 +0100)
committerFelipe Balbi <balbi@ti.com>
Fri, 21 Nov 2014 15:07:42 +0000 (09:07 -0600)
Suspend/resume code assumed that the gadget was always started and
enabled to connect to usb bus. This means that the actual state of the
gadget (started/stopped or connected/disconnected) was not correctly
preserved on suspend/resume cycle. This patch fixes this issue.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found