From: Oussama Ghorbel Date: Tue, 4 Nov 2014 06:17:06 +0000 (+0530) Subject: phy: omap-usb2: Enable runtime PM of omap-usb2 phy properly X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~144^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20531a9aae0c7378d9fa75b4b5d99b7eecab066;p=pandora-kernel.git phy: omap-usb2: Enable runtime PM of omap-usb2 phy properly The USB OTG port does not work since v3.16 on omap platform. This is a regression introduced by the commit eb82a3d846fa (phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove). This because the call to pm_runtime_enable() function is moved after the call to devm_phy_create() function, which has side effect since later in the subsequent calls of devm_phy_create() there is a check with pm_runtime_enabled() to configure few things. Fixes: eb82a3d846fa Signed-off-by: Oussama Ghorbel Tested-by: Rabin Vincent Signed-off-by: Kishon Vijay Abraham I Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed