greybus: hd: fix svc-connection handling
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 25 Nov 2015 14:59:18 +0000 (15:59 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 25 Nov 2015 23:34:19 +0000 (15:34 -0800)
commit5ef323846ff7d1c32e4fb2441dfc79b10d6092b3
tree1a9287746669e0b8f78bace354c615a68006c1d2
parent87757e325ab8b5b9e0e90e37de77778a631e6c8c
greybus: hd: fix svc-connection handling

Create the svc connection when registering the host-device and
remove the current svc connection hacks that "upgraded" the svc
connection once the endo id and ap interface id was known.

Note that the old implementation was partly based on a misunderstanding
as it was the remote interface id, rather than the local AP interface id,
that used to define a connection (but we also needed the endo_id).

The remote interface is no longer needed as static connections, such as
the svc connection, are now simply defined by the host-device and host
cport id.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/hd.c
drivers/staging/greybus/hd.h
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h