2021-03-12 09:27:26

by Tony Lindgren

[permalink] [raw]
Subject: [PATCH 0/2] Few clean-up patches after dropping legacy data

Hi all,

Here are few clean-up patches after we are dropping the legacy data for
omap4/5 and dra7. These are against my omap-for-v5.13/genpd-drop-legacy
branch at [0].

Regards,

Tony


[0] https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v5.13/genpd-drop-legacy

Tony Lindgren (2):
ARM: OMAP2+: Stop building legacy code for dra7 and omap4/5
bus: ti-sysc: Warn about old dtb for dra7 and omap4/5

arch/arm/mach-omap2/Makefile | 8 ++++----
arch/arm/mach-omap2/io.c | 7 ++++++-
arch/arm/mach-omap2/omap_hwmod.h | 13 +++++++++++++
arch/arm/mach-omap2/pdata-quirks.c | 2 +-
arch/arm/mach-omap2/sr_device.c | 7 +++++++
drivers/bus/ti-sysc.c | 3 +++
6 files changed, 34 insertions(+), 6 deletions(-)

--
2.30.2


2021-03-12 09:27:52

by Tony Lindgren

[permalink] [raw]
Subject: [PATCH 2/2] bus: ti-sysc: Warn about old dtb for dra7 and omap4/5

Let's warn if an old incomplete dtb is detected. We now assume the dtb
is complete and does not depend on the legacy platform data.

Signed-off-by: Tony Lindgren <[email protected]>
---
drivers/bus/ti-sysc.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -2886,6 +2886,9 @@ static int sysc_init_soc(struct sysc *ddata)
switch (sysc_soc->soc) {
case SOC_AM3:
case SOC_AM4:
+ case SOC_4430 ... SOC_4470:
+ case SOC_5430:
+ case SOC_DRA7:
np = of_find_node_by_path("/ocp");
WARN_ONCE(np && of_device_is_compatible(np, "simple-bus"),
"ti-sysc: Incomplete old dtb, please update\n");
--
2.30.2