greybus: usb: disable protocol driver
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 30 Jul 2015 18:30:41 +0000 (20:30 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 30 Jul 2015 20:49:49 +0000 (13:49 -0700)
The USB bridged-PHY protocol driver currently depends on changes to USB
core that are not yet upstream.

Disable for now.

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

index 17a5d7a..50173b9 100644 (file)
@@ -190,6 +190,18 @@ static int gb_usb_connection_init(struct gb_connection *connection)
 
        hcd->has_tt = 1;
 
+       /*
+        * FIXME: The USB bridged-PHY protocol driver depends on changes to
+        *        USB core which are not yet upstream.
+        *
+        *        Disable for now.
+        */
+       if (1) {
+               dev_warn(&connection->dev, "USB protocol disabled\n");
+               retval = -EPROTONOSUPPORT;
+               goto err_put_hcd;
+       }
+
        retval = usb_add_hcd(hcd, 0, 0);
        if (retval)
                goto err_put_hcd;