Re: [PATCH 2/3] usb: gadget: mtp: Add MTP function driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Oct 04, 2010 at 07:15:37AM -0500, Arnaud Mandy wrote:
+static void
+disable_mtp(struct f_mtp *mtp)
+{
+       struct usb_composite_dev *cdev  = mtp->cdev;
+
+       if (mtp->ep_notify->driver_data) {
+               /* disable OUT/IN endpoints */
+               gmtp_disconnect(mtp);
+               /* disable INT endpoint */
+               usb_ep_disable(mtp->ep_notify);
+               mtp->ep_notify->driver_data = NULL;
+               DBG(cdev, "%s: mtp 0 disabled\n", __func__);
+       }
+       mtp->usb_speed = -1;

use USB_SPEED_UNKNOWN

+       mtp->usb_speed          = -1;  /* invalid speed */

use USB_SPEED_UNKNOWN

--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux