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 1B9B04E8DEC for ; Thu, 3 Sep 2026 15:38:58 +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=1788449941; cv=none; b=dZltb2+k4vhUk+sUmzpSnApdkSa8qUmPINB1kxAtkgmIk75mleHrzDbJgoTdMfPbW4LCry5D3mvzlYb2Im+7boy9ATNXzHZWy7Y3BSKQPOXYR+D6DBRFqXodpczIt1vy3+TPAakrIxyjza0yppKBL/TBfIFbBK+dFYgxDFlhEdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788449941; c=relaxed/simple; bh=AjrT+2a1V/dFdE8w4G6xJN78eEUrW3q4ENCnkqhARGk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C4kDiRqzwfonl9nezw/k4/GY6+pF2lSym9zqIhNnM/+FDfldMkW2JRCeHGo055PhB8bQxEHqQF0MmaP2DOg5EDcn43MOjODYYSWHf44tm06tKFHuYQZA8GZBY1sWmUMqfENvP57RzB/E6n7DNI7uoElxOu4wb5EIJ5WujT1bRns= 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=CHQoWt93; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JzKEfGf0; 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="CHQoWt93"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JzKEfGf0" 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 683DAI8e433392 for ; Thu, 3 Sep 2026 15:38:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=h4izH85dY8s 43dZbZGemk1SbK5CBZ3ueMd7xLjwebE4=; b=CHQoWt93bSf5i1CuMopCg+AtkSZ np0nNaMAjZq9Lhyf01UtWo+mkipkhjbvnO+Yi3vcbncBI65hCWZFIBQR0cuPtCN1 L+zSChXLIx92RG45YnSRq5Qaj11YMMj0bkvQeJzN4ERaeIiIczrEbOb6OrbyAJIX hFDWYHQwtyCK7DZVY5haz/Mw3Go9ePnkYG71zSfb+pLPQKxmqYXgfn6zo5QbORsg YykpkywNktjDXsX3LUPXbU1uXsMe/b1pBFOniruSsGpAvIjLJe8kTkESQe+sjlz5 mi/gPbU4eqMp0Wd0FmRcSRuCno79XaIS5umo+P9Oh7yxtofDTfAnAwRz3wg== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gf82k93dx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Sep 2026 15:38:57 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-85722fc5a21so3632884b3a.2 for ; Thu, 03 Sep 2026 08:38:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788449937; x=1789054737; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=h4izH85dY8s43dZbZGemk1SbK5CBZ3ueMd7xLjwebE4=; b=JzKEfGf0nZp2b7peAWg39guA3qCaASuQictTJ4OgeD0yT73Sv4BnKY2a/MhO07pYPI 5PwWaql7gx1LBQm3bDdUhgUuEvdaxSao1SSmN95qFjCnlwXSgBFUUSccj6iyRLsCH4qy 8UV3sT9Rm3lOnBDYyf5vycmeNlls8O1NHqS3xjNap2oxWvG2uc6S2S9llSbe3o/IoKPe nlUi/RwD1F5Q35TiGcGOtqPkCuoYE8re6iwIckpC9ZgmmyPW/iTbi8fIb9LFPnFrM0Xd BoysGxm/uaF9LeH23D0/+Y68eqARGR5KU4FqZq0ZppMHts/e+jmYu6F1cY2tq29cBD05 hpdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788449937; x=1789054737; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=h4izH85dY8s43dZbZGemk1SbK5CBZ3ueMd7xLjwebE4=; b=DlnfZCbo3kow/8MRLtd6svDDW2N7Zp77+ridh2XVlO6sUGnL1cGW/VJt28/wqazf8r eTcBfa64BHJxUDd3ht38DyRbF6EfUTyyxUiCXULVXaicxQJOHIf1hJGbD8yoOBjA0la3 oH/aYzHFDJX7kLD59q+aapSGUhHVuiNFRceHngUj45UwQwiqledTqNwimHgAQYnVkNdL fTOfdpu6s629N9B1dt4cVPva97mlELXYltQZoE5V405aaOIS8GiRANu8g1+kXnyconqE XgF03RPnRx7X5R7/U9XyAdV1ebMsdga94QK1Q45NRbplBhjRRC1G+nIqbQw/Fat3m/z0 OXNg== X-Forwarded-Encrypted: i=1; AKwUvBy13of+Pnf3ADmaT3h/Bj5vR7dcK6iD96uzKRf2IPPWx4UMowZBkNMcwOTCK40JeNhjHLekaBc4LgxG@vger.kernel.org X-Gm-Message-State: AFuF++lBpswQGEK3RSfMIoH8jdW3AVH/0CgkFUbKTa6iMwilq3V9+++V BPp0U3pDU4VV2jGr8AayKe2Ff8heDQRl2k4s5L/S/1kgWgmA/mje5AgJPCHPWF79YdjQDLMIMUg oHN31PeTRzIRXIdLOXJG1V41iZYhu9AIi1BUR3WyAPv/pc7FIXtzuoPgShh8T0aLa X-Gm-Gg: AYBFou355a4sOIZj1I1Pqn1TyboABotsWBI8+vgQkdtMZHiiWzdc9m2ALbwE0xUsG0j cT58DxYtGDbmgdGsuWnqKl/vKwoJGeOa9g6sjijZkJCraaFLuEcp7uIJX8KIed/d2VpsxfO0rWY 4zFTd0ue0Y4fYWRhbQ9+3e8MRv92LusUAf2zB2/ZUT14Fj3H3TNEKV3osweXt2vZEq3so32afi6 227Vc4SGmguJQw+JvVYLB5YDtBd5OwLHnlaLtCFRl9OxNMaG+XfKFyXjckpCG7SohgJSucXcial WCv+FYmugXMfnX0/LxAYYkSWUX3jcvBBXHipmca3AXqWXrBOIhxMB2hrrI/Y5rCiihzJiL1ArlI XOAl7vRvYBk9wpIm4s6bEsSCVyj9rSc3m X-Received: by 2002:a05:6a00:27a4:b0:855:eb7b:5804 with SMTP id d2e1a72fcca58-85ed5ccc11fmr18834194b3a.4.1788449936535; Thu, 03 Sep 2026 08:38:56 -0700 (PDT) X-Received: by 2002:a05:6a00:27a4:b0:855:eb7b:5804 with SMTP id d2e1a72fcca58-85ed5ccc11fmr18834103b3a.4.1788449935994; Thu, 03 Sep 2026 08:38:55 -0700 (PDT) Received: from hu-faisalh-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-86153027951sm81069b3a.40.2026.09.03.08.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 08:38:55 -0700 (PDT) From: Faisal Hassan To: Thinh Nguyen , Greg Kroah-Hartman , Mathias Nyman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Wesley Cheng Cc: Sriram Dash , Jack Pham , Krishna Kurapati , Shazad Hussain , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] usb: host: xhci-plat: Support XHCI_RESET_ON_RESUME via device property Date: Thu, 3 Sep 2026 21:08:24 +0530 Message-Id: <20260903153827.3463313-5-faisal.hassan@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260903153827.3463313-1-faisal.hassan@oss.qualcomm.com> References: <20260903153827.3463313-1-faisal.hassan@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: ZXQC3myQvRuK456p-o_epburFTxaUMvO X-Proofpoint-ORIG-GUID: ZXQC3myQvRuK456p-o_epburFTxaUMvO X-Authority-Analysis: v=2.4 cv=OuJ/DS/t c=1 sm=1 tr=0 ts=6a999491 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=A6Vjp3zFaTA1NjdqV2IA:9 a=IoOABgeZipijB_acs4fv:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAzMDEzNiBTYWx0ZWRfX/0zqfdkAmYCE BJ9J4EqPfjNI1YGZN5m/ALBH07GO1/kg6Fn3fztgdza6HkFePPNrD8zso8OykuDKfqYnrubRrDW gB3bsFtuLWZQpTQhdJTkatlIjVeXfzM1AMoZmt4uPpXsEaLKQMWUFZ28ZOCbabWdOGlYY6Zq/VA epdmGTpoedsGbIM8+WuOLAPr0AU7B/U7DD+QAKZOdipjEB4KUXxYTtnMDiY5aOL1yv8eQYk7Up3 9qtU1TBegu3Gr6T5UCPIIqss88Rt8EkiUWtYuwteCY8+BQN9SdQgdsqEWnTKNzgsGEE8M3DLXb+ j2x4eSZ2eVIAIvYVYYZZE9VuS5KLIRBKymNIZ8IuCWZR5rYZJbbijONKlwbAQNEL3eYPXaXURnV rFqq3yBCr2krHBOnwTDaJnSaSC/8k+sHC96h0wCv7v71iqN2xPybgShrhQ0JfDpGSnVDXFQD7lT /pMPYMw0Az6Oiuu//Tg== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAzMDEzNiBTYWx0ZWRfX/Rf2HNTCUDIa Ut+fXRma5Cr44dfz9YlUbNwkBhq/G9rKbv9pTYL+Vqwo53v2APZtD9oLZ4fQAt6AF7rOIca2qdX inDTBPeqnvyvP96eTDcgfeMWOdZZwVE= 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-03_04,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 bulkscore=0 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-2609030136 When the USB controller loses power during PM suspend (as occurs on targets like SA8255P that fully power off the controller), it generates a Host Controller Error (HCE) on resume requiring full reinitialization. This is handled by the XHCI_RESET_ON_RESUME quirk (introduced upstream in 8b328f8002bc). Read the "xhci-reset-on-resume-quirk" device property to set XHCI_RESET_ON_RESUME. This allows parent drivers (e.g., dwc3) to enable the quirk via software nodes. Co-developed-by: Sriram Dash Signed-off-by: Sriram Dash Signed-off-by: Faisal Hassan --- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 074d9c731639..7df2947d13dc 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -277,6 +277,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s if (device_property_read_bool(tmpdev, "xhci-skip-phy-init-quirk")) xhci->quirks |= XHCI_SKIP_PHY_INIT; + if (device_property_read_bool(tmpdev, "xhci-reset-on-resume-quirk")) + xhci->quirks |= XHCI_RESET_ON_RESUME; + device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); device_property_read_u16(tmpdev, "num-hc-interrupters", -- 2.34.1