* @usb_dev: pointer to the USB device we are.
* @usb_intf: pointer to the USB interface we are bound to.
* @hd: pointer to our greybus_host_device structure
- * @control_endpoint: endpoint to send data to SVC
* @cport_in_endpoint: bulk in endpoint for CPort data
* @cport-out_endpoint: bulk out endpoint for CPort data
* @cport_in_urb: array of urbs for the CPort in messages
struct usb_interface *usb_intf;
struct greybus_host_device *hd;
- __u8 control_endpoint;
__u8 cport_in_endpoint;
__u8 cport_out_endpoint;
/* SVC messages go down our control pipe */
do {
retval = usb_control_msg(es1->usb_dev,
- usb_rcvctrlpipe(es1->usb_dev,
- es1->control_endpoint),
+ usb_rcvctrlpipe(es1->usb_dev, 0),
REQUEST_LOG,
USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
0x00, 0x00,
spin_lock_init(&es1->cport_out_urb_lock);
usb_set_intfdata(interface, es1);
- /* Control endpoint is the pipe to talk to this AP, so save it off */
- endpoint = &udev->ep0.desc;
- es1->control_endpoint = endpoint->bEndpointAddress;
-
/* find all 3 of our endpoints */
iface_desc = interface->cur_altsetting;
for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) {
* @usb_dev: pointer to the USB device we are.
* @usb_intf: pointer to the USB interface we are bound to.
* @hd: pointer to our greybus_host_device structure
- * @control_endpoint: endpoint to send data to SVC
* @cport_in: endpoint, urbs and buffer for cport in messages
* @cport_out: endpoint for for cport out messages
struct usb_interface *usb_intf;
struct greybus_host_device *hd;
- __u8 control_endpoint;
-
struct es1_cport_in cport_in[NUM_BULKS];
struct es1_cport_out cport_out[NUM_BULKS];
struct urb *cport_out_urb[NUM_CPORT_OUT_URB];
cport_to_ep->endpoint_out = es1->cport_out[bulk_ep_set].endpoint;
retval = usb_control_msg(es1->usb_dev,
- usb_sndctrlpipe(es1->usb_dev,
- es1->control_endpoint),
+ usb_sndctrlpipe(es1->usb_dev, 0),
REQUEST_EP_MAPPING,
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
0x00, 0x00,
/* SVC messages go down our control pipe */
do {
retval = usb_control_msg(es1->usb_dev,
- usb_rcvctrlpipe(es1->usb_dev,
- es1->control_endpoint),
+ usb_rcvctrlpipe(es1->usb_dev, 0),
REQUEST_LOG,
USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
0x00, 0x00,
spin_lock_init(&es1->cport_out_urb_lock);
usb_set_intfdata(interface, es1);
- /* Control endpoint is the pipe to talk to this AP, so save it off */
- endpoint = &udev->ep0.desc;
- es1->control_endpoint = endpoint->bEndpointAddress;
-
es1->cport_to_ep = kcalloc(hd->num_cports, sizeof(*es1->cport_to_ep),
GFP_KERNEL);
if (!es1->cport_to_ep) {