OSDN Git Service

greybus: switch cport id used for sends
authorAlex Elder <elder@linaro.org>
Thu, 11 Dec 2014 22:48:38 +0000 (16:48 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 12 Dec 2014 00:48:39 +0000 (19:48 -0500)
commit0a9c4d70d372a85252c00a94cd45622b657397be
tree9277cac617d1be7398d0c0a661ac517891f7ca88
parent7de3e650fb736bf7c40e20f5dc866c544376119c
greybus: switch cport id used for sends

In talking with Perry today I learned that the CPort id expected to
supplied over the HSIC interface to the APB is different from the
way I understood it.

My understanding was that the CPort id to supply always specified
the CPort id on the other end of a connection.  However, Perry says
the mapping between local CPort id and remote CPort id (and device
id) is done by the host UniPro interface.

So whether sending or receiving data, the CPort id that the Greybus
code should supply to the AP Bridge is the one representing the AP
side of a connection.

This patch fixes this.  The receive side already used that CPort id;
it's only the sending code that needed to be changed.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c
drivers/staging/greybus/operation.c