OSDN Git Service

MIPS: DTS: Ingenic: adjust register size to available registers
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 2 Dec 2021 18:39:53 +0000 (19:39 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 9 Dec 2021 17:10:00 +0000 (18:10 +0100)
commit2bcb9c25081d116afa3796133033ea3f2f02ee8b
tree3239dbfc80111c6c8b0315c838cf84b784759327
parent27d56190de33151862df8add5f8984a3ca441062
MIPS: DTS: Ingenic: adjust register size to available registers

After getting the regmap size from the device tree we should
reduce the ranges to the really available registers. This
allows to read only existing registers from the debug fs
and makes the regmap check out-of-bounds access.

For the jz4780 we have done this already.

Suggested-for: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/ingenic/jz4725b.dtsi
arch/mips/boot/dts/ingenic/jz4740.dtsi
arch/mips/boot/dts/ingenic/jz4770.dtsi