]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Merge branch 'clk-ti' into clk-next
authorStephen Boyd <sboyd@kernel.org>
Thu, 18 Oct 2018 22:41:21 +0000 (15:41 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 18 Oct 2018 22:41:21 +0000 (15:41 -0700)
* clk-ti:
  clk: ti: Prepare for remove of OF node name
  clk: Clean up suspend/resume coding style
  clk: ti: Add functions to save/restore clk context
  clk: clk: Add clk_gate_restore_context function
  clk: Add functions to save/restore clock context en-masse
  clk: ti: dra7: add new clkctrl data
  clk: ti: dra7xx: rename existing clkctrl data as compat data
  clk: ti: am43xx: add new clkctrl data for am43xx
  clk: ti: am43xx: rename existing clkctrl data as compat data
  clk: ti: am33xx: add new clkctrl data for am33xx
  clk: ti: am33xx: rename existing clkctrl data as compat data
  clk: ti: clkctrl: replace dashes from clkdm name with underscore
  clk: ti: clkctrl: support multiple clkctrl nodes under a cm node
  dt-bindings: clock: dra7xx: add clkctrl indices for new data layout
  dt-bindings: clock: am43xx: add clkctrl indices for new data layout
  dt-bindings: clock: am33xx: add clkctrl indices for new data layout

1  2 
drivers/clk/ti/clk.c
drivers/clk/ti/clkctrl.c
drivers/clk/ti/divider.c
drivers/clk/ti/dpll.c
drivers/clk/ti/gate.c
drivers/clk/ti/mux.c

Simple merge
index 240e911a3db9ef6a0b1525beaf07bcb4e595cf49,853a5e650ff7ec3ac1db394df044674c231cd53b..469f560ae1cf7c779a75d4d18dc30e0883e1d340
@@@ -259,8 -259,13 +259,13 @@@ _ti_clkctrl_clk_register(struct omap_cl
        struct omap_clkctrl_clk *clkctrl_clk;
        int ret = 0;
  
-       init.name = kasprintf(GFP_KERNEL, "%pOFn:%pOFn:%04x:%d", node->parent,
-                             node, offset, bit);
+       if (ti_clk_get_features()->flags & TI_CLK_CLKCTRL_COMPAT)
 -              init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d",
 -                                    node->parent->name, node->name, offset,
++              init.name = kasprintf(GFP_KERNEL, "%pOFn:%pOFn:%04x:%d",
++                                    node->parent, node, offset,
+                                     bit);
+       else
 -              init.name = kasprintf(GFP_KERNEL, "%s:%04x:%d", node->name,
++              init.name = kasprintf(GFP_KERNEL, "%pOFn:%04x:%d", node,
+                                     offset, bit);
        clkctrl_clk = kzalloc(sizeof(*clkctrl_clk), GFP_KERNEL);
        if (!init.name || !clkctrl_clk) {
                ret = -ENOMEM;
@@@ -537,9 -588,13 +588,13 @@@ static void __init _ti_omap4_clkctrl_se
                init.flags = 0;
                if (reg_data->flags & CLKF_SET_RATE_PARENT)
                        init.flags |= CLK_SET_RATE_PARENT;
-               init.name = kasprintf(GFP_KERNEL, "%pOFn:%pOFn:%04x:%d",
-                                     node->parent, node,
-                                     reg_data->offset, 0);
+               if (ti_clk_get_features()->flags & TI_CLK_CLKCTRL_COMPAT)
 -                      init.name = kasprintf(GFP_KERNEL, "%s:%s:%04x:%d",
 -                                            node->parent->name, node->name,
++                      init.name = kasprintf(GFP_KERNEL, "%pOFn:%pOFn:%04x:%d",
++                                            node->parent, node,
+                                             reg_data->offset, 0);
+               else
 -                      init.name = kasprintf(GFP_KERNEL, "%s:%04x:%d",
 -                                            node->name, reg_data->offset, 0);
++                      init.name = kasprintf(GFP_KERNEL, "%pOFn:%04x:%d",
++                                            node, reg_data->offset, 0);
                clkctrl_clk = kzalloc(sizeof(*clkctrl_clk), GFP_KERNEL);
                if (!init.name || !clkctrl_clk)
                        goto cleanup;
Simple merge
Simple merge
Simple merge
Simple merge