From patchwork Wed Oct 11 00:21:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 151069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp221193vqb; Tue, 10 Oct 2023 17:24:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcUatuZV+2TO/XMOvwuJZSFIIOvSaqhl03P2CoItBPaPu57bu3Z2tzaV6gpzc2rETeAX30 X-Received: by 2002:a05:6358:e908:b0:147:47f2:2d54 with SMTP id gk8-20020a056358e90800b0014747f22d54mr15699932rwb.0.1696983865354; Tue, 10 Oct 2023 17:24:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696983865; cv=none; d=google.com; s=arc-20160816; b=AwqnUnB7WhjFM+RIRmP9Mri0nzhChljG1Z+AGnIi0qadP2Q54Yv4cJ8cUzqqA1YG9M CQvJmPmZvs8usu3Ka6tNQQB0Yur6OoYxDMXXZlwkugmt/2uQtynjvvXfq4g4p5iqBSFY Exr7dnvE4p32rnOL8c3she9/1I2sTwb0ZhmL0/bzT2x6FXjwHmLndMBVlsVCDx/MX4EE APneezW2xuTJ/hP1S/OWBBrAkbtwv+3k90UuKMuywmTUYVJq6T/8zQ3qfys7xFyqgfkD yhcU+LJc7t72WrzLX1I+8ltWg0Zj+TgrkcPVhiYNtkpXUbmbt7XNo+UlSE5eE22qhxkm jk+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=v88cF5DfrmQ11xFFw1qondVS974WsoPZKgPh8eL+d3w=; fh=ASZxE/GudOQkGCAz0d02NHHSpg4iNHYOcDWl1imlof0=; b=FwHtBUyYWzCKqa/waUl4nnrqfpLdmRjxgMDip+nOTuhfA3h38A5oowvyxp37zRfb+s hrYclTHmpiVLYmJ/0sD/iS3xW9QjUt6Kz52dHZHjVl/ByXq7MzrykpjsQ3755gZP1lDT w9Wp6mgG/8IAgZQc3xzVKWuTtT2VtbsdUpMd3qsIvMK1qYH70Bh5oz9h1sfYYEDmyC6j aHa7uQOpi6BtB1HikrLimsSTvLFkztbcTCNB7+AfewVrhhDmux6+KqpDTFgEBJhheZsF lmSFPzAbk2VGPKh+Eye/sn2ACF+YZii/dIXe9PQCd5sxa4tx2GjYlwXTBoiI/me338EZ P7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Elc8PbPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id hg6-20020a17090b300600b00277387bc11dsi12605276pjb.188.2023.10.10.17.24.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 17:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Elc8PbPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 3A280802E6E3; Tue, 10 Oct 2023 17:24:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344443AbjJKAXt (ORCPT + 19 others); Tue, 10 Oct 2023 20:23:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344328AbjJKAXP (ORCPT ); Tue, 10 Oct 2023 20:23:15 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F97B9; Tue, 10 Oct 2023 17:23:11 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39ANWWCC018063; Wed, 11 Oct 2023 00:22:35 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-type; s=qcppdkim1; bh=v88cF5DfrmQ11xFFw1qondVS974WsoPZKgPh8eL+d3w=; b=Elc8PbPdGFiB6JEXiuJQDIsaxHCerCn8keGhQ/fA+ZA0Rr6GUJ1jFu4Swo81pk95YFKy ksW+go/FeZkr0ti5qOiAydSIwxS+c63Qdt3kPo5Al+NLtDoodc926rHLkz7CwuFcV5qz S51F4K2N6bPbOm2UBaLocyRPMogBJh6q2CHseDmewaUL63Gjg0qAAUWuVZjhs00Aoikn qn+9L5ee0Z3AgfwwY26AaUdWsyZYqyQ5Z/VG7Hb9Nsc71/BBIIgrqmTx0nY5t6LU6qha N0uVBI7K9eBgBOlTiTeh+Y4yVYsx2xxrnZ6tF4tR4Y91k3hN3uP36Z9a8gFgyvi/feOK 4A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tne0q08kq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 00:22:35 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39B0MYm7008273 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 00:22:34 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Tue, 10 Oct 2023 17:22:33 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , Wesley Cheng Subject: [PATCH v8 17/34] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Tue, 10 Oct 2023 17:21:29 -0700 Message-ID: <20231011002146.1821-18-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231011002146.1821-1-quic_wcheng@quicinc.com> References: <20231011002146.1821-1-quic_wcheng@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: lW3CovUTgqPsDY172Mrxn4o7a1iSjWLl X-Proofpoint-ORIG-GUID: lW3CovUTgqPsDY172Mrxn4o7a1iSjWLl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-10_19,2023-10-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 phishscore=0 adultscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110001 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 17:24:16 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779416553107947508 X-GMAIL-MSGID: 1779416553107947508 Some platforms may want to limit the number of XHCI interrupters allocated. This is passed to xhci-plat as a device property. Ensure that this is read and the max_interrupters field is set. Signed-off-by: Wesley Cheng --- drivers/usb/host/xhci-plat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 28218c8f1837..d01318f89278 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -251,6 +251,8 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); + device_property_read_u16(tmpdev, "num-hc-interrupters", + &xhci->max_interrupters); } hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0);