Re: [PATCH v2 3/3] usb: chipidea: udc: apply new usb_udc_vbus_handler interface

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

 



hi,

On Fri, Mar 06, 2015 at 10:36:04AM +0800, Peter Chen wrote:
> @@ -1574,13 +1574,12 @@ static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on)
>  {
>  	struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget);
>  
> -	if (!ci->vbus_active)
> -		return -EOPNOTSUPP;
> -
> +	pm_runtime_get_sync(&ci->gadget.dev);
>  	if (is_on)
>  		hw_write(ci, OP_USBCMD, USBCMD_RS, USBCMD_RS);
>  	else
>  		hw_write(ci, OP_USBCMD, USBCMD_RS, 0);
> +	pm_runtime_put_sync(&ci->gadget.dev);

pm_runtime_* here look like they belong to a separate patch ?

-- 
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