From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE1D439C635 for ; Wed, 13 May 2026 17:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778692633; cv=none; b=goHgMSs6LCsACWWbUXWm4JyKSIC9Jk37G35oXKlyXJe60tczqG5vtCP8E/Ia2r4MggTHJQCXQunwnBeGuWZcqPOpDN2CFLByptw769WhZHr6I4edwCiSm7coX7n6F3wAflAA2XY8ILwG0aglq1MHSrYNRxM1TGmZQcREl8UuEuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778692633; c=relaxed/simple; bh=O7ZY1AdiQuRGIWpyaBs7jFB0+sTG7KoUgEQpHyRFuKM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WLEywOT5eI09Pow2Pg4ftMnbA3RBcuyEZPlq6rCHAX+BuXdZD0M95/LjzpjTepwgQEIh8ue/qo0g+kctDfOJwCC1al4YrIjxLbt/h25BPv8bNLAm6FnyCVXbUcRdFeG0ESTkaayBSfaFOEvEow6w8OscqLsaOC68kaHHABA4c4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=a/Ber0gZ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aTGc/y5R; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="a/Ber0gZ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aTGc/y5R" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64DEowc43474679 for ; Wed, 13 May 2026 17:17:06 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= mphgcl1+U0NC2VWtzWc6ce3S3u0PqqqNtDbXw6C9h80=; b=a/Ber0gZAjGFbcyA DcLnT3cvWA0zHeuNw4CkdOV9sEaTHQ/CC5QhPsSiBi0HD/gY+hUW42xDhJmRWHr6 DK7/4Qt+fclHFLvyZXWSuA23qblGmuo8QNq7M0vhEkaF9NZCBHKAKdreKyf4tpep 9YZEw+OxxdKy8jFsPUIQhmdBlueZ1UXJCZ+aL8DByt4dO3SgGrp51ypjJfQS9qiy iGGcIlr2wWoqGp3TnDLw/f5mpt5kgXvR76/zbPTo63RfRtrPH1v3fPErVKt07jtH seb8k8GGNF4ttDv15ylzVPG/Yt6I1fkP/N147zI5Wl7OIHVQL/vxs111nUqC3pv9 Y8hhEg== Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e4p41a0qe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 13 May 2026 17:17:05 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-2ee5b73c5f2so14226732eec.0 for ; Wed, 13 May 2026 10:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778692625; x=1779297425; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=mphgcl1+U0NC2VWtzWc6ce3S3u0PqqqNtDbXw6C9h80=; b=aTGc/y5RfbNYvSnddW4ZatQyEy/Z2ZfzC6xyzHkm9VFfOUsi6tdubGOpoICmSz06TA py8zTZuMdlVtwCyFF1JW9V38Gy9pd9fa0ofR8FhIYzg/Y8nHkuyVu/iAQ0B7b+0SkJac DrCQzUL/KX4aFUK/xF3VjdUFbh7LGEPHsEkQuKTzpaAvZOGqFpFjYkS99mG5HoMnjtSu dI9FVrhxQVpw5PBqJf+fwL9zSfYahLjY0K3OAKMTquEt5i9EkoS9S/KMkQ6cAhAhfYEK YIU+RpHZltw348Tj4jadh2RKdQ3XaWsRaelvKbt1hqIk92lOewjWfC6uvV6EQrJV7vBr ZPRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778692625; x=1779297425; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=mphgcl1+U0NC2VWtzWc6ce3S3u0PqqqNtDbXw6C9h80=; b=Z6H2Ef+IAwgcmcaEh4mrJ0JdYepk+awB2g57Lg2uSo3Sy2p87OmR9ETvLqAO43ivXG m+J6KovJfFfWoeTsPj924C0GSo39+KCxtW9/Wvw1Hhm3oMR1fJeI9A+t2Kf4pExMuThm 39v8UsCvkfDerkUGujBKubKQ7XDAcIo60IO3MVRyv9gGMTC54eeakfYhgjyLf9QM0lQF pbGHkVZObRjpwH58BUtGWjODNrm9Pspqvsa7WMSWbukIsXzNGY39ezqguGc0DGTY+MkX P0nqW6tnWW/wPZAQICwLaBVjBsGt9KZADNBDfYIyUVgOVZbElEKP4O9ri4WBOCKtx65e 08kA== X-Forwarded-Encrypted: i=1; AFNElJ//S0/jz1WhA1GubF1k2drTIGP5YoJJA64xseok3vCzjQDg3Y7X7qqWT4lBHqBgifjxxgj3clrkIl6srXk=@vger.kernel.org X-Gm-Message-State: AOJu0YxjdvRC7o2KHYitRp+wbbVckKXg/aFOmfBiJ88eIOHljPo7WQQl Ay7tbRbmpHLV/sNWk8rd4C0QP8zdKgxgcAJPDW70r6UEeUVkIoYTr9ehqshhoqnU5zGgFUR0SZi O9HvKSp3rnDbVgUn+3ZJuteSv9739pcOTVCMNVs+otoSuXcFFtzsPcM84sdmG+whILdM= X-Gm-Gg: Acq92OFmILOaAc+zKlK6HKKYRUb1avjSDTjsdcPUUQkMBRiarw4FfCSXG4uimcfl9V7 07pu/3Jcfq5QaGEW0z64KPgcv/8fdldXyESL3CMobzfg6QfLOQqAxGmGGSRxAzWbpH1+aO4hM8T aiF5vDWBdtP4XI9JVqKbe5FxHxbrHL8LZ/x0uvwp8CiFfM9Ro9+pwqT+WvhXZDZe6sWrIntp8sb ZIPzpo22dOzs8FF4X3fmIweHyadmOBSnUAtmMh/KP+Pb275y82Eu/xqvx9Px4i64keUB93cVTqx +pgp91LzyJfuT5Kb74fUdJwH8jvWUhRvCy5PdrKr1YcQxC0fbZXl6zOHL6wyWz9qOsZVRbw/BIn 9S4B4Bi9Wdg0vtB7R/GKSPABhQBa9FOe7FxG+8QLz+60HBD4cxAqob3DZ4I4NJ9+RaBwgzRwo1L vwNSSLiw== X-Received: by 2002:a05:7300:d706:b0:2f1:6252:f8ef with SMTP id 5a478bee46e88-30116f8cbdfmr2657883eec.1.1778692624713; Wed, 13 May 2026 10:17:04 -0700 (PDT) X-Received: by 2002:a05:7300:d706:b0:2f1:6252:f8ef with SMTP id 5a478bee46e88-30116f8cbdfmr2657833eec.1.1778692624174; Wed, 13 May 2026 10:17:04 -0700 (PDT) Received: from hu-aletran-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2f888d3af4esm23075939eec.25.2026.05.13.10.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 10:17:03 -0700 (PDT) From: Alex Tran Date: Wed, 13 May 2026 10:16:57 -0700 Subject: [PATCH v2 4/5] reset: reset-scmi: Log number of reset domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260513-scmi-client-probe-log-v2-4-36607e9dd540@oss.qualcomm.com> References: <20260513-scmi-client-probe-log-v2-0-36607e9dd540@oss.qualcomm.com> In-Reply-To: <20260513-scmi-client-probe-log-v2-0-36607e9dd540@oss.qualcomm.com> To: Jyoti Bhayana , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Sudeep Holla , Cristian Marussi , Linus Walleij , "Rafael J. Wysocki" , Philipp Zabel , Viresh Kumar , Guenter Roeck Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, Alex Tran X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778692619; l=1390; i=alex.tran@oss.qualcomm.com; h=from:subject:message-id; bh=O7ZY1AdiQuRGIWpyaBs7jFB0+sTG7KoUgEQpHyRFuKM=; b=jxL4jV0oBZIyrWaKzHWraW6cLXO/KQj3WbcU2TE/4/0plegLFbNVGLvl0thcoqS0D2Btudgxl UpfJ6sQLaoJDGpSTD2IgN9J/pGAioz38x5frXs1rnPofpkMniCZtxas X-Developer-Key: i=alex.tran@oss.qualcomm.com; a=ed25519; pk=vKab/gw1fXij5UviWoglv+ho+H/oOiTHyETCLfayPE0= X-Authority-Analysis: v=2.4 cv=df+wG3Xe c=1 sm=1 tr=0 ts=6a04b211 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=wud5Z5ZUIjVBoUaN5zEA:9 a=QEXdDO2ut3YA:10 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDE3NCBTYWx0ZWRfX3oemycVUug7a tmx4CfH+KJyWHDmeKbleeomzAuXoDMyE4qYuTJViSCsdIwzscxTfpbJnE/DandH9OZe8qXD5avI GRbbBlLsPdPG1Oz/BzgTwGskb+o8IZG85qOppYfVbEupRPbKnkrM5BemgW5tweYgus+cbdH2D1U yWtLUenJqgYrYs0JWCUHk9K0JCofbyGLt8+jUEmBBbco9FLVcBzQhnjKXFbjwRREeMDJd6bQblA 9n8cEAxsoHr3FTbE+bFzjeSQuZreW1rEm1FembJXcxSMNIRbt9Nb8y2Hmn8r9gGv7DeUaxPjBB3 38aIXssSBOkjZi9WMHzRqXGZ2Bk5TUYf1KYPdjdubaDevmPuKUEOnj612odwGNq+m1Wk6dXAkO9 u1e3r1Qt46K+BW+zOnd0WNxlgJqIb9v6vFDywXO0evAfYF7ObUYL3cYy3Qnupqe53BcbQaA9z6z jYgP6v4T66MHP4S7Beg== X-Proofpoint-GUID: NNFKxf7xndxHI43jwkorFphiC_sjg8zN X-Proofpoint-ORIG-GUID: NNFKxf7xndxHI43jwkorFphiC_sjg8zN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-13_01,2026-05-13_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605130174 The SCMI reset driver does not currently report how many reset domains were discovered from firmware during probe. This makes it harder to confirm the firmware reset resources during debugging. Log the reset domain count after a successful probe, aligning the driver with the existing SCMI client driver logging pattern. Signed-off-by: Alex Tran --- drivers/reset/reset-scmi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index 4335811e0cfa..114470c12931 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -93,6 +93,7 @@ static int scmi_reset_probe(struct scmi_device *sdev) struct device_node *np = dev->of_node; const struct scmi_handle *handle = sdev->handle; struct scmi_protocol_handle *ph; + int ret; if (!handle) return -ENODEV; @@ -111,7 +112,12 @@ static int scmi_reset_probe(struct scmi_device *sdev) data->rcdev.nr_resets = reset_ops->num_domains_get(ph); data->ph = ph; - return devm_reset_controller_register(dev, &data->rcdev); + ret = devm_reset_controller_register(dev, &data->rcdev); + if (ret) + return ret; + + dev_dbg(dev, "Initialized %d reset domains\n", data->rcdev.nr_resets); + return 0; } static const struct scmi_device_id scmi_id_table[] = { -- 2.43.0