VENDOR: intel: usb: gadget: ffs: avoid disable ep twice

When FFS gadget function is disabled, gadget driver tries to
disable the endpoints twice, which triggers warning message
in device driver.

This patch ensures that usb_ep_disable() is not called again
after the endpoint has been disabled.

Signed-off-by: Jiebing Li <>
Signed-off-by: David Cohen <>

Bug: 26457812

Change-Id: I4e20bd0e918f0c26917f82f3cd0a513aa44d8499
Signed-off-by: Mihai Serban <>
1 file changed