From nobody Fri Dec 19 03:14:23 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61395C5AD4C for ; Mon, 20 Nov 2023 05:58:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232008AbjKTF6n (ORCPT ); Mon, 20 Nov 2023 00:58:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbjKTF6e (ORCPT ); Mon, 20 Nov 2023 00:58:34 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC229139; Sun, 19 Nov 2023 21:58:29 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AK5AYUW024867; Mon, 20 Nov 2023 05:58:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=nPz7PGc1k5AwEQJOQGJ+pvvjClsR4Vwtp2c3fi5rjcg=; b=BlaMwdTZTXIVgq3cbDAZUVzHQUtpnfUXBYYwhmfgph38Gjq7oMkoSSaTDo906FmyjrwM 0aIO4+5I36zgKUgz020cGGU3A7W7/zkF5Disr0RZI9+9Z2qV+pW/w/tkJsOya655Dick N5PEBK9qPfwz1KjKoDwI9AMPymIgy1omydCI/omy6kZIl9TXrfv8Rqor1gy6c8K3YDe3 XeE+4OnjuqDn01rL7uUnjM1OtWuPHsEJhQKSv/CYHFIOlRtglRfmbJW6ezM6wj6d9mB3 etQRu9aCwz0S7GNLNyF0Vvi37ghA+z7YqlLybMrRxqieAPwvTzTwOgHnD801QfrSPQHN oA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uejmuu8nx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 05:58:24 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AK5wNC1004528 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 05:58:23 GMT Received: from hu-prashk-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sun, 19 Nov 2023 21:58:20 -0800 From: Prashanth K To: , Thinh Nguyen , "Greg Kroah-Hartman" CC: Mathias Nyman , Tejas Joglekar , , , Prashanth K Subject: [PATCH v2 2/2] dt-bindings: usb: snps,dwc3: Add 'xhci-sg-trb-cache-size-quirk' Date: Mon, 20 Nov 2023 11:28:03 +0530 Message-ID: <20231120055803.224634-3-quic_prashk@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231120055803.224634-1-quic_prashk@quicinc.com> References: <20231120055803.224634-1-quic_prashk@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: CBXN5eV2pTkjtgRJxFD7or0zSwOvBmpt X-Proofpoint-ORIG-GUID: CBXN5eV2pTkjtgRJxFD7or0zSwOvBmpt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-20_03,2023-11-17_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=483 impostorscore=0 priorityscore=1501 clxscore=1015 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311200036 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a new 'xhci-sg-trb-cache-size-quirk' DT quirk to dwc3 core for preventing xhci hang issue while using SG buffers. Cc: # 5.11 Fixes: bac1ec551434 ("usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK= ") Signed-off-by: Prashanth K --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documen= tation/devicetree/bindings/usb/snps,dwc3.yaml index ee5af4b381b1..768fdb5b1f05 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -459,6 +459,13 @@ properties: description: Enable USB remote wakeup. =20 + xhci-sg-trb-cache-size-quirk: + description: + When set, fixes the SNPS xHC hang issue when the data is scattered a= cross + small buffers which does not make at least MPS size for given contro= ller + TRB cache size. + type: boolean + unevaluatedProperties: false =20 required: --=20 2.25.1