pmdomain: ti-sci: Add missing of_node_put() for args.np[ Upstream commit afc2331ef81657493c074592c409dac7c3cb8ccc ]of_parse_phandle_with_args() needs to call of_node_put() to decrementthe refcou
pmdomain: ti-sci: Add missing of_node_put() for args.np[ Upstream commit afc2331ef81657493c074592c409dac7c3cb8ccc ]of_parse_phandle_with_args() needs to call of_node_put() to decrementthe refcount of args.np. So, Add the missing of_node_put() in the loop.Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one")Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>Reviewed-by: Dhruva Gole <d-gole@ti.com>Message-ID: <20241024030442.119506-2-zhangzekun11@huawei.com>Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>Signed-off-by: Sasha Levin <sashal@kernel.org>
show more ...
pmdomain: ti-sci: Fix duplicate PD referralscommit 670c900f69645db394efb38934b3344d8804171a upstream.When the dts file has multiple referrers to a single PD (e.g.simple-framebuffer and dss nodes
pmdomain: ti-sci: Fix duplicate PD referralscommit 670c900f69645db394efb38934b3344d8804171a upstream.When the dts file has multiple referrers to a single PD (e.g.simple-framebuffer and dss nodes both point to the DSS power-domain) theti-sci driver will create two power domains, both with the same ID, andthat will cause problems as one of the power domains will hide the otherone.Fix this checking if a PD with the ID has already been created, and onlycreate a PD for new IDs.Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one")Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>Cc: stable@vger.kernel.orgLink: https://lore.kernel.org/r/20240415-ti-sci-pd-v1-1-a0e56b8ad897@ideasonboard.comSigned-off-by: Ulf Hansson <ulf.hansson@linaro.org>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pmdomain: ti: Add a null pointer check to the omap_prm_domain_init[ Upstream commit 5d7f58ee08434a33340f75ac7ac5071eea9673b3 ]devm_kasprintf() returns a pointer to dynamically allocated memorywh
pmdomain: ti: Add a null pointer check to the omap_prm_domain_init[ Upstream commit 5d7f58ee08434a33340f75ac7ac5071eea9673b3 ]devm_kasprintf() returns a pointer to dynamically allocated memorywhich can be NULL upon failure. Ensure the allocation was successfulby checking the pointer validity.Signed-off-by: Kunwu Chan <chentao@kylinos.cn>Link: https://lore.kernel.org/r/20240118054257.200814-1-chentao@kylinos.cnSigned-off-by: Ulf Hansson <ulf.hansson@linaro.org>Signed-off-by: Sasha Levin <sashal@kernel.org>
pmdomain: Rename the genpd subsystem to pmdomainIt has been pointed out that naming a subsystem "genpd" isn't veryself-explanatory and the acronym itself that means Generic PM Domain, isknown onl
pmdomain: Rename the genpd subsystem to pmdomainIt has been pointed out that naming a subsystem "genpd" isn't veryself-explanatory and the acronym itself that means Generic PM Domain, isknown only by a limited group of people.In a way to improve the situation, let's rename the subsystem to pmdomain,which ideally should indicate that this is about so called Power Domains or"PM domains" as we often also use within the Linux Kernel terminology.Suggested-by: Rafael J. Wysocki <rafael@kernel.org>Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>Reviewed-by: Linus Walleij <linus.walleij@linaro.org>Acked-by: Arnd Bergmann <arnd@arndb.de>Acked-by: Heiko Stuebner <heiko@sntech.de>Acked-by: Rafael J. Wysocki <rafael@kernel.org>Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>Link: https://lore.kernel.org/r/20230912221127.487327-1-ulf.hansson@linaro.org