pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enablecommit 2e75396f1df61e1f1d26d0d703fc7292c4ae4371 upstream.The commit c494a447c14e ("soc: bcm: bcm2835-power: Refactor ASB
pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enablecommit 2e75396f1df61e1f1d26d0d703fc7292c4ae4371 upstream.The commit c494a447c14e ("soc: bcm: bcm2835-power: Refactor ASB control")refactored the ASB control by using a general function to handle boththe enable and disable. But this patch introduced a subtle regression:we need to check if !!(readl(base + reg) & ASB_ACK) == enable, not justcheck if (readl(base + reg) & ASB_ACK) == true.Currently, this is causing an invalid register state in V3D whenunloading and loading the driver, because `bcm2835_asb_disable()` willreturn -ETIMEDOUT and `bcm2835_asb_power_off()` will fail to disable theASB slave for V3D.Fixes: c494a447c14e ("soc: bcm: bcm2835-power: Refactor ASB control")Signed-off-by: Maíra Canal <mcanal@igalia.com>Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>Reviewed-by: Stefan Wahren <stefan.wahren@i2se.com>Cc: stable@vger.kernel.orgLink: https://lore.kernel.org/r/20231024101251.6357-2-mcanal@igalia.comSigned-off-by: Ulf Hansson <ulf.hansson@linaro.org>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
show more ...
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