soc: ti: ti_sci_pm_domains: check for proper args count in xlate
authorTero Kristo <t-kristo@ti.com>
Thu, 29 Oct 2020 09:33:37 +0000 (11:33 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 29 Oct 2020 21:13:38 +0000 (22:13 +0100)
commit3d696f42c7f4bfcc54bde545898d4b89a74f9cc0
treed9c3831f97a463c8410458b17e5750b380d8f80d
parent01eea23687ed0aa4e251f80ae795fc586e68343a
soc: ti: ti_sci_pm_domains: check for proper args count in xlate

K2G devices still only use single parameter for power-domains property,
so check for this properly in the driver. Without this, every peripheral
fails to probe resulting in boot failure.

Link: https://lore.kernel.org/r/20201029093337.21170-1-t-kristo@ti.com
Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one")
Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/ti/ti_sci_pm_domains.c