Message ID | 20240102214549.22498-18-quic_wcheng@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-14885-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4701927dyb; Tue, 2 Jan 2024 13:56:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpqz57tvckcFjBqYLj5SwJ+y7hXydRKEKcXz9ZUuAabVsMWSOly5Lpx9D/1FtkAlOKSXEq X-Received: by 2002:aa7:90d8:0:b0:6d6:7c05:97f9 with SMTP id k24-20020aa790d8000000b006d67c0597f9mr7058994pfk.39.1704232603058; Tue, 02 Jan 2024 13:56:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704232603; cv=none; d=google.com; s=arc-20160816; b=mp3N7KXv9ijuZgNObjVGRDpOp5HwZsPu2lWim9BPXhB9np1g/YnoTO9CziNd0RUxaD kPmEWiuml46+KcXIzaFw9vrqsyGn7WFdPPcer1HcsrTR5qemqWNrhTQV5zMvkt4hKTKE Bam3m+ZFdPcTb8ZayP+TQqRW/WqbcWjhX8QhUOxvJZDlUOmYGDraYXP4p/90013HdFLG /8jbMLlgctbZxGBoBaedB4BQhByNSE2rG3YDmBGotr5pwTfhDo8nWzlhOs+L2ZngeIo2 8FuQ+WSpU/W38t/XyHDRdKVjh3TbYT6A6dLrngFuzok5WUrjjI26zRofQw/WQ8FgVRpe rKvQ== ARC-Message-Signature: i=1; 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=gfT2QuVue5P+pAoKKWOXYkcIBMD+5IbZSCnThy7cqzw=; fh=0KzismZj+xI0Z//ZGdqKIH/FO9LtSZM7Yj4P0VtrCz0=; b=cCcNrf5CLWQZKKcoZi/XLnIfAc5js2D81H8iWngDSrEATTCmUOcQR6aXzKLTlMSIlK N/7iQF8Ev3TOrja8L9hgLJa9L+oKxs2lEPWaw8bzfBkA4cDp7TDB+OHwe/DthfvniYi8 Isv9vN11rXwoXyBjUNxI199l8JtFCbn07voACGbej+6x9iHI26i87c7kLfWCGthu4UXE JMFXKd3Q2wmfzByRRPzjLjbf+Z+Yr9sJM2u/xnECE8eZflUfj2VGYQ60/nIus1nbcpRY t7hizColkp+Usytn75UG9Tc+Zq8kwTYO/CRqJim/didWo9Li4P41gdChdy1378qobd1a VQ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ii9RbfW0; spf=pass (google.com: domain of linux-kernel+bounces-14885-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14885-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k124-20020a632482000000b005c6818b5a28si16981709pgk.517.2024.01.02.13.56.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 13:56:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14885-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ii9RbfW0; spf=pass (google.com: domain of linux-kernel+bounces-14885-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14885-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D3C2A283C02 for <ouuuleilei@gmail.com>; Tue, 2 Jan 2024 21:56:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCAEA1F94C; Tue, 2 Jan 2024 21:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Ii9RbfW0" X-Original-To: linux-kernel@vger.kernel.org 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 5B4681CAA7; Tue, 2 Jan 2024 21:46:55 +0000 (UTC) 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 402Lfjdo010836; Tue, 2 Jan 2024 21:46:24 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=gfT2QuVue5P+pAoKKWOX YkcIBMD+5IbZSCnThy7cqzw=; b=Ii9RbfW00erPiuV55O/mU8kcMXyHQdsXdJkh 9fcwXO5jn7Pb//IUEnQlVipkmJfiYb55oyLqxrthD1VGrFTPqNaP5gLQUGv8gO6H tWLe75sI4r6ehRdZ16Nxk0JdKo/rf550hOJ8kIsT73wM84Pmb4brGXy5GTksU9Bn elxkXYSVZnua4L4EMNonG4G0ggfeQFpeHYQsjrfXzHbQykAMJjnobr60VjINmWQ1 itDDbOqhXpvHCFv8/nFPffGepTz9TjAMfpro7fw/cls86qGvDFGbMSj3fI9GTBAO DQ53mLGzbsX53UP7mGmNGhOkx6oTwlZBDwyZogr8YOiaaybR+A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vcbnb1s6e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jan 2024 21:46:24 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 402LkMT5011462 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 2 Jan 2024 21:46:22 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; Tue, 2 Jan 2024 13:46:22 -0800 From: Wesley Cheng <quic_wcheng@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <mathias.nyman@intel.com>, <perex@perex.cz>, <conor+dt@kernel.org>, <corbet@lwn.net>, <gregkh@linuxfoundation.org>, <lgirdwood@gmail.com>, <andersson@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <konrad.dybcio@linaro.org>, <Thinh.Nguyen@synopsys.com>, <broonie@kernel.org>, <bgoswami@quicinc.com>, <tiwai@suse.com>, <robh+dt@kernel.org>, <agross@kernel.org> CC: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-sound@vger.kernel.org>, <linux-usb@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>, <linux-doc@vger.kernel.org>, <alsa-devel@alsa-project.org>, Wesley Cheng <quic_wcheng@quicinc.com> Subject: [PATCH v12 17/41] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Tue, 2 Jan 2024 13:45:25 -0800 Message-ID: <20240102214549.22498-18-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240102214549.22498-1-quic_wcheng@quicinc.com> References: <20240102214549.22498-1-quic_wcheng@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain 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: B7U_EsbDSS8xqXCD8HNRaEty8GBFvzen X-Proofpoint-GUID: B7U_EsbDSS8xqXCD8HNRaEty8GBFvzen X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 impostorscore=0 suspectscore=0 clxscore=1015 malwarescore=0 spamscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401020161 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787017405654373275 X-GMAIL-MSGID: 1787017405654373275 |
Series |
Introduce QC USB SND audio offloading support
|
|
Commit Message
Wesley Cheng
Jan. 2, 2024, 9:45 p.m. UTC
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 <quic_wcheng@quicinc.com>
---
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 e46175c38570..d9cf12b34b57 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); } /*