From nobody Sat Jul 25 01:37:24 2026 Received: from va-2-40.ptr.blmpb.com (va-2-40.ptr.blmpb.com [209.127.231.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 411253F99FA for ; Tue, 21 Jul 2026 01:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.231.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784598587; cv=none; b=hzAn6HS+lNTCAl7TeTTCP8vIXbiFjah1Tpfb0GPZWQEelZfqVvHFBDhHHSj80uZ2qnyCxsPofRp1mNeWd6loOllyVV7DzDfGw5l8JMVK3O+4rRE4zUtqZ7uZLf4xGK0GjN5ukmQc5qXgBp/GBSQCpqa/2XFAQNKMH7EPL+1Q/4s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784598587; c=relaxed/simple; bh=nr73zAl2QgzoXpdmKXg+2YQMVP+hiBGn0WZp22+cFWE=; h=To:Content-Type:Cc:Subject:Date:Mime-Version:From:Message-Id; b=UadSrmmBG+0gA8UymSYmFe1NT1P0fU5N4gKzPzf8T1DT1nEO/LTiYRGkZTkCOcZbVDCLAFVpjsrLe+7TNXZ3IEejV7gy82egtuo6DZYKl5GCgMfL78OXClUh6FEZABLHcpltoKlD1YuF67+9gJnlMSxRZ0/kfYhw+/H5Jb+F8cw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=spacemit.com; spf=pass smtp.mailfrom=spacemit.com; dkim=pass (2048-bit key) header.d=spacemit.com header.i=@spacemit.com header.b=qJF9hSIy; arc=none smtp.client-ip=209.127.231.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=spacemit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=spacemit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=spacemit.com header.i=@spacemit.com header.b="qJF9hSIy" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=feishu2303021642; d=spacemit.com; t=1784598579; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=nr73zAl2QgzoXpdmKXg+2YQMVP+hiBGn0WZp22+cFWE=; b=qJF9hSIyYNYslGK/tA/V5DUo2phXSrVc5KhFOZXcyvvOZleRoXD97oA6+PSRc8G9F4efNb hnlQ+Qw6tb2RVRqujh5kgpUQJJ80N4rb0PPEyihDBVf0NKs7j2b20FA1M9AZYr4CjgACjw 6A8e1/xzL00MpvwPWIErhrURvBtCuubNGswkgt0+oiyKFWqasFcycA9yQxmocrSmKSNgYA AMOeq82pfHb05Cc9zBudjrZ68v/tyVh/skXW7p+e0ar8Ykhz9GsHD4MJCkx3r7W9IhuZ5f ccGZ55OueekKvBbov8yGm739iqu3fjH2hCJy8iuuluOv5gHeZeMYNxgll7bv5g== To: "Frank Binns" , "Matt Coster" Received: from snode5.. ([120.237.158.181]) by smtp.feishu.cn with ESMTP; Tue, 21 Jul 2026 09:49:36 +0800 Content-Transfer-Encoding: quoted-printable Cc: , Subject: [PATCH] drm/imagination: allow probe when no power-domains are described Date: Tue, 21 Jul 2026 09:49:19 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.34.1 From: "Sterling-Ash" Message-Id: <20260721014919.650943-1-baihui.liang@spacemit.com> X-Original-From: Sterling-Ash X-Lms-Return-Path: Content-Type: text/plain; charset="utf-8" pvr_power_domains_init() currently fails probe with -ENOENT when the device tree node has no "power-domains" property. On some platforms (e.g. SpacemiT K3) the GPU power domain is brought up by the bootloader and is not modeled or managed by Linux, so there is legitimately no power-domains phandle to attach. Treat a missing "power-domains" property as "nothing to attach" and continue probing, rather than failing. Signed-off-by: Sterling-Ash --- drivers/gpu/drm/imagination/pvr_power.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/imagination/pvr_power.c b/drivers/gpu/drm/imag= ination/pvr_power.c index a71d5b35601e..5751e2d814b0 100644 --- a/drivers/gpu/drm/imagination/pvr_power.c +++ b/drivers/gpu/drm/imagination/pvr_power.c @@ -635,6 +635,15 @@ int pvr_power_domains_init(struct pvr_device *pvr_dev) =20 domain_count =3D of_count_phandle_with_args(dev->of_node, "power-domains", "#power-domain-cells"); + if (domain_count =3D=3D -ENOENT) { + /* + * No "power-domains" property in the device tree: the platform + * handles power domains transparently or at the firmware/bootloader lev= el, + * so there is no domain to attach. Treat this as non-fatal. + */ + err =3D 0; + goto out; + } if (domain_count < 0) { err =3D domain_count; goto out; --=20 2.34.1 This message and any attachment are confidential and may be privileged or o= therwise protected from disclosure. If you are not an intended recipient of= this message, please delete it and any attachment from your system and not= ify the sender immediately by reply e-mail. Unintended recipients should no= t use, copy, disclose or take any action based on this message or any infor= mation contained in this message. Emails cannot be guaranteed to be secure = or error free as they can be intercepted, amended, lost or destroyed, and y= ou should take full responsibility for security checking.=20 =20 =E6=9C=AC=E9=82=AE=E4=BB=B6=E5=8F=8A=E5=85=B6=E4=BB=BB=E4=BD=95=E9=99=84=E4= =BB=B6=E5=85=B7=E6=9C=89=E4=BF=9D=E5=AF=86=E6=80=A7=E8=B4=A8=EF=BC=8C=E5=B9= =B6=E5=8F=AF=E8=83=BD=E5=8F=97=E5=85=B6=E4=BB=96=E4=BF=9D=E6=8A=A4=E6=88=96= =E4=B8=8D=E5=85=81=E8=AE=B8=E8=A2=AB=E6=8A=AB=E9=9C=B2=E7=BB=99=E7=AC=AC=E4= =B8=89=E6=96=B9=E3=80=82=E5=A6=82=E9=98=81=E4=B8=8B=E8=AF=AF=E6=94=B6=E5=88= =B0=E6=9C=AC=E9=82=AE=E4=BB=B6=EF=BC=8C=E6=95=AC=E8=AF=B7=E7=A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