]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: connection: fix offloaded-connection ping cport id
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 3 Aug 2016 12:09:30 +0000 (14:09 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Aug 2016 13:42:38 +0000 (15:42 +0200)
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 <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c

index 634c8b1e92f370da1872331e85ae2f95437c7b6c..ce8ba9ca8e5e666fd8abc1ef0f8e207fae225b7f 100644 (file)
@@ -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);
        }