mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 18:04:36 +00:00
mfd: omap-usb-host: Don't spam console on clk_set_parent failure
clk_set_parent is expected to fail on OMAP3 platforms. We don't consider that as fatal so don't spam console. Signed-off-by: Roger Quadros <rogerq@ti.com> Reviewed-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
c4df00aed9
commit
a8c4e9e111
@ -671,32 +671,32 @@ static int usbhs_omap_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_ehci_phy_mode(pdata->port_mode[0])) {
|
if (is_ehci_phy_mode(pdata->port_mode[0])) {
|
||||||
/* for OMAP3 , the clk set paretn fails */
|
/* for OMAP3, clk_set_parent fails */
|
||||||
ret = clk_set_parent(omap->utmi_p1_gfclk,
|
ret = clk_set_parent(omap->utmi_p1_gfclk,
|
||||||
omap->xclk60mhsp1_ck);
|
omap->xclk60mhsp1_ck);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
dev_err(dev, "xclk60mhsp1_ck set parent"
|
dev_dbg(dev, "xclk60mhsp1_ck set parent failed: %d\n",
|
||||||
"failed error:%d\n", ret);
|
ret);
|
||||||
} else if (is_ehci_tll_mode(pdata->port_mode[0])) {
|
} else if (is_ehci_tll_mode(pdata->port_mode[0])) {
|
||||||
ret = clk_set_parent(omap->utmi_p1_gfclk,
|
ret = clk_set_parent(omap->utmi_p1_gfclk,
|
||||||
omap->init_60m_fclk);
|
omap->init_60m_fclk);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
dev_err(dev, "init_60m_fclk set parent"
|
dev_dbg(dev, "P0 init_60m_fclk set parent failed: %d\n",
|
||||||
"failed error:%d\n", ret);
|
ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ehci_phy_mode(pdata->port_mode[1])) {
|
if (is_ehci_phy_mode(pdata->port_mode[1])) {
|
||||||
ret = clk_set_parent(omap->utmi_p2_gfclk,
|
ret = clk_set_parent(omap->utmi_p2_gfclk,
|
||||||
omap->xclk60mhsp2_ck);
|
omap->xclk60mhsp2_ck);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
dev_err(dev, "xclk60mhsp2_ck set parent"
|
dev_dbg(dev, "xclk60mhsp2_ck set parent failed: %d\n",
|
||||||
"failed error:%d\n", ret);
|
ret);
|
||||||
} else if (is_ehci_tll_mode(pdata->port_mode[1])) {
|
} else if (is_ehci_tll_mode(pdata->port_mode[1])) {
|
||||||
ret = clk_set_parent(omap->utmi_p2_gfclk,
|
ret = clk_set_parent(omap->utmi_p2_gfclk,
|
||||||
omap->init_60m_fclk);
|
omap->init_60m_fclk);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
dev_err(dev, "init_60m_fclk set parent"
|
dev_dbg(dev, "P1 init_60m_fclk set parent failed: %d\n",
|
||||||
"failed error:%d\n", ret);
|
ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
omap_usbhs_init(dev);
|
omap_usbhs_init(dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user