Message ID | 20230308235751.495-14-quic_wcheng@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:570d:b0:a1:2e52:cf23 with SMTP id h13csp885355dyk; Wed, 8 Mar 2023 16:10:28 -0800 (PST) X-Google-Smtp-Source: AK7set8Bh4gfhFu7U52TLuw2VDZaYZSsTLbcoR82LgFHY6sYoIkyvIQWUG97NgEdGliYwpC7inu9 X-Received: by 2002:a62:1acb:0:b0:5a8:51a3:7f69 with SMTP id a194-20020a621acb000000b005a851a37f69mr18103432pfa.2.1678320627476; Wed, 08 Mar 2023 16:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678320627; cv=none; d=google.com; s=arc-20160816; b=EDKme/9fNpfPYVql0u48TYwjfvKaD6m6o2Z8SeS52Ns09a7KV5rpf7u8SR0J/X5Mb2 UwBJVSWqSc9YvMkz497Iini8M7y0dYWo9fYntW0z2a+GavhjwaFR83ymVkPCj/AHGTXo LvEkwqLw5yyLZrcB+6D5mVYk73viO5xAJ6w6JiTMIld+aA2YDx4VhF5NdKNm6RN3k8Ub 3X2MnWvqOwdsZ10PjPtjrra/lEyialDRKP9JYpaC4lHb23B7pOgr1VhGVPn/kmRgcN6O VJxuMJqvnSTL2wfJs22di7TWu9Dm6+l0XsP7qM+jHrDcCIX4vUCT1MNP3Ijx6Kp2o0cl uVyA== 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=VuMI4vyZPaICP7fxpIz5siBrbYUQfGWOJelPCL9OKWQ=; b=mwcHQOVZnx0zxoNjKUHdwksz2we/fCKnnC2Fpk/cfY9El4X+MALknNlLo5knrmazwn ee0UhGVdqbTUKaf+d1i6mmk592QCNxS/9cVTQkhW412lwRIn6YKK+l1ix0hqqcveut9B vmIFtHUa7/1gYHlEXNto+miYDqDa9C4joVa7wOsY7Lk3ZLSRzVYc5MQuDiW1FblANQab QsebRDJyLKPAmiIxEjrecb1IW6mMS3/GEt40mhMZD52KSdY6qI7JGQc6AFLjEx1wbmHd Tz0BQP+weyKYXBEY3U/cMDU8ChjtLtaiw2fchGKis95CuUydbbaIEWUMlywGEAhO1YmK qliQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mqCoSi0A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m189-20020a6258c6000000b00592d5c262aasi15954114pfb.137.2023.03.08.16.10.12; Wed, 08 Mar 2023 16:10:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mqCoSi0A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbjCHX7E (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Wed, 8 Mar 2023 18:59:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjCHX6c (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 18:58:32 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB2B867E0; Wed, 8 Mar 2023 15:58:30 -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 328NWTbX010355; Wed, 8 Mar 2023 23:58:09 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=VuMI4vyZPaICP7fxpIz5siBrbYUQfGWOJelPCL9OKWQ=; b=mqCoSi0AMSVj0dms60ND53jUkzOlWV6jumuAjYN3kfLsHc8cdIgd0/3/+6bQ2JFtl9mU waKzXKfinFcpySYjL3Zgzqanl3yqUyO/+GAphozyunw7bj5c7X6JQ5WGNCwiGpp5hkfX +XLdqvt0C2v8SORABSM3DrgRVnYK49iaRblrO4HjOXLw2SYI26KnM66Ut8fBHfmzZlNl CAzL+tu3EAfohCauZoL6B4r4m1WB5CPamrn/xFpbrp3b2/7ZrItcPaZz6rTVCwI7rWB4 NjpmVc5wcsHEPsdV8YgeSauoATIWuh/feVwHUsV4Rgv31R6tNx4WaWBftYkFFKbrxigT Kw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p6fetu62r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Mar 2023 23:58:09 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 328Nw8i9016266 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 8 Mar 2023 23:58:08 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.986.41; Wed, 8 Mar 2023 15:58:08 -0800 From: Wesley Cheng <quic_wcheng@quicinc.com> To: <srinivas.kandagatla@linaro.org>, <mathias.nyman@intel.com>, <perex@perex.cz>, <broonie@kernel.org>, <lgirdwood@gmail.com>, <krzysztof.kozlowski+dt@linaro.org>, <agross@kernel.org>, <Thinh.Nguyen@synopsys.com>, <bgoswami@quicinc.com>, <andersson@kernel.org>, <robh+dt@kernel.org>, <gregkh@linuxfoundation.org>, <tiwai@suse.com> CC: <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>, <alsa-devel@alsa-project.org>, <devicetree@vger.kernel.org>, <linux-usb@vger.kernel.org>, <quic_jackp@quicinc.com>, <quic_plai@quicinc.com>, Wesley Cheng <quic_wcheng@quicinc.com> Subject: [PATCH v3 13/28] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Wed, 8 Mar 2023 15:57:36 -0800 Message-ID: <20230308235751.495-14-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230308235751.495-1-quic_wcheng@quicinc.com> References: <20230308235751.495-1-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) 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: n4sKTXnxUwilEIeXSttVewKsW02F95MI X-Proofpoint-ORIG-GUID: n4sKTXnxUwilEIeXSttVewKsW02F95MI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-08_15,2023-03-08_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 phishscore=0 malwarescore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303080200 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759846730147976946?= X-GMAIL-MSGID: =?utf-8?q?1759846730147976946?= |
Series |
Introduce QC USB SND audio offloading support
|
|
Commit Message
Wesley Cheng
March 8, 2023, 11:57 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 b9f9625467d6..e4f9035db6e1 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -257,6 +257,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);