Thread (34 messages) 34 messages, 6 authors, 2015-06-15

[PATCH 5/5] clk: mediatek: Add USB clock support in MT8173 APMIXEDSYS

From: James Liao <hidden>
Date: 2015-05-26 09:12:44
Also in: linux-devicetree, linux-mediatek, lkml

Hi Sascha,

On Tue, 2015-05-26 at 10:05 +0200, Sascha Hauer wrote:
On Thu, May 21, 2015 at 03:12:56PM +0800, James Liao wrote:
quoted
+static void __init mtk_clk_register_apmixedsys_special(struct device_node *node,
+			struct clk_onecell_data *clk_data)
+{
+	void __iomem *base;
+	struct clk *clk;
+
+	base = of_iomap(node, 0);
+	if (!base) {
+		pr_err("%s(): ioremap failed\n", __func__);
+		return;
+	}
+
+	clk = mtk_clk_register_ref2usb_tx("ref2usb_tx", base + 0x8);
The function seems to be for one special clock only. Why do you pass the
name to it? They will never be called with another name, right?
This function decides clock name and associates clock ID for special
clocks. In fact there may be another "special clocks" need to add into
apmixedsys. I think it's a better way to group clock names and clock IDs
in the same function for maintenance.


Best regards,

James 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help