mbox series

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

Message ID 20191111144507.4027979-2-thierry.reding@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [GIT,PULL,v2,1/2] clk: Changes for v5.5-rc1 | expand

Pull-request

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

Message

Thierry Reding Nov. 11, 2019, 2:45 p.m. UTC
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

Comments

Stephen Boyd Nov. 13, 2019, 7:27 p.m. UTC | #1
Quoting Thierry Reding (2019-11-11 06:45:07)
> 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
> 
> ----------------------------------------------------------------

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?
Dmitry Osipenko Nov. 14, 2019, 11:18 a.m. UTC | #2
13.11.2019 22:27, Stephen Boyd пишет:
> Quoting Thierry Reding (2019-11-11 06:45:07)
>> 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
>>
>> ----------------------------------------------------------------
> 
> 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?

> 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.