greybus: ap: process the UniPro link up message
authorMatt Porter <mporter@linaro.org>
Wed, 22 Oct 2014 02:43:31 +0000 (22:43 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 22 Oct 2014 05:57:49 +0000 (13:57 +0800)
commit6232b073d44646e3051a8871feb2deaabe9d624c
treed119e6ab4b4c8552912c3ce825a2f98f3a2a9ff3
parent1a4c013a44add7f174e0507f0240f3b3cc810301
greybus: ap: process the UniPro link up message

The link up message is the event that tells the AP what device ID
has been assigned to a particular interface on a module during
enumeration. The link up is sent *only* after the hotplug event
for a particular module has been sent to the AP.

The link up payload must carry the Module ID and Interface ID
to uniquely identify the struct gb_interface to which the
Device ID has been assigned.

After processing of the link up message, the interface's device_id
field will contain the assigned Device ID so that the AP has the
information necessary to issue network route commands.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/ap.c
drivers/staging/greybus/svc_msg.h