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 91E4A472F82 for ; Wed, 16 Sep 2026 13:29:14 +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=1789565356; cv=none; b=oa348xzEFzlsS7v+6XX7cOrgP76kQALWoQ+HsVt2JvMflNG/3hBuLDScR6aUu+WqOk0b2ls0olqr7I9LtARnVOxucYD3nC9vinQ3xSAoVPHYzXQtrWbZo7VTNv6yxQaH4WtB5kCai7Dc3Q3oNArc8wfnm8V/yyz+d/QiHyM7wkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789565356; c=relaxed/simple; bh=lZMhv/1UMsSAEOlknm0eGKyrChUwpn1CjmZ1uAtEfOM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FDQ8be4X9cZfYz6dSm6d616f9NzZwpQG3E31WXn9+3O4WR60Uu7tPTYQAWYbuesSTslKRnMirbY8TpyuNtmU/t4asUfn0+yvw8P2qC5pftQAQi0l2x+ZBwpNeEX4kwWd4z+631yLxqJ6348ENV2eYJJir0KBfvtHAQwdH3Ac3+g= 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=eUc5q1YK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=B9Lf8mKr; 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="eUc5q1YK"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="B9Lf8mKr" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68GCYlFa3124450 for ; Wed, 16 Sep 2026 13:29:13 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= iYhc4bt6SQUeiQ5/rh+oZK5hm9N3r5tHBdn4FT0eJhQ=; b=eUc5q1YK4NU0vGU1 ZeJwCXIXjrmPPyuON3aXW7INlUBQuZjq2I3umJRW0AjOsEzn4IS4ZkYq9rTEMWCO hzT/DvEEv7jxnFEjzXyJYug8x8JdV6iYe+mGETb046jx5fFDQZnSyNZspAvVOR6C mM7nhtNrb3ohXQnDU0jjs159a1bOP9IhCr0gC+IBFRNbjWaS3xsc+V2hR0HlkwVu mQliJieog3v1WJzLyIzId03mIjxYqP9mszVJH5e7IIBcE5pzMTZGpQamc91o9TLC DhS6drv7xlvuFbbZkZ6ICZzN/5GZr90oKAuVjLR5QTnrCXkGtqVL+dZwDLWoJQwD /C+JCw== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gqftuk1b2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 16 Sep 2026 13:29:13 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-8699b293a80so6182413b3a.0 for ; Wed, 16 Sep 2026 06:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789565352; x=1790170152; 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=iYhc4bt6SQUeiQ5/rh+oZK5hm9N3r5tHBdn4FT0eJhQ=; b=B9Lf8mKr8FdYq7Pl9Y1wH1ieF5UildDKD6OXpWWcxQxJG6sQ3vXtSkr5BM8krcmWsw Y1WBUwOk91yqWvv4Jqh9ATJIoB1dGAeJdzQMGCpxGVMC9TWv416e/F181Wad4Qya2NtV yR/vcYi0yn3lSLwYcSMjB4zubnqzD9gDMAMgFLuJRACNUopwD+GK85/llrdo/p71xXfo 1Vti+UFxwE9itm5tj7c8jhfNFPgT5wxqCXlQ2KphYm/sZGZS7V5qaeqBi03jFyHkL2Ou MCT5BZWoKdVYxSGCTHEl0IzJRS1Psqif7k8JUrvLQQ2ZcSWhHJ+30Tx98tHxcOdFoOIG qU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789565352; x=1790170152; 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=iYhc4bt6SQUeiQ5/rh+oZK5hm9N3r5tHBdn4FT0eJhQ=; b=hfyzkRKkSOKQ7Jg19FELPyqzXNMpCMQ9jMCuoo/uQLcpAaKbzieU5HoTihLF0CvL5D h+VOAaGxy1X9Ks/Fu3QeC3cAj2ZjRJLswK9+rSsvEo8Vnqk5ssbkkr6JS5bYznnS+peR TH08zLboV3/xBgw3/wp5k02zJ/GAWSz1WhfOwbFX9J5cDdEA5yqv/bXb0jO8wi4CqT0L vfBJtoq2lWfj2j9SZVe2ICBJTV+CBrgCH5JWRig1dbszdQjbaOU7b3q5w19EcKjnVTKy oMk4r+wQwBu7sLxsRzMLTwYZF9F9elg4OGCs3Vpyjlh6PzifeIWvyBh4PluSaZGXtZnm SD3g== X-Forwarded-Encrypted: i=1; AKwUvByypNlz3YPCyzt26RqYtugiINOYGKIipExkmYd84SubSlXW3FW6EvCiMkXiVp783DXhkUqQve6WfPZmbgg=@vger.kernel.org X-Gm-Message-State: AFuF++kvYCOgwhwZXZ/s/SBVQiQ2IQwriepK+mvcBjHF6LHTnKF8aKbT +zeRXtWUS5WM7O8YMxp13yNLK0y4hL3ya4e8QlZJ8YrEka9NJqZanD9Cwv4QtmhF4fKWGtfQKlJ 5aEYRTi5xUuu2FlJOHF3fYW14kjTpmq920FaRezWmrukfhxO8L2iTlrt3/Z/4prb9C3Q= X-Gm-Gg: AYBFou3EpIvcVb1/SM/YyMH9yewKcB8DTy+LZ/qSr19VFpCV/hgfVtMWRRZ8fjkAaDI nzJQ/2/sD6hhpoZ5SApB7U5NV/jAvkHAeMnHWFiihPbpsfbdhlQPBp6kNsFzCI0GAtUGnhFmj1H 5mBNzcn4Sg5NSByQfAPxq2V2hP+9edOHf3CSHcZIxsAlZ/t/S7gw1JbZheDBh3aGuYtYXUowDlk tWSjtpe7LXyZIcE8+5DllIWYEkoKhmwxmogMoM5Gsi7DIGAesePvsSUWe8eb7vDNyd/ctTKTeMJ TvqrUApWZFWNJyqGZ5pUpRaw0jDslIazyNqqeDpcx/P1f+tAhzHIQ8rOsXDb7b2AxdZcYrR7RKf 1qk02Eg9Nc4XpPyShwMdhEU5ZmjXmnA== X-Received: by 2002:a05:6a00:300c:b0:848:2e3c:9955 with SMTP id d2e1a72fcca58-872372c3f18mr5682846b3a.4.1789565352212; Wed, 16 Sep 2026 06:29:12 -0700 (PDT) X-Received: by 2002:a05:6a00:300c:b0:848:2e3c:9955 with SMTP id d2e1a72fcca58-872372c3f18mr5682762b3a.4.1789565351660; Wed, 16 Sep 2026 06:29:11 -0700 (PDT) Received: from [10.218.42.71] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8720172f6ebsm1257665b3a.34.2026.09.16.06.29.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Sep 2026 06:29:11 -0700 (PDT) Message-ID: Date: Wed, 16 Sep 2026 18:59:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 5/7] usb: dwc3: add xhci-reset-on-resume property for power-loss resume To: Krishna Kurapati , Thinh Nguyen Cc: Sriram Dash , Jack Pham , Shazad Hussain , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Mathias Nyman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Wesley Cheng References: <20260903153827.3463313-1-faisal.hassan@oss.qualcomm.com> <20260903153827.3463313-6-faisal.hassan@oss.qualcomm.com> Content-Language: en-US From: Faisal Hassan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE2MDE4MSBTYWx0ZWRfXxr+d+sImI7De 811r2tBp9BYpJ2im25NmCbFXXoQ95wbFqW0kT4YPV0cGBFdBclmdm7Xqpgy6er77pCqjMaNT1wL QJWKw8HJVLNbKPQQ+LHrnl2pP9UMtBoik6RoI2IV8OTN0PSYHffkko1FJ4UY6X8NItzEOc57WHr 6PuzM+CDV7tQl91oXHglSmPc7zFmys011/JXhrXtKq8gCbZt7EG1pUeUVPu9Av6F8/VaR5c6ZvV tms5/BnnOMPYeMxTRVH+/3krob5mWJXawJmTk4OI418qVdEXJ4rzx/TQINUsymO3XkS6xgw1doZ 4oezER5JoFP23ctHe5445BHUGcMUzPypa8dgl/ABMpuvVASh1SBN39e2eqM7nhffaFPPtkaDSGa +OjOrZkwadd0CogROIlsxaqv5rBLqVsQTnQTpXLwt8LpFsV4R1nIHp5pjJbYu8IHdRbr4KpMhSt LUDrNpLU/n1JgpcImiw== X-Authority-Analysis: v=2.4 cv=a5ulZkSF c=1 sm=1 tr=0 ts=6aaa99a9 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=LCT2LdTvhbkjfN9emvUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE2MDE4MSBTYWx0ZWRfX0CVuwEH+tuB/ bGbRxz09PLzNnZBFI42AFR7Zwy8mUT2f8gqytZ0eFK0eibTJH24XibUqjs+UJRDoGT4r+ErutmM 09p8KZDddcvlnZhUJNmlR+gQP5EMuXY= X-Proofpoint-GUID: KeFfawga6WvsNaXM4_Isk29dhP5V_r_T X-Proofpoint-ORIG-GUID: KeFfawga6WvsNaXM4_Isk29dhP5V_r_T 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-16_02,2026-09-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609160181 On 04-09-2026 11:39 am, Krishna Kurapati wrote: > > > On 9/3/2026 9:08 PM, Faisal Hassan wrote: >> On platforms where the USB controller loses power during system >> suspend, like SA8255P, resume triggers a Host Controller Error >> requiring full reinitialization. >> >> The xhci driver supports XHCI_RESET_ON_RESUME to handle this, >> but dwc3 previously lacked platform-specific quirk configuration. >> Add a device property "xhci-reset-on-resume" that enables this >> quirk for controllers needing complete reinitialization after >> power loss during suspend. >> >> Let dwc3 manage the quirk for the usb controller using >> software properties. >> >> Co-developed-by: Sriram Dash >> Signed-off-by: Sriram Dash >> Signed-off-by: Faisal Hassan >> --- >>   drivers/usb/dwc3/core.c | 4 ++++ >>   drivers/usb/dwc3/core.h | 5 +++++ >>   drivers/usb/dwc3/host.c | 5 ++++- >>   3 files changed, 13 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >> index fd5c2cd36c59..eb6ffd5148a7 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -1712,6 +1712,10 @@ static void >> dwc3_get_software_properties(struct dwc3 *dwc, >>                              &gsbuscfg0_reqinfo); >>           if (!ret) >>               dwc->gsbuscfg0_reqinfo = gsbuscfg0_reqinfo; >> + >> +        if (!dwc->xhci_reset_on_resume && >> +            device_property_read_bool(tmpdev, "xhci-reset-on-resume")) >> +            dwc->xhci_reset_on_resume = true; >>       } > > xHCI plat does look for properties in xhci device node as well as the > ones above it in the parent chain: > > " >     /* Iterate over all parent nodes for finding quirks */ >     for (tmpdev = &pdev->dev; tmpdev; tmpdev = tmpdev->parent) { > " > > So adding device_add_software_node in dwc3_qcom must be sufficient. > > Regards, > Krishna, Good catch, you're right. Since xhci-plat already walks the parent chain, there's no need to round-trip this through dwc3 core. I'm dropping this patch and attaching the software node on dwc3-qcom's own device instead, in the "Support broken suspend for SA8255P" patch later in the series. Thanks, Faisal