[PATCH v2] pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable

Florian Fainelli florian.fainelli at broadcom.com
Mon Oct 23 17:29:07 PDT 2023



On 10/23/2023 4:35 PM, Maíra Canal wrote:
> The commit c494a447c14e ("soc: bcm: bcm2835-power: Refactor ASB control")
> refactored the ASB control by using a general function to handle both
> the enable and disable. But this patch introduced a subtle regression:
> we need to check if !!(readl(base + reg) & ASB_ACK) == enable, not just
> check if (readl(base + reg) & ASB_ACK) == true.
> 
> Currently, this is causing an invalid register state in V3D when
> unloading and loading the driver, because `bcm2835_asb_disable()` will
> return -ETIMEDOUT and `bcm2835_asb_power_off()` will fail to disable the
> ASB slave for V3D.
> 
> Fixes: c494a447c14e ("soc: bcm: bcm2835-power: Refactor ASB control")
> Signed-off-by: Maíra Canal <mcanal at igalia.com>

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>

Good catch!
-- 
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4221 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20231023/e46d1527/attachment.p7s>


More information about the linux-arm-kernel mailing list