From patchwork Thu Feb 8 23:13:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 198692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp521785dyd; Thu, 8 Feb 2024 15:44:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpqH9nL/1ZHCXm8//1PQcmGRiLaT8c/oIrgfaDrpuhuQ+IvNCjxK8wA8lX/yyWOXQrKCH8 X-Received: by 2002:a17:90a:fa02:b0:295:cfb4:9d4c with SMTP id cm2-20020a17090afa0200b00295cfb49d4cmr729897pjb.33.1707435850341; Thu, 08 Feb 2024 15:44:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707435850; cv=pass; d=google.com; s=arc-20160816; b=hbBEDqTD+NchU/GI2FgS3bPVceZAFQmMIi4fX7lZLQeJ5koO2BIgLppWNeZS7wv5wn P1PgO9715FFRFIs0AD9C6mDRzPAx+Y5xWtdDjVcJevz9L47viYL7SGClhwjMb0sZCuF7 9r/aJgpwPK/BdZnMkkDb9efhNYRe7LsO6eD1nj7Tsb6xJ3N6wvhAMIGZlUsuQjev+L36 Y7PeLbaWIR37Rtf1LaCqJFV/A8rVVLplfUkBrQup15VqHM7KrqirRCOp/VUIk+TrJ8us VBfkx5YJgxNH9cfoEEEuyeF2rTEEiF9l0xmReHt9HsemZTUd5ZJiZmyFvIhfY/UCo/xy 6kCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8G+8heZ1+RWqkfMIHEmoONeKrV6MuHsqsw1D8O8H9Qk=; fh=SfFk3tDxXfHKi5D8VA5HxsObXDyJPeusvwYcvTMEvK8=; b=CiewVm8cclf88VfmvRV4oO6vqdeVWBBITUiX9CfOie1axH7dUZOkc7VlDqINffShLX GjdjHeVZIzO1SeRMyjvBQvMpxJdOci1o7ceM+VssBTxR1MLjKeskZHoiLYoJ+lzJ0vnk eBh4M5QuBKNv6MpQxEjVhHrV5AZYFLDr3UDp29kusW1AaVqGrSFrVku7rMz+wAeCJH2K CrugNw9EicKQ6dqBp8CXPimwi1BEmr/8fXov9zRofuiFZFBepUsLUe8CDkaD2dMk8Gar iAor0tFDYXShyZQWHHKLfKzPVBi3Bq49f9xflDRTmNsDEio0+gW/47+3LSfrDz3tFESi rBAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QZIR5xtD; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-58809-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58809-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUG82vdzblU66sXP8be05NvCeblVuS7Ew3NxxtprgOCFbAIMfa+eJVf3xkawKJT5prlQKIUoO6A5cuatzY/nN2rayvLUw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ls4-20020a17090b350400b00296eec3b8c3si606637pjb.28.2024.02.08.15.44.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 15:44:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58809-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QZIR5xtD; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-58809-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58809-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 53F76B2B207 for ; Thu, 8 Feb 2024 23:21:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D9E659148; Thu, 8 Feb 2024 23:14:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="QZIR5xtD" 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 7DDF150A65; Thu, 8 Feb 2024 23:14:37 +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=1707434079; cv=none; b=nDen1RNqzEmFUrNLsok23tTj44KiO6FfvYD+MQB09dyZXoeQ9WSZozyOnIF1eYP+siyl/ao04Smxm6fQjBZdyZAtiQvLRiRBYN5w65LQl7GngE/+arK0p6HVr47UqvUOPuHEKWUrn8TKQhqMiu4exhE1bBnpenPUkTDWzsjnuYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707434079; c=relaxed/simple; bh=ymj30Zx1dbYTRAyB5Kax/JPfqIskBJp3/VM40Po124I=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=acAR13fzu9P02AAIcCBOWoMxLlJ9u25otaZ+LTx7rn/jt26ECi3x77feFy6TMRPpcjgFPHeuRiMx6tPAupDrs6mMGrc3FJWa8Q76aGi8REJ+CGcmUQ7erMyoy5+t31l/eH2erlZZPglS3dt1QzkvtS+nWUYVRLDpQJfTp/mGeXI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=QZIR5xtD; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 418Mw9fE021788; Thu, 8 Feb 2024 23:14: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-type; s=qcppdkim1; bh=8G+8heZ1+RWqkfMIHEmo ONeKrV6MuHsqsw1D8O8H9Qk=; b=QZIR5xtD0syiSVFu69qh1CVR/iTO3yBbyFqh QwqZvCY0rj7GSlqnK/qU6Ame6ABJMPB58gt4ptIr7/tKxtz4cIqcylZg/T6+I4wj EkNzY33oa0YnJqV5xHUWJ6LQ4cDhj5C+in0mn8p2M82iVaeVaTbVoMiwMb/7m7SM FGAIBkc1HN9JSZHPE0/nnShADa8elq8hW6OOZ5AXxY/KV0F2CI6uIlhH45QZebSm eO/ODPr7EApAvBZ4W7KYwl8zq5Rpq38MaZHnhrBZoAwctPVmZ8C9ray8cb+cP4pU hgObmnRzvh3QUGmBE9R5t7Wsnopg+0QSX7tORyjOUu1dOokHAQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w4pavjs0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Feb 2024 23:14:25 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 418NEOLg012262 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Feb 2024 23:14:24 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.40; Thu, 8 Feb 2024 15:14:23 -0800 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v14 29/53] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Thu, 8 Feb 2024 15:13:42 -0800 Message-ID: <20240208231406.27397-30-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240208231406.27397-1-quic_wcheng@quicinc.com> References: <20240208231406.27397-1-quic_wcheng@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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-ORIG-GUID: jh-uhT39Iz6jVBcHqtuzsAMOKlp-QDlK X-Proofpoint-GUID: jh-uhT39Iz6jVBcHqtuzsAMOKlp-QDlK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-08_11,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 bulkscore=0 adultscore=0 clxscore=1015 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402080131 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790376254523864899 X-GMAIL-MSGID: 1790376254523864899 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 f04fde19f551..54719f473130 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -255,6 +255,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); } /*