Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1412287lqd; Thu, 25 Apr 2024 15:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3BY3JCNLgX4JKtCFfpS2RsoPDzbIDq9yFdGQ5jmF/jxV4w9J8YA9TeyD1bOpHQLXdvPtzlXtbBT4U+4i9TL2BqMrelVw23qXm2ADeZQ== X-Google-Smtp-Source: AGHT+IHhcm4GMtURCC/Inlob2fcSRd8DpBr/Tcd/a29k7AxDb9PnzIpFQNix5jUcY0QmspCXAmtn X-Received: by 2002:a0c:ec87:0:b0:6a0:a9dc:b11a with SMTP id u7-20020a0cec87000000b006a0a9dcb11amr1231371qvo.3.1714082768035; Thu, 25 Apr 2024 15:06:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714082768; cv=pass; d=google.com; s=arc-20160816; b=eJ/rlVSLGjXREEr8+YRjcugMTuQObXXWa7JHl5AAJaZaA+vXleKER0ubav87EU0PE3 31fi+AZNYVmdM7vDBBCKIgrI4htx0aDa/UWvD3mlDbdvP3XtHGSZdd8T+LK9zAO4pQ64 AjCVKlz7gQGhxOkLwto/nf4DBq5nZVGYzVnTi9vDg5kOO29yI6DiZ7w7hLppwpagRKRn 4yV+6s5JF1lLe9B82gJ/1PqQ8U8mY/VqRqxjmo30l8suorx0l/JUWiu8KqTnjLeFiPMH umuF0YbIfT6zpqWJ8TohCciF4y3qRVoNXsAcpMz1iHYa4v4VWhbuqljn+VzmvHiGdh+7 p1rQ== 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=AN6ZcvMWlqNjOXpEc6FdiWAhkqYqJERCJ3muWeL5xeM=; fh=usWEz1eJjYCle08WABmDyuqCrJGq9m48/LVlmybnzRs=; b=gOzV53VAFGwEW04PTeFxM7d89RmvzPT+Stl5NUep23SkxV9HAmL4pPn1veEf9v5BlP XPYECU0YbMc3kU/virzMJlFDdTVIC0pNrqoyc4WrPHi8L/Zl+DFiWtMbKsLGUVFbeFyj UL2+CyXK++yEgJLCiqwnQ7gAiDhk4oLhIGFnH8GSiIEs22WsKbkqX48n5w4hk1AwDA0i 7f0AOTxtk1H05FEKiZuv+fLT/+BMLf6oinZz8H+ZL8QvPmQHFowKEJ8Qd7x9Y3/1xIbC A4HJEInMR8SzBrcRE9i3JeXuaUPqED3LIUpWpqIyXgj94JVFEMlN+glqQoJjb/7B2TzP FkXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NMejx1Su; 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-159275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gm7-20020a056214268700b0069b503c131esi18547945qvb.314.2024.04.25.15.06.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 15:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NMejx1Su; 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-159275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159275-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E6C4F1C20982 for ; Thu, 25 Apr 2024 22:04:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFF12155A59; Thu, 25 Apr 2024 21:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="NMejx1Su" 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 54216181301; Thu, 25 Apr 2024 21:52:20 +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=1714081943; cv=none; b=G6uHUN5QqowPFjTP8QASRcgHxU017zavF3jzbZfio1t2WnvwH+0O5rgWm2oISeLTQZAMHOR2Cq9Jt0gfVNk/dLqhw3EdZacYFjCVBClLsJvyoIzgrSiYwGRzulXzDsb0llpFLueUgWlwP7m2PKA/kXQ5B3T8wUrxWHGbdFDZyNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714081943; c=relaxed/simple; bh=ltXX8jP7pn8uVpu5KSPpn79cIYm5HfBGTiCUp+UHg9k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=il8PMnbkNkDcb4IsSCvcDi2V4oV+DKUwIgebOiKGvD1JOWTICIopLPxow6/SfMlQcblk/rzrjrqPwBFv8MRO29GBpu83oAKAZhFy3/7SjAwIaUN89vqwkRRGO+wXutAYxMT73vAzV6Rc4VBzAfTFP9VdgVKpTdSC9DoFUmM56i4= 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=NMejx1Su; 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 (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43PHjRjD020470; Thu, 25 Apr 2024 21:51:43 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=AN6ZcvMWlqNjOXpEc6Fd iWAhkqYqJERCJ3muWeL5xeM=; b=NMejx1SuDlbNszjBIJbK7VBhrIo7w9PRqBci Gb+Y2sh2TfzckQG2AeWGBMLCTmJlAYuTHuD5x7MAbh9wtNBYmXB/+NgDmMeZpsZn VCojJ8rAhMmvBwXGTiaZOqyZsIqoFfoGAasgGkeniq/NslmgXditvaUTvQaycMIg Y47KkQ3xzt9tl/gBfJT71VnBzYCAvxmJM5/kYKfSM1/GctBjLH74+cMtinPY+v8O dis+PeTsm+Ur4r0jbtlwdsF4HVyEnyur3uEiOAeF8KIpSeAu/EyukgoCoRUdL8yQ Eg2dP5pANl5N2Cl2E17pUXc9U4FMOn742YirYWmOIEUSVgAVqA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqrwwrya2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:51:43 +0000 (GMT) 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 43PLpgYX011203 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 21:51:42 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.1544.9; Thu, 25 Apr 2024 14:51:41 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v20 18/41] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Thu, 25 Apr 2024 14:51:02 -0700 Message-ID: <20240425215125.29761-19-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240425215125.29761-1-quic_wcheng@quicinc.com> References: <20240425215125.29761-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 Content-Type: text/plain 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: e6jr9WeK1OJAWI3K2H91aw5Zguy2FKkR X-Proofpoint-ORIG-GUID: e6jr9WeK1OJAWI3K2H91aw5Zguy2FKkR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-25_21,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 mlxscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250159 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 3d071b875308..1c12cadc02a1 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -258,6 +258,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); } /*