summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/hd.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-11-25 15:59:18 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2015-11-25 15:34:19 -0800
commit5ef323846ff7d1c32e4fb2441dfc79b10d6092b3 (patch)
tree1a9287746669e0b8f78bace354c615a68006c1d2 /drivers/staging/greybus/hd.h
parent87757e325ab8b5b9e0e90e37de77778a631e6c8c (diff)
downloadlinux-5ef323846ff7d1c32e4fb2441dfc79b10d6092b3.tar.bz2
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>
Diffstat (limited to 'drivers/staging/greybus/hd.h')
-rw-r--r--drivers/staging/greybus/hd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/hd.h b/drivers/staging/greybus/hd.h
index 6bc9ce3df672..72716e0e81b1 100644
--- a/drivers/staging/greybus/hd.h
+++ b/drivers/staging/greybus/hd.h
@@ -41,8 +41,8 @@ struct gb_host_device {
size_t buffer_size_max;
struct gb_endo *endo;
- struct gb_connection *initial_svc_connection;
struct gb_svc *svc;
+ struct gb_connection *svc_connection;
/* Private data for the host driver */
unsigned long hd_priv[0] __aligned(sizeof(s64));