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 ED7DC62809 for ; Tue, 1 Sep 2026 13:16:31 +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=1788268593; cv=none; b=KxvOL/8yupH0wCkN1aUm/zD8j96LcluwkkR9liYA1NFDNIuG7CDH6pPqTcLi9MOzECidw3/6NQPUvkRSLWtYWGFhFriJ2ElxXKflIsmm5kMZptGwj40gro3GVAMwahdF5iLUU1RLhM5qZ+WoyWQH4QwRW7u4nUA1CcmNd4gbhzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788268593; c=relaxed/simple; bh=LQ12SJUBaxMvNbSyq/WSxG7N0fuhvkTI6OyQzsXKTSg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iKCgcMGHiYc5OV1KM110yjMfu2FlQGEDE7muRf5STTJYrI7v9s7/OvmoxihL4m3eyfPrsPDMkag0QV4nMWGzRUXCEhTz/KxXQPzhX7CSiea9EkORpGovgw92FdIUrUtON4Bxg6IrHod/1UPjqYDKG4pp0jVv4kgGzyCe8xSbjI0= 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=U0w6tk3i; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Rh4OycyC; 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="U0w6tk3i"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Rh4OycyC" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 681AJbL52141610 for ; Tue, 1 Sep 2026 13:16:30 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= cy90vL1GBodthWnfvenYboXQveUCRwT7k88OCAWjnQc=; b=U0w6tk3id0rNfBAS 8apj5ENqwbMeBUyf4VZWyDAc8MwLV7WyLghvqZDfjadRanUylve3o1GWTWBzUxui YUa2GLCvsaj5X/Z0sKhpO5MPT4isuKQ6JM/f0Cl1sey772Det9Pv7YqjzFJE5mv9 qPUtd6NpO3knt4liK+GZe2XTXKbSRSX80OOGXfZf114WmWR+q7sPwDKq3iPLZ5xt YxyrFLcdi0SO1zLiUWqfpKvEqS4ox18mvjOREDWr0xaK3l16LlTHit/v7M5tm4Mr GiRvp349WdlMN5pyrZNAFchut8V3C7C9FMtPSMzyk11nwSBocjKhs+bhIGDco5vN FqZ0Lw== Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gdp8ftdyk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Sep 2026 13:16:30 +0000 (GMT) Received: by mail-vk1-f200.google.com with SMTP id 71dfb90a1353d-5bf9ff71075so143180e0c.0 for ; Tue, 01 Sep 2026 06:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788268590; x=1788873390; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cy90vL1GBodthWnfvenYboXQveUCRwT7k88OCAWjnQc=; b=Rh4OycyCfzz3RZt1reUVS6F/tKWjdwjU12UvOtTAkIlsskJYpMmkAsoUXz82Xm0i59 DJx6LjlNdUIBUa+/7YBdrDEINg56ExncueVGy0qwoAVRqEDjEGKVO35GAtTOZwDjh52q lvdtPSECscT5RQXPDyZC4oeWmQX9+NjfgvwiR/RLvwzRtH8ozRDjbcOwGc3SL4kzz6jp dkunNu5K3uZ/eZr0/hpJP7ZJKBlx6N9S+TVplZiu+apQplXlZ9FM+dyDYQWvJRqnlYHY 7VePrAE/6bzrnN0CeJhzcmtYH+Ta2PBGa2vmInQaT4yphWnEk6ORt8OOoUHL7F0eDgGf jIgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788268590; x=1788873390; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=cy90vL1GBodthWnfvenYboXQveUCRwT7k88OCAWjnQc=; b=nB5drznCG9LHVQaBAFYqSqUdQJjsLukcR9s8J2pxucsAQO4ORuXDbSGFQk1kjUFFEV bw3A+V9BQlR/MCJ7LRWQ2PBoLksHbhdBQXdKs3IK1jQNILR+ctbNZ+kRjoWHvvbg6FKa roISDrKaNcJwZiU3SZnTxX8mxMCjYNes76bCFhT0RYfM5wkqRi/NkfA/86sWt8QGiShA LsvWUNny/I9Kam15fEhq66pe2CpypQabnVM5Ndp8nxz6hj1v8y97Tbqn0FLg3NJjZKSy iyr0kTMRL5zxNNXy/WB2/OK+zJ7QFVA7DQnWDhLPg1t5lMcLiLQHI4fG5xlSiMfwzOsG Rj4w== X-Forwarded-Encrypted: i=1; AHgh+RpOb4sEG5Dp/Qrfy5m7/SVPbR8X2RgbhBTeviKkiUSZF34NCTo/thPu2cQb3U7NShkuVi/FLMQcyaGV@vger.kernel.org X-Gm-Message-State: AFuF++nRzjx+uY0KXujn+ZdaX1H88bJBHZZ/ygMd7IV9mHjomh+V/agW BskPEyNHm4Zn1Vcm/c/XzOY/A5Hnba74GjnrJaSv5L5th9IbGfCYIPAaOTwOywIhX/SI6Nj0zJp UX6cJZ5O9NDejgIcPQPuP+sSzguqNuwAGqAJBPRQtvVh0BKnEeaPk3o7iDyEYkQbP X-Gm-Gg: AR+sD10mokqt8M6HaKJz3VxUHE91aWd8Y4Awx0BP7gvDx7vK/obiNjrvrfcBg4DMXKf 7AQ83SCK5d1TXQ7hjr8WibdI0XNWOYyYO4Fxsz4cPLquz2x34ear5lRBKhnDALOB6XHnW9P6MXh CuVtd+kUeRKE6py2/+frvwjoKeGDIDyAPAkXX5ztFtOGCvnpZd43ngrfDMGe8m2/SmWUvs1Fjn0 +PYs/ia7TTPwk+KMfzbOWNgbvDD+8uf6kAbobgnYsjDS4vfs3YMEOR4uKyQ809Y6MVQZ+SF80Jv 1hWpBNw9WyhsuP+3dpnEb9N34bf2zlTAfq2f7FS9tWZvApwZf+o3OB12rzE7b3IUtG+nUImqyF9 BmcOJ+e3h8v03cEGKP4asoQ== X-Received: by 2002:a05:6122:29ca:b0:5c5:b075:40a with SMTP id 71dfb90a1353d-5c68140e41fmr4560783e0c.2.1788268589997; Tue, 01 Sep 2026 06:16:29 -0700 (PDT) X-Received: by 2002:a05:6122:29ca:b0:5c5:b075:40a with SMTP id 71dfb90a1353d-5c68140e41fmr4560669e0c.2.1788268584589; Tue, 01 Sep 2026 06:16:24 -0700 (PDT) Received: from [192.168.202.12] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3a305386390sm22564121fa.5.2026.09.01.06.16.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Sep 2026 06:16:23 -0700 (PDT) Message-ID: Date: Tue, 1 Sep 2026 15:16:20 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 05/12] phy: qualcomm: qcom-uniphy-pcie-usb3-28lp: Use bulk reset_control API To: george.moussalem@outlook.com, Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Praveenkumar I , Philipp Zabel , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Varadarajan Narayanan , Nitheesh Sekar , Wesley Cheng , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org References: <20260825-ipq5018-usb3-v3-0-39be0955a6aa@outlook.com> <20260825-ipq5018-usb3-v3-5-39be0955a6aa@outlook.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260825-ipq5018-usb3-v3-5-39be0955a6aa@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: h2cW4LfRX-DZO7bSm7FAV93zlwtHEeyT X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAxMDExNyBTYWx0ZWRfX23nVLGFCnhAA 0n7dsIExTUI5l18Hx2RS0aN73m+msipMvIAUGQu7asBIr2FFRmh39jO4zLpUMNBrIQbhzVu6t+w WeepSgth1pwp0nyrKcM3pEeuLMZ2L58= X-Proofpoint-ORIG-GUID: h2cW4LfRX-DZO7bSm7FAV93zlwtHEeyT X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAxMDExNyBTYWx0ZWRfXxL1nyqQ/TLy+ /h4vPD55EIWYym/p+UcxkR71pRKulU2UUs+XWGgCLltv1LkrBIGybEQFa6UecyJHHJTDb6voRn1 hJ5wUvvJD6xcn9ZqErfM8VaNpmXrKBVlCkZkG3vRVWuVZtlASOgwaclse7uyy/+8j5KgZU7i3PW gflQWn/xd4zx2SdgYmQA0wRnGoJMv9W1MlRB7GxadGX82TOe3UTr1dE2BB72MdsGbvOH9erJaaO TacmrkDXJaJtbsiv5ktVqUQorVPaaVFuv/4ykaJyK9RF0PzKMwwolzsluM+0gFfOim2/I1nMoxJ Bpt9mWoqXyZhHl9joh53fx3+Q1X8UXlMiJ+Zk5bWtUs47vCryln0YO6t+M1Ie5XsXogut20TxHW 8TQAmX2BdEeqK9NHbignNetHqCXLi43obV6692FE9ray4JhOrm057y8d21kLwBUr5PdJFO6rIed 63ppDjOmMbf5BFJB4qA== X-Authority-Analysis: v=2.4 cv=BPWDalQG c=1 sm=1 tr=0 ts=6a96d02e cx=c_pps a=wuOIiItHwq1biOnFUQQHKA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=UqCG9HQmAAAA:8 a=r7ctpyJW7PmjMhvLdxUA:9 a=QEXdDO2ut3YA:10 a=XD7yVLdPMpWraOa8Un9W:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-01_03,2026-08-31_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609010117 On 8/25/26 2:37 PM, George Moussalem via B4 Relay wrote: > From: George Moussalem > > Switch to using bulk reset_control functions to prepare the driver for > managing multiple resets, acquiring reset controls by name, and > uniformly storing resets in the private data structure to enable support > for future combo PHY functionality requiring multiple resets. > > Signed-off-by: George Moussalem > --- [...] > - phy->resets = devm_reset_control_array_get_exclusive(phy->dev); > - if (IS_ERR(phy->resets)) > - return PTR_ERR(phy->resets); > + count = of_count_phandle_with_args(dev->of_node, "resets", "#reset-cells"); > + if (count < 0) > + return count; > + > + phy->resets = devm_kcalloc(dev, count, sizeof(*phy->resets), GFP_KERNEL); > + if (!phy->resets) > + return -ENOMEM; > + > + for (i = 0; i < count; i++) { > + phy->resets[i].rstc = devm_reset_control_get_exclusive_by_index(dev, i); > + if (IS_ERR(phy->resets[i].rstc)) > + return PTR_ERR(phy->resets[i].rstc); > + } reset_control_bulk_get_exclusive() Konrad