linux-stable/drivers/soc/renesas
Geert Uytterhoeven 4194b583c1 soc: renesas: Add missing check for non-zero product register address
If the DTB for a device with an RZ/A2 SoC lacks a device node for the
BSID register, the ID validation code falls back to using a register at
address 0x0, which leads to undefined behavior (e.g. reading back a
random value).

This could be fixed by letting fam_rza2.reg point to the actual BSID
register.  However, the hardcoded fallbacks were meant for backwards
compatibility with old DTBs only, not for new SoCs.  Hence fix this by
validating renesas_family.reg before using it.

Fixes: 175f435f44 ("soc: renesas: identify RZ/A2")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20191016143306.28995-1-geert+renesas@glider.be
2019-11-01 14:25:33 +01:00
..
Kconfig soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
Makefile soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
r8a774a1-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a774b1-sysc.c soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
r8a774c0-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7743-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7745-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7779-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7790-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7791-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7792-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7794-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7795-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a7796-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77470-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77965-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77970-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77980-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77990-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r8a77995-sysc.c soc: renesas: rcar-sysc: Remove unneeded inclusion of <linux/bug.h> 2019-10-01 10:30:06 +02:00
r9a06g032-smp.c ARM: shmobile: Add the R9A06G032 SMP enabler driver 2018-07-20 13:44:04 +02:00
rcar-rst.c soc: renesas: rcar-rst: Add support for RZ/G2N 2019-10-01 10:29:40 +02:00
rcar-sysc.c soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
rcar-sysc.h soc: renesas: rcar-sysc: Add r8a774b1 support 2019-10-01 10:29:40 +02:00
renesas-soc.c soc: renesas: Add missing check for non-zero product register address 2019-11-01 14:25:33 +01:00
rmobile-sysc.c soc: renesas: rmobile-sysc: Set GENPD_FLAG_ALWAYS_ON for always-on domain 2019-08-23 09:58:01 +02:00