Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1575344

Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support

From Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Newsgroups linux.kernel
Subject Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support
Date 2017-02-07 04:10 +0100
Message-ID <t84kh-5rm-3@gated-at.bofh.it> (permalink)
References (2 earlier) <t80JH-35U-1@gated-at.bofh.it> <t80To-39D-3@gated-at.bofh.it> <t82s9-4gx-11@gated-at.bofh.it> <t82BQ-4jX-7@gated-at.bofh.it> <t82Lv-4nc-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07/02/17 14:25, Chris Packham wrote:
> On 07/02/17 14:13, Chris Packham wrote:
>> On 07/02/17 14:03, Stephen Boyd wrote:
>>> On 02/06, Chris Packham wrote:
>>>> On 07/02/17 12:14, Stephen Boyd wrote:
>>>>> On 02/03, Chris Packham wrote:
>>>>>> The initial implementation in commit e120c17a70e5 ("clk: mvebu: support
>>>>>> for 98DX3236 SoC") hardcoded a fixed value for the main PLL frequency.
>>>>>> Port code from the Marvell supplied Linux kernel to support different
>>>>>> PLL frequencies and provide clock gating support.
>>>>>>
>>>>>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>>>>>> ---
>>>>>>  .../devicetree/bindings/clock/mvebu-core-clock.txt |   7 +
>>>>>>  .../bindings/clock/mvebu-gated-clock.txt           |  11 ++
>>>>>>  arch/arm/boot/dts/armada-xp-98dx3236.dtsi          |  14 +-
>>>>>>  drivers/clk/mvebu/Makefile                         |   2 +-
>>>>>>  drivers/clk/mvebu/armada-xp.c                      |  13 --
>>>>>>  drivers/clk/mvebu/mv98dx3236.c                     | 144 +++++++++++++++++++++
>>>>>
>>>>> This mixes dts and clk driver changes. Any chance it can be split
>>>>> up and just have the clk part go through clk tree? Otherwise, I
>>>>> can ack this if you want to take it all through arm-soc?
>>>>
>>>> I'm happy to split it if it will make life easier.
>>>>
>>>
>>> Well do things keep booting if the clk driver parts merge without
>>> the associated dts changes? It's nice to maintain backwards
>>> compatibility even for a short time to make the merge path
>>> easier.
>>>
>>
>> Unfortunately not. I could put the clk changes first (then I'd just have
>> checkpatch.pl complaining about new compatible strings). But if the clk
>> patches don't land before the dts changes the boards won't boot. However
>> that affects 1 person that we know of (me).
>>
>
> Actually I wonder if I can try a bit harder to keep a system booting.
> The following might work
> 1) add the compatible strings to the existing armada clock drivers.
> 2) update the dts to use the new compatible strings.
> 3) add the new driver and remove the compatible strings from the armada
> drivers.
>
> #1 would still upset checkpatch.pl because the documentation would only
> arrive in #2.

Actually upon testing #1 is unnecessary. I lose some of the gated clocks 
but nothing that prevents booting.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Updates for Marvell Switch SoCs Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-02-03 04:50 +0100
  [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-02-03 04:50 +0100
    Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Stephen Boyd <sboyd@codeaurora.org> - 2017-02-07 00:20 +0100
      Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-02-07 00:30 +0100
        Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Stephen Boyd <sboyd@codeaurora.org> - 2017-02-07 02:10 +0100
          Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-02-07 02:20 +0100
            Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-02-07 02:30 +0100
              Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-02-07 04:10 +0100
                Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Arnd Bergmann <arnd@arndb.de> - 2017-02-08 12:20 +0100
                Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-02-08 21:10 +0100
                Re: [PATCH 4/4] clk: mvebu: Expand mv98dx3236-core-clock support Stephen Boyd <sboyd@codeaurora.org> - 2017-02-10 18:30 +0100

csiph-web