From patchwork Sun Nov 22 15:55:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4880 Delivered-To: michael@amarulasolutions.com Received: by 2002:a05:7300:bf19:b0:386:abcc:ec87 with SMTP id ff25csp522757dyb; Sun, 22 Nov 2026 07:55:20 -0800 (PST) X-Received: by 2002:a05:6000:1841:b0:48e:6f76:de9d with SMTP id ffacd0b85a97d-4abb4c7ac1dmr20606103f8f.46.1795362919799; Sun, 22 Nov 2026 07:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795362919; cv=none; d=google.com; s=arc-20260327; b=ovC2H9JvXpU+t4v1243zYE/e9T+2MTVyypzNY77S+cA+pvvrCvOK1s72CFGcB9nXtC wz+g2fbVEHVoECRSgs3rekOMYDkKsYT+vnbcAw7ixBkXhIq2iKcMrBqbAvBQNOFPW4+B G4efwDXL0cpSQAsh9LtEEKSWQ7fKq9Bclnh1eHAMbl15RXlouZ7lTI9NpL2yHSYMy3qs YTNLprTZcoJ5QPK+vYADy+Qu7oK2GwJvvv6iZnexjYaqSAG+9gQNdFJ7AqesT9z4rC/V YtkyE7zyQa+fZXOX07kqDGcCoVEAkvXK8YxA4GnNJpnaKYpl5H32Ni2TiDGTr12jqt7M zjKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=brpic2gxGr+UpSfI0BgDue8RQ+H82jnfKcpc5s/aMXc=; fh=+GXaw0Da1n6E/qqADTW1Vu8l2zbTnBzDnh2gsD8BNjo=; b=f8gNi3Em71OyP/hoJMY5AnWUJtt/2lS3iWZuGHOfhTt2ADKvJeFcQvGVbHLGfJgKqo J5HzmpVyvf1H9LcC5AGYpNPuD75jWu2r5vekDIq7Rmav0allef6vENy2muaNGJsbzEkM ZKY5NxJQFIjgOadaKzdzwYGMcNei41J+05FXGNPTs3M7F6g7CHNK+DGYeDsPhOlpvP/0 c2j/WjaivoAWFsFvM3EyjyAXt/IucTHTrUsZCpFvTz2zxV0dsNqrmhT87CluMxhIn933 dHTZiuyzB971wtGV50bJ7GHlTKVzhC3O6FabtlBrWv0EB1KziSkoIJImoatxMFdyPJQ6 oSwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ff1060Uv; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-4ab5b342c6esor1315618f8f.7.2026.11.22.07.55.19 for (Google Transport Security); Sun, 22 Nov 2026 07:55:19 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ff1060Uv; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1795362919; x=1795967719; darn=amarulasolutions.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=brpic2gxGr+UpSfI0BgDue8RQ+H82jnfKcpc5s/aMXc=; b=ff1060Uv1eEmfmwWG0XL6GTLBAuTCZp9xUPe1xrsEC6I1EdBKBwT+QsRY4akBKBnVt 1q2nslbTYA1QfWBKUOvAzT0yAnd0c6yf1XWu+jcukxTN7jW9M/+Vs1TxDYY7ou+5U2Hb UeD5hx8PJIGRNxGFxTWFMpDGARRcJDcVY7/Ao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795362919; x=1795967719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=brpic2gxGr+UpSfI0BgDue8RQ+H82jnfKcpc5s/aMXc=; b=wducQnnmfGeYplp3Lz2t2kOTK2GdJvqqexLOn3M9zgiVOLQJzZCso9c/pOI4nLewWp geaCped0maU3ZBrRMA96jbcebjDAjFmAo0A6gID8Tt2YM8p7wU4MccJwTaZGKvVQvD/X cdjCWBb++wGk+EYP0TkkK5sFKVHJTgvvNY3IAG0ctJmJMUfJsST6dWfKm6zYM5j2DILZ RQX+r5TOYwuuZMXulKvlFaV9o+3TZynmg5H6I4H/olI6PewimHa7saaVnIIcd4Bnmf8t PEF+mQe8WTIi+2CjRlkh4P92ZnyhNXu7wv29CIXROlGLhJfbOyU6U4iBTudstv9IkGZ3 ZZHw== X-Gm-Message-State: APuU4Z8xRmqgiKxAmh+BPj7ujhU1QszFaxsdcyP1CprZok8W6Ixuc1R/ lUPyyBkl/VNHbBl/tE43hRTGUyLUcxpmowe5QUoCeOfCajl7uZPQphUSPaNy/s3jcOi6Mg== X-Gm-Gg: AZFdTZevl1w8WL1xvLlIFfrxxBfIu3sefRoPnMwBebyuWWLJ+84bqn4pnRyQeKJ7UGj Tq1mj10F2wPoyiehr0FgDyG1Ep8nG6IjeUZyqsdKFd/SxFwFvIjpsYMqJb2d/08omaWTwvw94TA vbaBZQn83tXQbY4kesWALflfEfn7vXlLcAycGEeI9gBfdfM5W/C4BAR2vPtezCVIoyJgvGs58sd nayFgrQlkBe5VO4BE1soUSOF0LmqXxOFcb/MHWMQ1H6NgZz3XksMZJHg+H1mxWmJ++1tTkG46Lv Xhw9Gtg+1UMiNZpTomGxi7WsUXMurTiCjd4IkozNxRzptr0iDqUuDrBgASCGMj2CwysiyGnIBwc fvqy4eQlzdVCr7+S3LXJr6KWIl1PpoN18tcTllBrweGHjvE4DA2+pF+747Tb3eHE9C2R4/BXlV5 cpPY81Ogd4+ywXc/lGxHnhg7AGbVaPE+wSxSFsBxB+k4+dqdA0dyMlJJY+SotElS+F+XRjr2Fd0 rkSFQYMHAPMSPZYB9a+fdy3QUYEOF/6IRULrG3mKVBWgoqnWidIR/53nkF1mD0wS05fxbGjoN6N dLw3+0i8of/4kJ6bCi6/2oivKcH/Sn+GIZZ4PizUBtrW56KqEgkTVH8O/SgXTah14B2y4FsCO6S fW1BlOu+ocNEhir5H8a+zzNxNKxoNZjLak8L+elfKJiVrJuQhFM6uz6hNS6Hs7rXntklac6Oq/p KYhcihjZkk957SZXQI9iBi7PFIaQ== X-Received: by 2002:a05:600c:820c:b0:4bb:6a2d:b426 with SMTP id 5b1f17b1804b1-4bb887c281dmr172330355e9.1.1795362919237; Sun, 22 Nov 2026 07:55:19 -0800 (PST) Return-Path: Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it (host-79-14-29-58.business.telecomitalia.it. [79.14.29.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c340df4sm20046526f8f.55.2026.11.22.07.55.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2026 07:55:18 -0800 (PST) From: Dario Binacchi To: Ulf Hansson Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Peng Fan , Lucas Stach , Dario Binacchi , Fabio Estevam , Frank Li , Jacky Bai , Kees Cook , Marek Vasut , Ming Qian , Pengutronix Kernel Team , "Rafael J. Wysocki" , Sascha Hauer , Shawn Guo , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Xu Yang , bui duc phuc , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH v3 0/4] pmdomain: imx: Keep the domains left on by the bootloader Date: Sun, 22 Nov 2026 16:55:07 +0100 Message-ID: <20261122155514.10289-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 The i.MX8M power domain drivers register all their domains as off. A domain left on by the bootloader, e.g. to show a splash screen, is then powered up again by its first consumer, which on the i.MX8MN turns the display off and hangs the system. This series reads the state of the domains from the hardware, so that the ones left on are kept on until their consumers have probed. The first patch fixes an error path of the blk-ctrl probe. The clocks held by the last patch are released at sync_state, so they stay on until all the consumers of the blk-ctrl have probed. Tested on i.MX8MN (BSH SMM S2 PRO). Changes in v3: - Add Reported-by and Closes tags - Drop the runtime PM reference synchronously in the probe error path - Keep the bus domain on while the state of the domains is read - Remove the domains before releasing their boot-on references Changes in v2: - New patch - Release the resources of the domains left on when the driver is removed - Take the references once the probe can no longer be deferred - Clear the boot-on state when the domain is powered off - Release the references when the driver is removed - Rebase on the changes of the previous patch Dario Binacchi (4): pmdomain: imx8m-blk-ctrl: Remove the power notifier on probe failure pmdomain: imx: gpcv2: Keep the domains left on by the bootloader pmdomain: imx8m-blk-ctrl: Keep the domains left on by the bootloader pmdomain: imx8m-blk-ctrl: Hold boot-on domain clocks until sync_state drivers/pmdomain/imx/gpcv2.c | 77 +++++++++++++- drivers/pmdomain/imx/imx8m-blk-ctrl.c | 144 +++++++++++++++++++++++++- 2 files changed, 217 insertions(+), 4 deletions(-) --- base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16 branch: imx-pmdomain-boot-on-v3 -- 2.43.0