usb: dwc2: gadget: unmask idstschng interrupt only if controller supports it
commit1ee6903b8f9bbcbeb7cf72e5127d7a0b8aeb267c
authorGregory Herrero <gregory.herrero@intel.com>
Tue, 29 Sep 2015 10:08:27 +0000 (29 12:08 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:26 +0000 (1 12:40 -0500)
treedd27abb28e1abf8512649ca0df649b76db0514f5
parent2becdc62a98da6882d7457f7661f70255235ef88
usb: dwc2: gadget: unmask idstschng interrupt only if controller supports it

idstschng interrupt should not be used when id pin control is
external. This is already handled on dwc2 host part. Fix it on gadget
part as well.

Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: John Youn <johnyoun@synopsys.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c