#define GB_USB_VERSION_MINOR 0x01
/* Greybus USB request types */
-#define GB_USB_TYPE_INVALID 0x00
-#define GB_USB_TYPE_PROTOCOL_VERSION 0x01
#define GB_USB_TYPE_HCD_START 0x02
#define GB_USB_TYPE_HCD_STOP 0x03
#define GB_USB_TYPE_HUB_CONTROL 0x04
struct gb_usb_device {
struct gb_connection *connection;
-
- u8 version_major;
- u8 version_minor;
};
static inline struct gb_usb_device *to_gb_usb_device(struct usb_hcd *hcd)
return container_of((void *)dev, struct usb_hcd, hcd_priv);
}
-/* Define get_version() routine */
-define_get_version(gb_usb_device, USB);
-
static void hcd_stop(struct usb_hcd *hcd)
{
struct gb_usb_device *dev = to_gb_usb_device(hcd);
gb_usb_dev->connection = connection;
connection->private = gb_usb_dev;
- /* Check for compatible protocol version */
- retval = get_version(gb_usb_dev);
- if (retval)
- goto err_put_hcd;
-
hcd->has_tt = 1;
/*