usb: phy: tegra: Increase PHY clock stabilization timeout
This fixes "utmi_phy_clk_enable: timeout waiting for phy to stabilize" error message. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
5864470a6e
commit
43bcf64e5c
@ -16,7 +16,7 @@
|
|||||||
#include <linux/export.h>
|
#include <linux/export.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/io.h>
|
#include <linux/iopoll.h>
|
||||||
#include <linux/gpio.h>
|
#include <linux/gpio.h>
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/of_device.h>
|
#include <linux/of_device.h>
|
||||||
@ -305,14 +305,10 @@ static int utmip_pad_power_off(struct tegra_usb_phy *phy)
|
|||||||
|
|
||||||
static int utmi_wait_register(void __iomem *reg, u32 mask, u32 result)
|
static int utmi_wait_register(void __iomem *reg, u32 mask, u32 result)
|
||||||
{
|
{
|
||||||
unsigned long timeout = 2000;
|
u32 tmp;
|
||||||
do {
|
|
||||||
if ((readl(reg) & mask) == result)
|
return readl_poll_timeout(reg, tmp, (tmp & mask) == result,
|
||||||
return 0;
|
2000, 6000);
|
||||||
udelay(1);
|
|
||||||
timeout--;
|
|
||||||
} while (timeout);
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void utmi_phy_clk_disable(struct tegra_usb_phy *phy)
|
static void utmi_phy_clk_disable(struct tegra_usb_phy *phy)
|
||||||
|
Loading…
Reference in New Issue
Block a user