]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: epautoconf: add endpoint capabilities flags verification
authorRobert Baldyga <r.baldyga@samsung.com>
Fri, 31 Jul 2015 14:00:49 +0000 (16:00 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 17:27:11 +0000 (12:27 -0500)
commitb1e1ac8605a07ac3c39625e9370d5704a0397c35
tree674c1e24491c7ea292eb37a70cadfd29c292e1fc
parent9c998d978262472d9ca72dfb2a73c9cfacb80250
usb: gadget: epautoconf: add endpoint capabilities flags verification

Introduce endpoint matching mechanism basing on endpoint capabilities
flags. We check if endpoint supports transfer type and direction requested
in ep descriptor. Since we have this new endpoint matching mechanism
there is no need to have old code guessing endpoint capabilities basing
on its name, so we are getting rid of it. Remove also the obsolete comment.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/epautoconf.c