usb: gadget: f_midi: Transmit data only when IN ep is enabled
authorFelipe F. Tonello <eu@felipetonello.com>
Tue, 10 Nov 2015 17:52:03 +0000 (17:52 +0000)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Nov 2015 20:48:50 +0000 (14:48 -0600)
commite9ca7e4bb30cbf4c8d2e2e34681a967c10b3ff54
tree57269bfcfcf217a3ccff1bd4c1a086317ee7c4f8
parent8aa90cf2a28645c6733f8879c5fe1848c5d510b7
usb: gadget: f_midi: Transmit data only when IN ep is enabled

This makes sure f_midi doesn't try to enqueue data when the IN endpoint is
disabled, ie, USB cable is disconnected.

Reviewed-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_midi.c