[Letux-kernel] [PATCH] phy-twl4030-usb: initialize charging-related stuff via pm_runtime

Tony Lindgren tony at atomide.com
Wed Aug 24 00:59:06 CEST 2016


* Andreas Kemnade <andreas at kemnade.info> [160822 13:10]:
> --- a/drivers/phy/phy-twl4030-usb.c
> +++ b/drivers/phy/phy-twl4030-usb.c
> @@ -469,6 +469,11 @@ static int __maybe_unused twl4030_usb_runtime_resume(struct device *dev)
>  			  (PHY_CLK_CTRL_CLOCKGATING_EN |
>  			   PHY_CLK_CTRL_CLK32K_EN));
>  
> +	twl4030_i2c_access(twl, 1);
> +	twl4030_usb_set_mode(twl, twl->usb_mode);
> +	if (twl->usb_mode == T2_USB_MODE_ULPI)
> +		twl4030_i2c_access(twl, 0);
> +	mdelay(50);
>  	return 0;
>  }
>  

Can you check for some register instead of the mdelay?

Other than that, works for me for my tests.

Regards,

Tony


More information about the Letux-kernel mailing list