From patchwork Mon Nov 20 05:58:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prashanth K X-Patchwork-Id: 16774 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp2000532vqn; Sun, 19 Nov 2023 21:58:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9bn3ru9YS8Qy5gSI1es0QrZZCHqLcW3dVe8KYfgKYDeL6yQdHoMIzZOMVvXMKwkGjoH8X X-Received: by 2002:a05:6a20:a11b:b0:185:a3d6:7bda with SMTP id q27-20020a056a20a11b00b00185a3d67bdamr4870620pzk.39.1700459918419; Sun, 19 Nov 2023 21:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700459918; cv=none; d=google.com; s=arc-20160816; b=XG+cHiIOkllJJguJNRmGeWs0BWKPmMX8tfiuIw4H56rwNMrJF5s52UzXvFfrEsMSTs JqDGDnO+/C+lI4apvGZESrcqv+coZJIog3lVsR1HkAv/CAka+cFznkPDfuAs/VHVyTIt 4m0DopY9NpGOwf6INl1TVBe8b1ChFItL3b4d8p3pGenHMPh+ghcec5ecg+Qkdr2mpDZm usi/zTRvLRrxCU+KvddhAZFoQJ3NkkdhcBFdbDGekpUr9iAQ2dP9KYkrcwJHs+Eu4cF+ //7+2HKdrtdwTwdsyllD2LJk7FJBxI4gdONI3YD2IP5PwhKBdtNkXMBeUpCEjml+X0FZ Y+9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=12XFNR9I7qJcE+51vDot/mqJhDOeqI3VsWlt7HEydsg=; fh=Hv4HKCbRivDk4/75VrgkjLv7mwh0AD3ncrNwtpzgDfg=; b=Dt9RvuVYFnvlYKbPa0SHxEIsNqWHwoQDcUbr1dqh4yNIHBBvP4xZmZtEvL+Mp32Au3 +Ljp8688F9a0ZEUA9X2isXmRBYAxOqm6CSq1U0WOpFflVNlKDQfq6a8luEcrhwHwYr7D De8AbdVgIoXAfzkK4DWGE92lW24ouo5EJUZbRgjmv30wEigrEhgWVsxIAQCOZhx2Dq3V cX3eU6uYnczPSAtNR6S4qiM8sTFPII8KQ7BgszmmYAXqnkd+C62DG/qV1A7txQ36Mym0 yy9WaiIu3z3IP9iPXAB8/jBPx6VjYDklHapzE9q+koh1W5do9YQy/xG9Ab3iQduApB+M xi5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NqcQwMTR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h1-20020a63df41000000b005b8f61fcba5si7204679pgj.399.2023.11.19.21.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 21:58:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NqcQwMTR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 72D9A805ECC9; Sun, 19 Nov 2023 21:58:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbjKTF61 (ORCPT + 27 others); Mon, 20 Nov 2023 00:58:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKTF60 (ORCPT ); Mon, 20 Nov 2023 00:58:26 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1659DE; Sun, 19 Nov 2023 21:58:22 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AK3mTjS018683; Mon, 20 Nov 2023 05:58:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=12XFNR9I7qJcE+51vDot/mqJhDOeqI3VsWlt7HEydsg=; b=NqcQwMTRe/wfqEH67ys4ereBLZzzQujGHGWnn6Vf0tA/D0Bf6HnM4XBWsy4+NyzAyAcl zO8mbXAsq7JNJyo7DPZ8VrMbtHFrlmnJfVnSbasiE65TLc1GhHzf9v8G3lHEIaLomz+G /zHI9FwjdU1Eyv1r88SPXcZEWfSKih2Gr2cVLyqcLA2uw4OYnq8hhKIpHV11XVXidWY9 WaO3GrXJiFq8u+v3cv3AQ6rPijYvZzZf+Td/8gppQ58EGvALHGPwGSYdtKXJZaXrsisU a84y8OTDwaFk5wHylep/H41D+NE+rFQmI69zg1wzK4PW7FJ/smmp2ArG8bBzMKpUL2QA gg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uepjhjyd3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 05:58:18 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AK5wHTq011918 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Nov 2023 05:58:17 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:14 -0800 From: Prashanth K To: , Thinh Nguyen , "Greg Kroah-Hartman" CC: Mathias Nyman , Tejas Joglekar , , , Prashanth K Subject: [PATCH v2 0/2] Add support for xhci-sg-trb-cache-size-quirk Date: Mon, 20 Nov 2023 11:28:01 +0530 Message-ID: <20231120055803.224634-1-quic_prashk@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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-ORIG-GUID: KWbNbXkdeeIg4qTu4z7D0wSdLezIv5vR X-Proofpoint-GUID: KWbNbXkdeeIg4qTu4z7D0wSdLezIv5vR 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 priorityscore=1501 bulkscore=0 mlxlogscore=691 clxscore=1015 suspectscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311200036 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 21:58:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783061459771884276 X-GMAIL-MSGID: 1783061459771884276 XHCI_SG_TRB_CACHE_SIZE_QUIRK was introduced in XHCI to resolve XHC timeout while using SG buffers, which was seen Synopsys XHCs. The support for this isn't present in DWC3 layer, this series enables XHCI_SG_TRB_CACHE_SIZE_QUIRK since this is needed for DWC3 controller. Changes in v2: Included xhci-plat.c to pass the quirks via priv data. Added Fixes tag in device tree binding patch. Prashanth K (2): usb: dwc3: core: Add support for xhci-sg-trb-cache-size-quirk dt-bindings: usb: snps,dwc3: Add 'xhci-sg-trb-cache-size-quirk' Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++ drivers/usb/dwc3/core.c | 2 ++ drivers/usb/dwc3/core.h | 3 +++ drivers/usb/dwc3/host.c | 10 ++++++++++ 4 files changed, 22 insertions(+)