Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp242506lqb; Thu, 23 May 2024 17:29:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZCzf0NZ8q9UL3L9K+m+IEjbMIH86OYWrDap/hqOUi079N3XbiRLdWJUR60M/VbxByo0tO7M6AF0tU8pQp/ooYth0NjZZfkR9o6+BPYQ== X-Google-Smtp-Source: AGHT+IGajiA5L4+eKh9aY8PYxJYG138W+AyvTzfOSR0o7r5cGbBdo1i/Epxk8NLFvcYvh8hIWRiB X-Received: by 2002:a05:600c:2245:b0:420:1426:8485 with SMTP id 5b1f17b1804b1-42108a40f5cmr5828335e9.14.1716510572840; Thu, 23 May 2024 17:29:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716510572; cv=pass; d=google.com; s=arc-20160816; b=OvV06r4KLxXXSOs2LS2KC0qsa2obA/Vauf73x8cXod14mxug9ufEx3tMmIcGSQt1Dx qmNq0TVlF9OZzi2V9gtKnLEWEK1rYiCeLi1p1QAtTu63lA5LJeLy2aQKLajLRAUpY1R6 ATuWfcJ+kpai23VYTiaY1w3duLg3o1gY12eRasNbtDp08D6c/OdskwZiIMlt5Cmdwzmg 91XbScljTjKoC+IOXVWBi3eeAOr4HwALbWZ3hmTyNA6CXEJwwIWeQJtmKrUIgWNQVYgi 376uMfF3/uEACUg55UMvsYeCXUNzbL+Ol9W5SHdufqDAuxwlTLcJnRkvT/1Lzd2ew9Fh 26Jw== 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=alya9RESAvST9l9KF9dhflA/rrEE+1L8tn280X7aOio=; b=bpJ/wepLceXCwPCxNRhgQ3XrvlF3JeoCG2Z4a2BhmSLsEHJKF48aPi0jttAVCAbvQ+ WUMTjDKkKpsQkMBDjAj3oll7zmhe/BauKfcX92Wbwr7iJGDOaqAmVUQcdfFj4vjNGC5O 3aJM7OS6SNJ+e3mF3Nx4ZTPsPKPrCSrJIdvNKRlCjThdEqC26MIafXw0mJXp6hsFWaHT CO0Ne2+6npxQvIJylY0M1dMYG8PMqXdaGCjKFZu6Tma0RkbxFj9wz4YMIdhw4v633Ocz P5d5NT08BjlUbZ3mO+Fs1+sV4eolNFMZsQhtbHetClfv/BmJA1Z9+mhmh6VLr6WPh80t VxIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GA0TaeKp; 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-188150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800ee6si20876266b.116.2024.05.23.17.29.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 17:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GA0TaeKp; 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-188150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188150-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3A7DB1F2597D for ; Fri, 24 May 2024 00:19:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A01C412D218; Fri, 24 May 2024 00:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="GA0TaeKp" 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 3ACCB381B9; Fri, 24 May 2024 00:11:21 +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=1716509484; cv=none; b=nfGAuBtFvdRQlJwgCm2iSVwUtNdUl+zOFZTrJ4WUsKBvIP7whFF4Pd3tDWLUWWIQ7emMEn4tw7nKMcs5DGnKjds763t2pZVU4bTIjhqXQjvqy1kI7g5mIP6y8s/0kdj1dyEwL/2OyFBQfMNE3AaErdJ6Te++uZJqATXAdbtTBZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716509484; c=relaxed/simple; bh=ltXX8jP7pn8uVpu5KSPpn79cIYm5HfBGTiCUp+UHg9k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lQc4/bXuasfCHFV226jt6qIpcNuT9WgVY/y7O702q8jvpf+XP6521vFcr8JOksgm1nGRz4TuwhAko6MT3PE4MUhmGvAjekZUZ+kZFG3xshvLbAvQBrDvyNtmSI+aTbC9QaE7Ze0DvJlKXQcCywjAZX7Uz/MWrOrMaDlqS4frur4= 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=GA0TaeKp; 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44NNQEkW004848; Fri, 24 May 2024 00:11:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=AN6ZcvMWlqNjOXpEc6FdiWAh kqYqJERCJ3muWeL5xeM=; b=GA0TaeKpwRjhqVavKZpfbFvgzzGAepWnpSimeqsP lceqg3K+a3I1OUGGBGsVigLdCzhkKdoi4PP6dBbaVw/sVEMx9+UDgXYnBl5iJu5p 1oQD104OGrSPNzcBGklcGLorNDJHdCRaopmAkDL7TGtOjv42cCQiIPR4Up9UVWxM hNVjco60kobCgfvD9rhzLxs3ZgJHp7/mWffAGBRrMHOD0YSnJhFLiZTg3J+eyy/a ZAGBSH2qVFTL0hrD9A73A2dOdUDzcOBafUSrlKC1epVmpAAeUOqNL2akK2KSB6yb U+ryk3jL+0ImxAtXhtyZfKpIqNRSwNat/eOQmtj7nZf4mQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yaa96gqb5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 00:11:00 +0000 (GMT) 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 44O0AxXS009786 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 May 2024 00:10:59 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, 23 May 2024 17:10:59 -0700 From: Wesley Cheng To: , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v22 16/38] usb: host: xhci-plat: Set XHCI max interrupters if property is present Date: Thu, 23 May 2024 17:10:21 -0700 Message-ID: <20240524001043.10141-17-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240524001043.10141-1-quic_wcheng@quicinc.com> References: <20240524001043.10141-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: 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: bFsqtceG9XTUBy-fvCT799KUDICgS6NQ X-Proofpoint-ORIG-GUID: bFsqtceG9XTUBy-fvCT799KUDICgS6NQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_13,2024-05-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 bulkscore=0 phishscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405230166 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); } /*