Skip to content

Commit b6e473d

Browse files
committed
Merge tag 'memory-controller-drv-tegra-5.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into arm/fixes
Memory controller drivers for v5.14 - Tegra SoC, late fixes Two fixes for recent series of changes in Tegra SoC memory controller drivers: 1. Add a stub for tegra_mc_probe_device() to fix compile testing of arm-smmu without TEGRA_MC. 2. Fix arm-smmu dtschema syntax. * tag 'memory-controller-drv-tegra-5.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl: dt-bindings: arm-smmu: Fix json-schema syntax memory: tegra: Add compile-test stub for tegra_mc_probe_device() Link: https://lore.kernel.org/r/20210625073604.13562-1-krzysztof.kozlowski@canonical.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents e73f0f0 + bf3ec9d commit b6e473d

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

Documentation/devicetree/bindings/iommu/arm,smmu.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ properties:
5252
items:
5353
- const: marvell,ap806-smmu-500
5454
- const: arm,mmu-500
55-
- description: NVIDIA SoCs that program two ARM MMU-500s identically
56-
items:
5755
- description: NVIDIA SoCs that require memory controller interaction
5856
and may program multiple ARM MMU-500s identically with the memory
5957
controller interleaving translations between multiple instances
6058
for improved performance.
6159
items:
6260
- enum:
63-
- const: nvidia,tegra194-smmu
64-
- const: nvidia,tegra186-smmu
61+
- nvidia,tegra194-smmu
62+
- nvidia,tegra186-smmu
6563
- const: nvidia,smmu-500
6664
- items:
6765
- const: arm,mmu-500

include/soc/tegra/mc.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,19 @@ unsigned int tegra_mc_get_emem_device_count(struct tegra_mc *mc);
237237

238238
#ifdef CONFIG_TEGRA_MC
239239
struct tegra_mc *devm_tegra_memory_controller_get(struct device *dev);
240+
int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
240241
#else
241242
static inline struct tegra_mc *
242243
devm_tegra_memory_controller_get(struct device *dev)
243244
{
244245
return ERR_PTR(-ENODEV);
245246
}
246-
#endif
247247

248-
int tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev);
248+
static inline int
249+
tegra_mc_probe_device(struct tegra_mc *mc, struct device *dev)
250+
{
251+
return -ENODEV;
252+
}
253+
#endif
249254

250255
#endif /* __SOC_TEGRA_MC_H__ */

0 commit comments

Comments
 (0)