From 06d8b7d9cf37c323aae23bfe97eabdebf0e94ce7 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 3 Aug 2016 14:09:30 +0200 Subject: [PATCH] greybus: connection: fix offloaded-connection ping cport id The host-device cport_ping callback expects the AP side cport id, but was incorrectly passed the interface cport id. Note that no host-device driver currently implements this callback, and that it is soon even to be removed. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 634c8b1e92f3..ce8ba9ca8e5e 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/staging/greybus/connection.c @@ -527,7 +527,7 @@ static int gb_connection_ping(struct gb_connection *connection) if (!hd->driver->cport_ping) return 0; - ret = hd->driver->cport_ping(hd, connection->intf_cport_id); + ret = hd->driver->cport_ping(hd, connection->hd_cport_id); } else { ret = gb_connection_ping_operation(connection); } -- 2.39.2