]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: function: acm: make f_acm pass USB20CV Chapter9
authorFelipe Balbi <balbi@ti.com>
Mon, 10 Nov 2014 14:56:40 +0000 (08:56 -0600)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:03:04 +0000 (19:03 +0100)
commit19342b6d5f7a7f0d7c8031e9db0b4f833e946f7a
tree70b6eebb2362ddb46944b576a1909ef38453705b
parent4220f3ffc14964c3395c031334d088f6fd545009
usb: gadget: function: acm: make f_acm pass USB20CV Chapter9

[ Upstream commit 52ec49a5e56a27c5b6f8217708783eff39f24c16 ]

During Halt Endpoint Test, our interrupt endpoint
will be disabled, which will clear out ep->desc
to NULL. Unless we call config_ep_by_speed() again,
we will not be able to enable this endpoint which
will make us fail that test.

Fixes: f9c56cd (usb: gadget: Clear usb_endpoint_descriptor
inside the struct usb_ep on disable)
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/gadget/f_acm.c