Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89485606A323 for ; Wed, 2 Dec 2026 04:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=A3A4Qzzy; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=GMzMYE2E; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=euDdT51l Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 63C9F80C13; Wed, 2 Dec 2026 04:59:28 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 5HN3j9AQYkIH; Wed, 2 Dec 2026 04:59:27 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org A225D80C53 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796187567; b=L22kmDbxSOaRvf2rHuGHSmrBogVVqEEF3pTK+vPzQUk2PcgiCzy+i1GzW03vL+D4Ya6b aWUvkwBdJu/qn8+vx3TlVR5tKUaE9gHQeiBe15VBkQJAZ144mnk/OL0c4P0Rs7QIW2lWd 3IqI6zbanxtFbjWuP8kzX82E5sgWE/3Q7bUaGISoqJtis7A8EJWJN8kcDBSDM67bRDAd0 9bcUVI4HJXlt/qFrd88wix0q+mmMhtL0v+W/CUfPUrUnq1yMtGvZRcEGd2LXdjevp5SpM boGfIJLP49T6DnUU2VYbT0HPy9m/f6YA6qz6aAs6XMmmvwGAada9n0JQFTxe8wxbegg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796187567; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:Received:Received:DKIM-Signature: X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:From:Date:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc: X-Mailer:X-Developer-Signature:X-Developer-Key:X-Authority-Analysis: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details:X-BeenThere:X-Mailman-Version:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=oTDkZ06arAY/AGXc3NMQRGPv81feOTHTzcUhyA8THKc=; b=cWFtRDEd/g3upFKCL/Ap5fmyAo+ulBUjHDjkcJfFen6rxgO44bGx7pbzg9DhH7Mtje+e 9LuMHyzdSI9DoHSaPCnrCJXTH+pXvvAQAPmLq5ST85O/BVurGMTVH+TJhpYw7vSSD5LQP kgTptqwwmiqzPoP1d6GObkHYFwVgY0uis93UigINwpTWfoi0qshSKGSdwe9Fb/DFMgLns alP+0emMzY7+SnocgWBN7ScZ5BI+0JOLT5M/iR5Lrs1he3qViy1MZGVoi6cqInL+jSQLK WoggPWDOigvYDoW8d+jTZJdqVwvf8QoBzNwBjzNW+DAfgs9H3ak3Zkv+qTrFiLE8s1A== ARC-Authentication-Results: i=1; smtp1.osuosl.org; dmarc=pass header.from=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=GMzMYE2E; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=euDdT51l; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796187567; bh=oTDkZ06arAY/AGXc3NMQRGPv81feOTHTzcUhyA8THKc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=A3A4Qzzy7lDjycrPjAycSsNtpH8PCwMMP8aEEGh6Ram9yoTYPegz5yhrssAoPNEMg +5w/3hlKE84QOhk4PQzcGXukbFEjP60+3CdaRWChtvhaWmQUhKm8wI5RpchC+YbTLE om/ZuTwptEXEb5I8xt6EAaxBFY23+YKaFlum0/L4lMNoEPaNxit3OAXpE+pyzTy5xY rvbxf11PY7kDhFxvtsttsEmmmuDhaksl8SRXwHWvj81smr5pTmz62OQBwjT4m6YZJ5 tTjkcTISq9f6QXcPquRFx+O+f+E5hSfFw7UpMYiCgcs3NEjKcuF8QSHv8/DyQw+iCk lGNTgxIBGRzMg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id A225D80C53; Wed, 2 Dec 2026 04:59:27 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 0000E325 for ; Wed, 2 Dec 2026 04:59:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E622B80C53 for ; Wed, 2 Dec 2026 04:59:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wYaHlX0MdvWk for ; Wed, 2 Dec 2026 04:59:25 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 3224C80C13 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=205.220.168.131 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=balaji.selvanathan@oss.qualcomm.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=GMzMYE2E; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=euDdT51l Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3224C80C13 for ; Wed, 2 Dec 2026 04:59:24 +0000 (UTC) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B22u61O1858170 for ; Wed, 2 Dec 2026 04:59:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= oTDkZ06arAY/AGXc3NMQRGPv81feOTHTzcUhyA8THKc=; b=GMzMYE2EDVcIXqbG RrCtlfycECJXhxinmi8soKcArOqiUClpECtnslPfDu/HRshsvQ+Fk9cFe4m/YZUY UuOdW8ThSql2+cXS2KZwv0rGUiLtqLqB7J0ERzzqbIHSYgIppg2W/xTGoc+rsDWx KM0p4Uq7TfmX34FBcO7YkE0Ng9Gs3lHg93yAXOUdHRJioWG6VgwVrGR4wPUDZPQP FF7mipJ/t9IeV4ojUf0Gki1OtU0ieU9HkFRe0/5ygmcmWZMs2imv65GuqtvaP4fH Kn1GjaK0Gar18pyTZOXvR7/neJ/rd3U+aMvZ0j+0SrqkhiZRVbzpRY9Ewn2XdwoI 6PDrAg== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ja5p9hhh4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 04:59:24 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-386ad819860so9414229eec.0 for ; Tue, 01 Dec 2026 20:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796187563; x=1796792363; darn=lists.u-boot-project.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=oTDkZ06arAY/AGXc3NMQRGPv81feOTHTzcUhyA8THKc=; b=euDdT51ljIOSdchb4kIpKWd2Cy73DP0lk3+1e5slWNXUIQIWpTTEVRIb2r8sLW9amB UyufGdugHmRcy7e34N+NjpVbdV80y+ZjMwhFCu9tTQFNeBeGytPSxK2rrjhwDb9hVUyY 95Tw0kLXDg5chtY8inXgFVmk0+Y0TNI2DT8FswxYAibPfXTq0EZ6YQs5WRkc2dz7Lkx0 DjVj9wEtQ6iMyrD9LRzkW1EVLbU2h9M0N5iGTYO1Tl+KxAHSmI79AjpksbOalHFqB4rt 3QVDPL67uoEZwz/6URivu8crMMe3ihxVWoLZ486V+cUgbn4a4ItBe5wMC+JHoIKH9oqt EHGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796187563; x=1796792363; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oTDkZ06arAY/AGXc3NMQRGPv81feOTHTzcUhyA8THKc=; b=c165bvX+kiTLcyTdu/xaeDQMmr2xD56GkejVZUUOyXCTeZPMmf8WhvXET3TQHDxGWY 4OFqbv/PYgMYWnv7NyScXemOWqX4VGnMxxb+1bO7PqzA7K1sFjmI4G+LsswvFIkKMvxa r9/QlF+8F+aOKlkn8rvubr8XgD5L14dtqZZluW6g/uWfGWuOxAehe0jqDFy1xPYPmAXO nnA2L98nGENfpKOtBLDTg88x+lO3Ly34heK347Gyc5pWVs2ZwK/zu8jYD9KC8pesvxnV hvj4Rs1Lai6PDwA/559CyWsQ/7OfxRXpr3ZqMtW1giKYE4miedQCwdnYFxZRGAhpAhro JLSw== X-Gm-Message-State: APuU4Z+NTN07tK6slIXVCNDFqTOBNvWKC9oX19rJMnp8mJadSQjqohvy 1wEy0+a0ybbgb0tdzPVnXeNZhrsFuZjMDvOrZgIojxPv5rGtpiwiJSy/uWbIQDnKnjBpKCv0UTk J9o6Cj0dFP3HhICfcWWhfXJ79YiC440VmBjP+5GXwTI3VmgSNCGyGkcyoYXm9uETWNiynF3A= X-Gm-Gg: AZFdTZebe8jLSYtptGJWD2Diu22IqXctdzvyn9ORJ2Zi+hc3LgspEc3h9nbD0IVozQd ABoCi5+6Ww+o7RS3T8Pr4oJHRrgXbZ3nl1z/r4JR5uOuSbRyLe1px5+oyDgfRlQgTwnmCLJNXaK Uf0abR9UGzDeOVLffspOIwhAVedlNkkAhg6rqDJdNEyW2POUhwyDI/XIjSfC6cHZOcExA8u1cia JCWLByjsLkZP0GFNL1M49iqX/IplrcYJzabQsMqZ0ICwUiLxU0F+EFSkQIUee/W0QatdxvjJYL9 EfdlMhcHumssjWz/nswTimUVe909ohNhmqg3ZwP8R1lnTVCH5NsfQVkE5TihZa7X7qZtNjyqMLW RLtX2B1d1exh/nJqIsu9l5a31ZbTnyZRNCbGLxyZF0mKBPd+lAI88hhz/sZCiUXXYWNsxgGdWn0 oIB88mhQTQFo4zy7dZ49nVPW5B0hec3LgGQHQJ2uxBHwkcS5lzYEvyNvCzcGa8Kd1WIXKfDgKrD 5u1Dw== X-Received: by 2002:a05:7300:d090:b0:386:8bd2:da2c with SMTP id 5a478bee46e88-3868bd2db9amr35607967eec.2.1796187563476; Tue, 01 Dec 2026 20:59:23 -0800 (PST) X-Received: by 2002:a05:7300:d090:b0:386:8bd2:da2c with SMTP id 5a478bee46e88-3868bd2db9amr35607936eec.2.1796187562949; Tue, 01 Dec 2026 20:59:22 -0800 (PST) Received: from hu-bselvana-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566fdce48sm121634180eec.14.2026.12.01.20.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 20:59:22 -0800 (PST) From: Balaji Selvanathan Date: Wed, 02 Dec 2026 10:28:50 +0530 Subject: [PATCH v12 4/7] soc: qcom: Allow RPMh to be built without Command DB X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-snagboot-v12-4-ecff58506766@oss.qualcomm.com> References: <20261202-snagboot-v12-0-ecff58506766@oss.qualcomm.com> In-Reply-To: <20261202-snagboot-v12-0-ecff58506766@oss.qualcomm.com> To: u-boot@lists.u-boot-project.org, Sumit Garg , u-boot-qcom@groups.io Cc: Rayagonda Kokatanur , Tom Rini , Ilias Apalodimas , Casey Connolly , Neil Armstrong , Johan Jonker , Tien Fong Chee , Michael Srba , Sumit Garg , Aswin Murugan , Simon Glass , Hongyang Zhao , Linus Walleij , Balaji Selvanathan X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796187532; l=2369; i=balaji.selvanathan@oss.qualcomm.com; s=20260213; h=from:subject:message-id; bh=shZTbrBrSg8fMhWtp/JqRot0e6casfmNE6621DJTsjY=; b=FqyiSj1q7JpnvspyvPew31SQno1oKHakmYVzqXiQArrgTXNf5asgSaUg81riSYyE3EH80wW0w oy4Ca5vu05OBIpUFHkXxiGyJksGOWW9RcImix8Ix8ockpvv4/o7iefq X-Developer-Key: i=balaji.selvanathan@oss.qualcomm.com; a=ed25519; pk=CDpYiUU3SH7KGEtsBvY2tBGPiWfMxqWJF0p2LftOfnc= X-Authority-Analysis: v=2.4 cv=Ft6QbGrq c=1 sm=1 tr=0 ts=6b0fa5ac cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=JIV6U4gh5wCYVv0GY9MA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAxOSBTYWx0ZWRfX0m602AmT8h/W 57+2EjKvff32e4d3FfGLiEOj0CTABwV3fKC+3csjmER7mvKH2a3ndReDL1Kte6AIUijVktdxgF+ t3kKeJNzk5QBYgdHKeO33ed+ktblZX8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAxOSBTYWx0ZWRfX5OEx2OlD/RQm PnZOPNXWOv4GkvFeKYN5Ge4pnp2X86V8WBdcF8cEb8mgXYPW6cPPSI1IGIIhF+vU9lQ0kEEDvNS iq/LpEnjfZgLD3tsidemiW0NwQP9lZE1xUGBaKZC6hiZL85y+q4EsIhzr5pk6tVwoav7GKxNQIi S7Y1Eqz7+nSrf2tQrbqSm2f4l8NZDPJKz2fUIJAgKs1B5LvkReGQyyE44M6GzlUNfQDqGUVuLU8 by3DC2KadCd2H3gb3oLknfKEQuoZINSieFjnMnlcgo2bSY141f4h0ia5kI6OkQLegAMgw3rYGjN f3gFJox4mU5s3ZHCvQgsowg6b3KI0PJXgzVspgNSfZ2hoLaJ+4+s5HeHSCgd/KjJvVcLb1Y07MZ iQKtPD9OeCWqHKfqEasl06bF5209QXt5e1BFwooPQcbdjhxdnY5ljnGZhyqJNyKBWvCSC7HBVzj +zzpjBVJQZeVn2uR1EQ== X-Proofpoint-ORIG-GUID: pkcCVKQHhhHbPw2FzWdp_2vsgkvHUr6B X-Proofpoint-GUID: pkcCVKQHhhHbPw2FzWdp_2vsgkvHUr6B X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_01,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020019 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 QCOM_RPMH depends on QCOM_COMMAND_DB, so the RPMh RSC device and the children it binds, such as the clock and power domain devices, are only built when Command DB is enabled. rpmh-rsc.c itself never calls into Command DB, only the RPMh users do. In some scenarios, such as Snagboot mode, no Command DB data is available, so there is nothing for the driver to read. The RPMh RSC device and its clock children are still needed there, for example the rpmhcc clock used by UFS. Remove the dependency of QCOM_RPMH on QCOM_COMMAND_DB, and add stubs for cmd_db_read_slave_id() and cmd_db_read_aux_data() so that the RPMh users still build when QCOM_COMMAND_DB is disabled. The stubs return CMD_DB_HW_INVALID and an error pointer, and cmd_db_read_addr() already returns 0. The power domain, regulator and interconnect users therefore fail to probe with an error message, which is what they already do when Command DB has no data. Signed-off-by: Balaji Selvanathan --- Changes in v10: - Newly added in v10, replaces the cmd-db.c change in v9 --- drivers/soc/qcom/Kconfig | 1 - include/soc/qcom/cmd-db.h | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index cdd9e30f43e..1799925f07a 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -20,7 +20,6 @@ config QCOM_COMMAND_DB config QCOM_RPMH bool "Qualcomm RPMh support" - depends on QCOM_COMMAND_DB help Say y here to support the Qualcomm RPMh (resource peripheral manager) if you need to control regulators on Qualcomm platforms, say y here. diff --git a/include/soc/qcom/cmd-db.h b/include/soc/qcom/cmd-db.h index 16609ac9d78..0d5693decd1 100644 --- a/include/soc/qcom/cmd-db.h +++ b/include/soc/qcom/cmd-db.h @@ -28,5 +28,12 @@ const void *cmd_db_read_aux_data(const char *resource_id, size_t *len); static inline u32 cmd_db_read_addr(const char *resource_id) { return 0; } +static inline enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id) +{ return CMD_DB_HW_INVALID; } + +static inline const void *cmd_db_read_aux_data(const char *resource_id, + size_t *len) +{ return ERR_PTR(-ENODEV); } + #endif /* CONFIG_QCOM_COMMAND_DB */ #endif /* __QCOM_COMMAND_DB_H__ */ -- 2.34.1