Re: [PATCH v8 8/8] usb: chipidea: udc: fix the oops when plugs in usb cable after rmmod gadget

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

 



Hi,

On Sun, Feb 17, 2013 at 11:09:53AM +0800, Peter Chen wrote:
> @@ -1373,6 +1375,8 @@ static int ci13xxx_vbus_session(struct usb_gadget *_gadget, int is_active)
>  			hw_device_state(ci, ci->ep0out->qh.dma);
>  			dev_dbg(ci->dev, "Connected to host\n");
>  		} else {
> +			if (ci->driver)
> +				ci->driver->disconnect(&ci->gadget);

This looks wrong. Why do you need to call ->disconnect() here ?

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux