Message ID | 20180518164829.27052-1-david@lechnology.com |
---|---|
Headers | show |
Series | ARM: davinci: convert to common clock framework | expand |
On Friday 18 May 2018 10:18 PM, David Lechner wrote: > @@ -711,11 +777,11 @@ int of_davinci_pll_init(struct device *dev, > int n_clks = max_sysclk_id + 1; > int i; > > - clk_data = devm_kzalloc(dev, sizeof(*clk_data), GFP_KERNEL); > + clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); > if (!clk_data) > return -ENOMEM; > > - clks = devm_kmalloc_array(dev, n_clks, sizeof(*clks), GFP_KERNEL); > + clks = kmalloc_array(n_clks, sizeof(*clks), GFP_KERNEL); > if (!clks) > return -ENOMEM; This should be: if (!clks) { kfree(clk_data); return -ENOMEM; } With that fixed: Reviewed-by: Sekhar Nori <nsekhar@ti.com> Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Friday 18 May 2018 10:18 PM, David Lechner wrote: > On some davinci SoCs, we need to register the PSC clocks during early > boot because they are needed for clocksource/clockevent. These changes > allow for dev == NULL because in this case, we won't have a platform > device for the clocks. > > Some function declarations are moved to a public header files so that they can > be called from mach init code. > > Signed-off-by: David Lechner <david@lechnology.com> Reviewed-by: Sekhar Nori <nsekhar@ti.com> Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi David, On Friday 18 May 2018 10:18 PM, David Lechner wrote: > This series converts mach-davinci to use the common clock framework. > > The series works like this, the first 3 patches fix some issues with the clock > drivers that have already been accepted into the mainline kernel. > > Then, starting with "ARM: davinci: pass clock as parameter to > davinci_timer_init()", we get the mach code ready for the switch by adding the > code needed for the new clock drivers and adding #ifndef CONFIG_COMMON_CLK > around the legacy clocks so that we can switch easily between the old and the > new. > > "ARM: davinci: switch to common clock framework" actually flips the switch > to start using the new clock drivers. Then the next 8 patches remove all > of the old clock code. > > The final four patches add device tree clock support to the one SoC that > supports it. > > This series has been tested on TI OMAP-L138 LCDK (both device tree and legacy > board file). If you do end up sending a v12, you can leave out the mach-davinci portions unless there are any changes you need to make. I will pick them up from this series once the driver dependencies are merged. I do hope the drivers/clk/* changes can be merged from v4.18. Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 05/22/2018 04:38 AM, Sekhar Nori wrote: > Hi David, > > On Friday 18 May 2018 10:18 PM, David Lechner wrote: >> This series converts mach-davinci to use the common clock framework. >> >> The series works like this, the first 3 patches fix some issues with the clock >> drivers that have already been accepted into the mainline kernel. >> >> Then, starting with "ARM: davinci: pass clock as parameter to >> davinci_timer_init()", we get the mach code ready for the switch by adding the >> code needed for the new clock drivers and adding #ifndef CONFIG_COMMON_CLK >> around the legacy clocks so that we can switch easily between the old and the >> new. >> >> "ARM: davinci: switch to common clock framework" actually flips the switch >> to start using the new clock drivers. Then the next 8 patches remove all >> of the old clock code. >> >> The final four patches add device tree clock support to the one SoC that >> supports it. >> >> This series has been tested on TI OMAP-L138 LCDK (both device tree and legacy >> board file). > > If you do end up sending a v12, you can leave out the mach-davinci > portions unless there are any changes you need to make. I will pick them > up from this series once the driver dependencies are merged. > > I do hope the drivers/clk/* changes can be merged from v4.18. > I have resent all of the clk patches (including all of the ones I listed as dependencies in addition to the three remaining in this series) under the cover "clk: davinci: outstanding fixes". I also found that we need to add power-domains properties to the PWM nodes in "ARM: dts: da850: Add clocks". I probably should just take your advice and just globally added them even if they are not documented for some types ofnodes. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Sekhar, On 05/22/2018 04:38 AM, Sekhar Nori wrote: > Hi David, > > On Friday 18 May 2018 10:18 PM, David Lechner wrote: >> This series converts mach-davinci to use the common clock framework. >> >> The series works like this, the first 3 patches fix some issues with the clock >> drivers that have already been accepted into the mainline kernel. >> >> Then, starting with "ARM: davinci: pass clock as parameter to >> davinci_timer_init()", we get the mach code ready for the switch by adding the >> code needed for the new clock drivers and adding #ifndef CONFIG_COMMON_CLK >> around the legacy clocks so that we can switch easily between the old and the >> new. >> >> "ARM: davinci: switch to common clock framework" actually flips the switch >> to start using the new clock drivers. Then the next 8 patches remove all >> of the old clock code. >> >> The final four patches add device tree clock support to the one SoC that >> supports it. >> >> This series has been tested on TI OMAP-L138 LCDK (both device tree and legacy >> board file). > > If you do end up sending a v12, you can leave out the mach-davinci > portions unless there are any changes you need to make. I will pick them > up from this series once the driver dependencies are merged. > > I do hope the drivers/clk/* changes can be merged from v4.18. > > Thanks, > Sekhar > Are you going to pick up the arch patches from this series now that the 4.18 merge window is closed? All of the clk patches landed in 4.18. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi David, On Sunday 17 June 2018 09:18 PM, David Lechner wrote: > Hi Sekhar, > > On 05/22/2018 04:38 AM, Sekhar Nori wrote: >> Hi David, >> >> On Friday 18 May 2018 10:18 PM, David Lechner wrote: >>> This series converts mach-davinci to use the common clock framework. >>> >>> The series works like this, the first 3 patches fix some issues with >>> the clock >>> drivers that have already been accepted into the mainline kernel. >>> >>> Then, starting with "ARM: davinci: pass clock as parameter to >>> davinci_timer_init()", we get the mach code ready for the switch by >>> adding the >>> code needed for the new clock drivers and adding #ifndef >>> CONFIG_COMMON_CLK >>> around the legacy clocks so that we can switch easily between the old >>> and the >>> new. >>> >>> "ARM: davinci: switch to common clock framework" actually flips the >>> switch >>> to start using the new clock drivers. Then the next 8 patches remove all >>> of the old clock code. >>> >>> The final four patches add device tree clock support to the one SoC that >>> supports it. >>> >>> This series has been tested on TI OMAP-L138 LCDK (both device tree >>> and legacy >>> board file). >> >> If you do end up sending a v12, you can leave out the mach-davinci >> portions unless there are any changes you need to make. I will pick them >> up from this series once the driver dependencies are merged. >> >> I do hope the drivers/clk/* changes can be merged from v4.18. >> >> Thanks, >> Sekhar >> > > Are you going to pick up the arch patches from this series now that > the 4.18 merge window is closed? > > All of the clk patches landed in 4.18. yes! Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Friday 25 May 2018 11:51 PM, David Lechner wrote: > On 05/22/2018 04:38 AM, Sekhar Nori wrote: >> Hi David, >> >> On Friday 18 May 2018 10:18 PM, David Lechner wrote: >>> This series converts mach-davinci to use the common clock framework. >>> >>> The series works like this, the first 3 patches fix some issues with >>> the clock >>> drivers that have already been accepted into the mainline kernel. >>> >>> Then, starting with "ARM: davinci: pass clock as parameter to >>> davinci_timer_init()", we get the mach code ready for the switch by >>> adding the >>> code needed for the new clock drivers and adding #ifndef >>> CONFIG_COMMON_CLK >>> around the legacy clocks so that we can switch easily between the old >>> and the >>> new. >>> >>> "ARM: davinci: switch to common clock framework" actually flips the >>> switch >>> to start using the new clock drivers. Then the next 8 patches remove all >>> of the old clock code. >>> >>> The final four patches add device tree clock support to the one SoC that >>> supports it. >>> >>> This series has been tested on TI OMAP-L138 LCDK (both device tree >>> and legacy >>> board file). >> >> If you do end up sending a v12, you can leave out the mach-davinci >> portions unless there are any changes you need to make. I will pick them >> up from this series once the driver dependencies are merged. >> >> I do hope the drivers/clk/* changes can be merged from v4.18. >> > > I have resent all of the clk patches (including all of the ones I listed as > dependencies in addition to the three remaining in this series) under the > cover "clk: davinci: outstanding fixes". > > I also found that we need to add power-domains properties to the PWM nodes > in "ARM: dts: da850: Add clocks". I probably should just take your advice > and just globally added them even if they are not documented for some types > ofnodes. I think doing it en masse will be controversial. Just add it to PWM nodes for now (I am assuming the binding documentation agrees). I have applied this series so please send any more changes as follow-on patches. Thanks Sekhar -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 06/26/2018 07:56 AM, Sekhar Nori wrote: > On Friday 25 May 2018 11:51 PM, David Lechner wrote: >> On 05/22/2018 04:38 AM, Sekhar Nori wrote: >>> Hi David, >>> >>> On Friday 18 May 2018 10:18 PM, David Lechner wrote: >>>> This series converts mach-davinci to use the common clock framework. >>>> >>>> The series works like this, the first 3 patches fix some issues with >>>> the clock >>>> drivers that have already been accepted into the mainline kernel. >>>> >>>> Then, starting with "ARM: davinci: pass clock as parameter to >>>> davinci_timer_init()", we get the mach code ready for the switch by >>>> adding the >>>> code needed for the new clock drivers and adding #ifndef >>>> CONFIG_COMMON_CLK >>>> around the legacy clocks so that we can switch easily between the old >>>> and the >>>> new. >>>> >>>> "ARM: davinci: switch to common clock framework" actually flips the >>>> switch >>>> to start using the new clock drivers. Then the next 8 patches remove all >>>> of the old clock code. >>>> >>>> The final four patches add device tree clock support to the one SoC that >>>> supports it. >>>> >>>> This series has been tested on TI OMAP-L138 LCDK (both device tree >>>> and legacy >>>> board file). >>> >>> If you do end up sending a v12, you can leave out the mach-davinci >>> portions unless there are any changes you need to make. I will pick them >>> up from this series once the driver dependencies are merged. >>> >>> I do hope the drivers/clk/* changes can be merged from v4.18. >>> >> >> I have resent all of the clk patches (including all of the ones I listed as >> dependencies in addition to the three remaining in this series) under the >> cover "clk: davinci: outstanding fixes". >> >> I also found that we need to add power-domains properties to the PWM nodes >> in "ARM: dts: da850: Add clocks". I probably should just take your advice >> and just globally added them even if they are not documented for some types >> ofnodes. > > I think doing it en masse will be controversial. Just add it to PWM > nodes for now (I am assuming the binding documentation agrees). > > I have applied this series so please send any more changes as follow-on > patches. > > Thanks > Sekhar > FYI, there are some CPU frequency scaling patches that I was playing around with, but I don't plan on submitting them since they aren't much use to me at the moment. If anyone would like to pick them up, you can find them at https://github.com/dlech/linux/tree/da850-dt-cpufreq. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html