Skip to contentSkip to conversation

clk: Changes for v5.5-rc1

GIT PULL Thierry Reding 3 participants 5 messages Nov 11, 2019 – Nov 14, 2019 Common clk

lore
Share & tools
lore
#0 lore raw

Hi Michael, Stephen,

The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-core-v2

for you to fetch changes up to d9b86cc48283112f06738d45031b88bd3f9ecb92:

clk: Add API to get index of the clock parent (2019-11-11 13:59:35 +0100)

This is an updated pull request that contains the revised version of the new API as discussed with Stephen in this thread:

    https://lore.kernel.org/linux-clk/[email protected]/

Thanks,
Thierry

----------------------------------------------------------------
clk: Changes for v5.5-rc1

Contains a single core API addition that allows clock providers to query the parent index for a given struct clk_hw. This is used to implement suspend/resume support on Tegra SoCs.

----------------------------------------------------------------
Sowjanya Komatineni (1):
clk: Add API to get index of the clock parent

 drivers/clk/clk.c            | 18 ++++++++++++++++++
 include/linux/clk-provider.h |  1 +
 2 files changed, 19 insertions(+)
#1 lore raw

[GIT PULL v2 2/2] clk: tegra: Changes for v5.5-rc1

Hi Michael, Stephen,

The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-v2

for you to fetch changes up to 07b293c5b01483f3c65372e72e62a2ee559ce1cf:

clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-11 14:53:05 +0100)

This updated pull request contains changes needed for the updated API to retrieve a clock's parent's index as well as additional Acked-bys from Stephen.

Thanks,
Thierry

----------------------------------------------------------------
clk: tegra: Changes for v5.5-rc1

The bulk of these changes implement suspend/resume support for Tegra210. In addition, some of the SOR clocks on earlier Tegra generations are reimplemented to more closely match the implementation on later chips, which in turn makes it possible to handle HDMI and DP support in a more unified way.

----------------------------------------------------------------
Dmitry Osipenko (3):
clk: tegra: Add Tegra20/30 EMC clock implementation
clk: tegra: Optimize PLLX restore on Tegra20/30
clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP

Sowjanya Komatineni (12):
clk: Add API to get index of the clock parent
clk: tegra: divider: Save and restore divider rate
clk: tegra: pllout: Save and restore pllout context
clk: tegra: pll: Save and restore pll context
clk: tegra: Support for OSC context save and restore
clk: tegra: periph: Add restore_context support
clk: tegra: clk-super: Fix to enable PLLP branches to CPU
clk: tegra: clk-super: Add restore-context support
clk: tegra: clk-dfll: Add suspend and resume support
clk: tegra: Use fence_udelay() during PLLU init
clk: tegra: Share clk and rst register defines with Tegra clock driver
clk: tegra: Add suspend and resume support on Tegra210

Thierry Reding (8):
dt-bindings: clock: tegra: Rename SOR0_LVDS to SOR0_OUT Merge branch 'for-5.5/clk-core' into for-5.5/clk Merge branch 'for-5.5/dt-bindings' into for-5.5/clk
clk: tegra: Remove last remains of TEGRA210_CLK_SOR1_SRC
clk: tegra: Move SOR0 implementation to Tegra124
clk: tegra: Rename sor0_lvds to sor0_out
clk: tegra: Reimplement SOR clock on Tegra124
clk: tegra: Reimplement SOR clocks on Tegra210

YueHaibing (1):
clk: tegra: Fix build error without CONFIG_PM_SLEEP

 drivers/clk/clk.c                               |  18 ++
 drivers/clk/tegra/Makefile                      |   2 +
 drivers/clk/tegra/clk-dfll.c                    |  56 +++++
 drivers/clk/tegra/clk-dfll.h                    |   2 +
 drivers/clk/tegra/clk-divider.c                 |  11 +
 drivers/clk/tegra/clk-id.h                      |   4 +-
 drivers/clk/tegra/clk-periph.c                  |  21 ++
 drivers/clk/tegra/clk-pll-out.c                 |   9 +
 drivers/clk/tegra/clk-pll.c                     |  86 ++++---
 drivers/clk/tegra/clk-sdmmc-mux.c               |  16 ++
 drivers/clk/tegra/clk-super.c                   |  41 ++++
 drivers/clk/tegra/clk-tegra-fixed.c             |  15 ++
 drivers/clk/tegra/clk-tegra-periph.c            |   8 -
 drivers/clk/tegra/clk-tegra-super-gen4.c        |   7 +-
 drivers/clk/tegra/clk-tegra124-dfll-fcpu.c      |   1 +
 drivers/clk/tegra/clk-tegra124.c                |  55 ++++-
 drivers/clk/tegra/clk-tegra20-emc.c             | 293 ++++++++++++++++++++++++
 drivers/clk/tegra/clk-tegra20.c                 |  80 +++----
 drivers/clk/tegra/clk-tegra210.c                | 181 ++++++++++++---
 drivers/clk/tegra/clk-tegra30.c                 |  63 +++--
 drivers/clk/tegra/clk.c                         | 112 +++++----
 drivers/clk/tegra/clk.h                         |  70 ++++++
 include/dt-bindings/clock/tegra124-car-common.h |   3 +-
 include/dt-bindings/clock/tegra210-car.h        |   6 +-
 include/linux/clk-provider.h                    |   1 +
 include/linux/clk/tegra.h                       |  24 ++
 26 files changed, 997 insertions(+), 188 deletions(-)
 create mode 100644 drivers/clk/tegra/clk-tegra20-emc.c
maintainer
#2 lore raw

Re: [GIT PULL v2 2/2] clk: tegra: Changes for v5.5-rc1

Quoting Thierry Reding (2019-11-11 06:45:07)

Quoted 14 lines

Hi Michael, Stephen,

The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-v2

for you to fetch changes up to 07b293c5b01483f3c65372e72e62a2ee559ce1cf:

clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-11 14:53:05 +0100)

Quoted 8 lines

This updated pull request contains changes needed for the updated API to retrieve a clock's parent's index as well as additional Acked-bys from Stephen.

Thanks,
Thierry

----------------------------------------------------------------

Thanks. Pulled into clk-next. I noticed this error from static checker.

drivers/clk/tegra/clk.c:241 tegra_clk_init() error: double free of 'periph_clk_enb_refcnt'

And maybe that function can use struct_size() too instead of kcalloc with a multiply?

#3 lore raw

Re: [GIT PULL v2 2/2] clk: tegra: Changes for v5.5-rc1

13.11.2019 22:27, Stephen Boyd пишет:

Quoted 19 lines

Quoting Thierry Reding (2019-11-11 06:45:07)

Quoted 18 lines

Hi Michael, Stephen,

The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-v2

for you to fetch changes up to 07b293c5b01483f3c65372e72e62a2ee559ce1cf:

clk: tegra: Fix build error without CONFIG_PM_SLEEP (2019-11-11 14:53:05 +0100)

This updated pull request contains changes needed for the updated API to retrieve a clock's parent's index as well as additional Acked-bys from Stephen.

Quoted 8 lines
Quoted 4 lines

Thanks,
Thierry

----------------------------------------------------------------

Thanks. Pulled into clk-next. I noticed this error from static checker.

drivers/clk/tegra/clk.c:241 tegra_clk_init() error: double free of 'periph_clk_enb_refcnt'

That's a good catch! Sowjanya, could you please make a patch to fix it?

Quoted 2 lines

And maybe that function can use struct_size() too instead of kcalloc with a multiply?

The struct_size() has a different purpose, it should be used when structure is padded with a variable-size array at the end.

maintainer
#4 lore raw
In reply to Thierry Reding

Quoting Thierry Reding (2019-11-11 06:45:06)

Quoted 17 lines

Hi Michael, Stephen,

The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git tags/tegra-for-5.5-clk-core-v2

for you to fetch changes up to d9b86cc48283112f06738d45031b88bd3f9ecb92:

clk: Add API to get index of the clock parent (2019-11-11 13:59:35 +0100)

This is an updated pull request that contains the revised version of the new API as discussed with Stephen in this thread:

Quoted 6 lines
    https://lore.kernel.org/linux-clk/[email protected]/

Thanks,
Thierry

----------------------------------------------------------------

Thanks. Pulled into clk-next