From: Laurent Pinchart Date: Tue, 20 Oct 2009 22:03:38 +0000 (+0200) Subject: USB gadget: Handle endpoint requests at the function level X-Git-Tag: v2.6.33-rc1~315^2~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5242658d1b97771d658991cf29be32bcf81d5859;p=pandora-kernel.git USB gadget: Handle endpoint requests at the function level Control requests targeted at an endpoint (that is sent to EP0 but specifying the target endpoint address in wIndex) are dispatched to the current configuration's setup callback, requiring all gadget drivers to dispatch the requests to the correct function driver. To avoid this, record which endpoints are used by each function in the composite driver SET CONFIGURATION handler and dispatch requests targeted at endpoints to the correct function. Signed-off-by: Laurent Pinchart Cc: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed