greybus: es2.c: add a control request for endpoints mapping
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 15 Jun 2015 16:08:14 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 15 Jun 2015 23:51:44 +0000 (16:51 -0700)
commitfc1a536e603f5e096ae82c1a4195af41f0f5ee99
treef853ea51ef1d699efa3ac7e1982dc21644beae4c
parent606addd2847ccc56a70fe90d6861081f9a1cf7c1
greybus: es2.c: add a control request for endpoints mapping

ES2 give us more endpoints. Use them to map one cport to two endpoints
(in and out). Because there is more cports than endpoints, we still
need to mux other cports traffic on 2 endpoints.
Firmware currently assumes these endpoints are 2 and 3.

By default, all cports are muxed.
To map one cport to 2 endpoints, use map_cport_to_ep().

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c