Re: [PATCH] ARM: AM35xx: Add M-USB clk device ID

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

 



On 10/12/2015 06:22 PM, Rolf Peukert wrote:
The glue code in drivers/usb/musb/am35x.c calls clk_get() to get its
interface and function clocks for the M-USB controller. These calls fail
in the current kernel. This patch adds clock definitions containing the
device ID to the list in clk-3xxx.c, so the calls to clk_get() in
am35x.c can succeed.

	Signed-off-by:  Rolf Peukert <rolf.peukert@xxxxxxx>

---
  drivers/clk/ti/clk-3xxx.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/clk/ti/clk-3xxx.c b/drivers/clk/ti/clk-3xxx.c
index 8831e1a..b635deb 100644
--- a/drivers/clk/ti/clk-3xxx.c
+++ b/drivers/clk/ti/clk-3xxx.c
@@ -507,7 +507,9 @@ static struct ti_dt_clk am35xx_clks[] = {
  	DT_CLK("davinci_mdio.0", NULL, "emac_fck"),
  	DT_CLK("vpfe-capture", "master", "vpfe_ick"),
  	DT_CLK("vpfe-capture", "slave", "vpfe_fck"),
+	DT_CLK("5c040000.am35x_otg_hs", "ick", "hsotgusb_ick_am35xx"),
  	DT_CLK(NULL, "hsotgusb_ick", "hsotgusb_ick_am35xx"),
+	DT_CLK("5c040000.am35x_otg_hs", "fck", "hsotgusb_fck_am35xx"),
  	DT_CLK(NULL, "hsotgusb_fck", "hsotgusb_fck_am35xx"),
  	DT_CLK(NULL, "hecc_ck", "hecc_ck"),
  	DT_CLK(NULL, "uart4_ick", "uart4_ick_am35xx"),


Adding clock aliases should be avoided, isn't there any other way to fix this issue? Like adding clocks = <&xyz> references under the DT node?

-Tero

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux