mbox series

[v3,00/12] memory: tegra: Driver unification

Message ID 20210602163302.120041-1-thierry.reding@gmail.com (mailing list archive)
Headers show
Series memory: tegra: Driver unification | expand

Message

Thierry Reding June 2, 2021, 4:32 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

Hi,

this set of patches converges the feature sets of the pre-Tegra186 and
the post-Tegra186 memory controller drivers such that newer chips can
take advantage of some features that were previously only implemented
on earlier chips.

Note that this looks a bit daunting from a diffstat point of view but
the bulk of this is in the first two patches that basically shuffle
around where some of the per-memory-client register definitions are
located, hence the big number of changed lines.

Changes in v3:
- remove redundant #ifdef/#endif guards
- make tegra30_mc_handle_irq() static

Changes in v2:
- split patches up a bit for smaller, logical changes
- add better documentation for ->probe() callback
- use SET_SYSTEM_SLEEP_OPS where appropriate
- include Tegra194 separation patch
- use prefix for global variables
- drop commented-out code

Thierry

Thierry Reding (12):
  memory: tegra: Consolidate register fields
  memory: tegra: Unify struct tegra_mc across SoC generations
  memory: tegra: Introduce struct tegra_mc_ops
  memory: tegra: Push suspend/resume into SoC drivers
  memory: tegra: Make per-SoC setup more generic
  memory: tegra: Extract setup code into callback
  memory: tegra: Parameterize interrupt handler
  memory: tegra: Make IRQ support opitonal
  memory: tegra: Only initialize reset controller if available
  memory: tegra: Unify drivers
  memory: tegra: Add memory client IDs to tables
  memory: tegra: Split Tegra194 data into separate file

 drivers/iommu/tegra-smmu.c      |   16 +-
 drivers/memory/tegra/Makefile   |    6 +-
 drivers/memory/tegra/mc.c       |  312 +++---
 drivers/memory/tegra/mc.h       |   25 +
 drivers/memory/tegra/tegra114.c | 1245 +++++++++++++-----------
 drivers/memory/tegra/tegra124.c | 1306 ++++++++++++++-----------
 drivers/memory/tegra/tegra186.c | 1609 ++++++++-----------------------
 drivers/memory/tegra/tegra194.c | 1351 ++++++++++++++++++++++++++
 drivers/memory/tegra/tegra20.c  |  110 ++-
 drivers/memory/tegra/tegra210.c | 1433 ++++++++++++++-------------
 drivers/memory/tegra/tegra30.c  | 1292 ++++++++++++++-----------
 include/soc/tegra/mc.h          |   62 +-
 12 files changed, 4976 insertions(+), 3791 deletions(-)
 create mode 100644 drivers/memory/tegra/tegra194.c

Comments

Krzysztof Kozlowski June 3, 2021, 7:51 p.m. UTC | #1
On Wed, 2 Jun 2021 18:32:50 +0200, Thierry Reding wrote:
> this set of patches converges the feature sets of the pre-Tegra186 and
> the post-Tegra186 memory controller drivers such that newer chips can
> take advantage of some features that were previously only implemented
> on earlier chips.
> 
> Note that this looks a bit daunting from a diffstat point of view but
> the bulk of this is in the first two patches that basically shuffle
> around where some of the per-memory-client register definitions are
> located, hence the big number of changed lines.
> 
> [...]

Applied, thanks!

[01/12] memory: tegra: Consolidate register fields
        commit: 4f1ac76e5ed9436ff3cd72e308527fd1e90b193a
[02/12] memory: tegra: Unify struct tegra_mc across SoC generations
        commit: e899993845e60cc24d8e667a312eaa03a05d21ec
[03/12] memory: tegra: Introduce struct tegra_mc_ops
        commit: 6cc884c1c7fe5ae9362180d4f7d4091774921a0c
[04/12] memory: tegra: Push suspend/resume into SoC drivers
        commit: 5c9016f0a8a3ba30c6593d2cb0d067164dd41846
[05/12] memory: tegra: Make per-SoC setup more generic
        commit: c64738e949940bea2bb426b104b4de0aa42a8f48
[06/12] memory: tegra: Extract setup code into callback
        commit: ddeceab0a959d199de776eaf5da977574b7c8f16
[07/12] memory: tegra: Parameterize interrupt handler
        commit: 1079a66bc32ff04eaab792152a9ed9c7585b5efc
[08/12] memory: tegra: Make IRQ support opitonal
        commit: e474b3a15db6023dca4424fd7ad941fe9de6d6d2
[09/12] memory: tegra: Only initialize reset controller if available
        commit: 0de93c698587cfaf1ec36d4c78fb9c6a76544390
[10/12] memory: tegra: Unify drivers
        commit: 7355c7b9ae0d45923bac088bc1faebd5e9a66164
[11/12] memory: tegra: Add memory client IDs to tables
        commit: 7191b623a238f8859f70defc227b85fa9bce18d4
[12/12] memory: tegra: Split Tegra194 data into separate file
        commit: 8fd9f632ba93c0291a73be25ddd3f22631cd1052

Best regards,