Skip to contentSkip to conversation

TI clock changes for 4.17

GIT PULL Tero Kristo 2 participants 4 messages Mar 8, 2018 – Mar 15, 2018 Common clk

lore
Share & tools
lore
#0 lore raw

Hi Stephen, Michael,

These patches are targeted for 4.17 merge window. I grouped both omap+keystone clock changes into single pull request.

Tero

---

The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2:

Linux 4.16-rc1 (2018-02-11 15:04:29 -0800)

are available in the git repository at:

https://github.com/t-kristo/linux-pm.git tags/ti-clk-for-4.17

for you to fetch changes up to 3c13933c60338ce6fb2369bd0e93f91e52ddc17d:

clk: keystone: sci-clk: add support for dynamically probing clocks
(2018-03-08 11:43:15 +0200)

----------------------------------------------------------------
Tero Kristo (6):
dt-bindings: clock: ti: add latching support to mux and divider
clocks
clk: ti: add support for register read-modify-write low-level
operation
clk: ti: add generic support for clock latching
clk: ti: add support for clock latching to divider clocks
clk: ti: add support for clock latching to mux clocks
clk: keystone: sci-clk: add support for dynamically probing clocks

 .../devicetree/bindings/clock/ti/divider.txt       |   3 +
 Documentation/devicetree/bindings/clock/ti/mux.txt |   3 +
 drivers/clk/keystone/sci-clk.c                     | 380 
+++++----------------
 drivers/clk/ti/clk.c                               |  38 +++
 drivers/clk/ti/clock.h                             |   4 +
 drivers/clk/ti/divider.c                           |  26 +-
 drivers/clk/ti/mux.c                               |  13 +-
 include/linux/clk/ti.h                             |   2 +
 8 files changed, 170 insertions(+), 299 deletions(-)

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#1 lore raw

Quoting Tero Kristo (2018-03-08 02:13:38)

Quoted 7 lines

Hi Stephen, Michael,
=

These patches are targeted for 4.17 merge window. I grouped both =

omap+keystone clock changes into single pull request. =

Thanks. Pulled into clk-next. BTW, I see that some of the 'basic' clk type code in TI driver isn't used anymore. Is there a plan to delete that code in the future? For example, drivers/clk/ti/divider.c has ti_clk_build_component_div() that nobody uses.

#2 lore raw
Quoted 11 lines · Stephen Boyd

Quoting Tero Kristo (2018-03-08 02:13:38)

Quoted 5 lines

Hi Stephen, Michael,

These patches are targeted for 4.17 merge window. I grouped both omap+keystone clock changes into single pull request.

Thanks. Pulled into clk-next. BTW, I see that some of the 'basic' clk type code in TI driver isn't used anymore. Is there a plan to delete that code in the future? For example, drivers/clk/ti/divider.c has ti_clk_build_component_div() that nobody uses.

I've kept that legacy code around for now, as I've been contemplating if we should move over to have the clock data within the driver instead of having pure DT clocks. Any thoughts on that?

I can send patches once the next merge is over to remove all unused code though, we can find the removed code from history if it is ever needed for something.

-Tero

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

maintainer
#3 lore raw

Quoting Tero Kristo (2018-03-14 23:49:59)

Quoted 13 lines · Stephen Boyd
Quoted 6 lines

Quoting Tero Kristo (2018-03-08 02:13:38)

Quoted 5 lines

Hi Stephen, Michael,

These patches are targeted for 4.17 merge window. I grouped both omap+keystone clock changes into single pull request.

Quoted 6 lines

=

Thanks. Pulled into clk-next. BTW, I see that some of the 'basic' clk type code in TI driver isn't used anymore. Is there a plan to delete that code in the future? For example, drivers/clk/ti/divider.c has ti_clk_build_component_div() that nobody uses.

Quoted 7 lines

=

I've kept that legacy code around for now, as I've been contemplating if =

we should move over to have the clock data within the driver instead of =

having pure DT clocks. Any thoughts on that?

The new clk driver style is to put clk data in clk drivers instead of pure DT clks.

Quoted 8 lines

=

I can send patches once the next merge is over to remove all unused code =

though, we can find the removed code from history if it is ever needed =

for something.
=

Sure! No problem either way.