Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1309800lqj; Mon, 3 Jun 2024 18:14:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6H7RHrlQeSjQKVYVKEXqvKcpKVrGdz0cYCBkB+Geu5+LS/WKXWvgpteAlcxqY7jSTGAPwDzg3pbO42O48QynRMtiV/Rc6O/y6REawUQ== X-Google-Smtp-Source: AGHT+IEMWGKPvW+VoPb0/L7QcVhhRfaMrkJLFPQXV2O577eajnZtyWijifbPbrKA5wwIv10mSBzl X-Received: by 2002:a05:6512:3292:b0:52b:839c:78d6 with SMTP id 2adb3069b0e04-52b8955c243mr6289274e87.10.1717463640721; Mon, 03 Jun 2024 18:14:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717463640; cv=pass; d=google.com; s=arc-20160816; b=XeXky9Jy4VfwfJWWetZ9ffHBNiY3mNMi0SA8hTjf0FljukSDyKZZpaLUdAlImSXec1 k/m2OfbSgnZ2AZgBn6LsVwy+WbTqlUjlylxq1167/U7Srtk2wI70w+GStlh2XGcOK5ZY taa9cq7sQ/6PGmAkNLaY8LDqY2WBorxVkVOVLzFmFKWFWacr14BlyWMMKcAtCinA+7ba iKTDyC+FI87xheerejslJccBfbgEkZ0JkZhgdPJvJkxLTc7E15j1fFpvfuJ/WpB3gtYQ UywQsd8U4EBaK7zJ2gv9ISWU6L1Xna4OAoQHSY4M4lDxx8m/Uj55TyLKKkwc/fkV0YwT z4Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lzOVmMEApuLpA08skwJu0DPG7QwsD/G9jRyBvQwPAAc=; fh=Uu9ZDwg+MtVyZgAp/Y+whyRK27A4LJoOQCDTGYmYyQo=; b=wpro0+nK2F9FKFMU2NT+uCUB2GikTz9RmkTVVXID8B56ugQBm+ZCORqHYLzbZrJ7ep RTW9l+lotRPTv8Jzoh0TO3tVGMp5Oa1c/5O5xQ5sI18mGzLBxCTJ14D3WtHWKggSJ5/8 08XmD380oWvCU71RVIVSXi9awZrg/4fwjBm1m9y2wqLkpyonW64mEHln2aaj49W0UjgD Apfh/3qgEh4Pc4d4D/Xf7GCX2jJ6iJSHorDoWm2IP5F+M9Yg+l8vq3Z/AAREomiNXqsm +OKFPhgMdAuimU6cRL8J3afFWzr6c98yuNsacmWHUio0idoVfDyluifkDR9S6Bb26ktx lRBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=SJF+OxSc; 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-199894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199894-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-a687176f8e8si409028466b.538.2024.06.03.18.14.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 18:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199894-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=SJF+OxSc; 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-199894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199894-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 6B21F1F24761 for ; Tue, 4 Jun 2024 01:14:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA43175AD; Tue, 4 Jun 2024 01:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="SJF+OxSc" 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 07BB8171C1; Tue, 4 Jun 2024 01:13:22 +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=1717463604; cv=none; b=ZErS8HHkswo2wcOhtsdINBHX5LdKcQqpSuScbugfg20DZxI/AY1Xte4VjPuivuuNRv3wRNj8VVh3bVtmoBlipxQnQPPqkjvE4cgW+uX6BtGms4BreFf7BAdT7OYjGgXJ8d2xHBZZ0GvAjfTrcYf1uJFHFUWa+lRxzMV6bDDRmaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717463604; c=relaxed/simple; bh=3j3HIjtTgVidWtkhAO2CrZvRhljzkZZDGvZ4qwDnpiA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sgM42mFU2ToY2RK3xF9dFhdSsQzjf2MQLOgr3GmXu2/nIzJXR6Auv4gojKdjmFfZ/FRIStaMn4gmS0iDc+QZvG9/1ofBA5ykMobiVr9DOisr4Qp+QQ4mynbSdAQAn12iP19ZqGv6cwKcBLWh/7AfnuqvjYvjhoYhpOLwy7E/AGI= 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=SJF+OxSc; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 453BmAIw019501; Tue, 4 Jun 2024 01:13:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= lzOVmMEApuLpA08skwJu0DPG7QwsD/G9jRyBvQwPAAc=; b=SJF+OxScXdxH8IYc cVD1oO3hIkWsZJ+NP+XRFRM4ydajG4SwI3ULWxc6ti2d9gtuMfBpZtVBHlPlxivE WAoGn/vtuuPLW4/3OBaFNl57ieViNwzmy61IuE3Lmbwbw4ozs1W85sd3sM5xcl/V kzcaLtlTv1RBjErLsT32OTGW+LldxITYHPphNHrFKpeYfTxl524j23zFi84vx0/e EXMz193pRWredRP/brYCJktqI80dbDp18EJF5BFteps8OnRDOIO/rI3e/4IHDB4E saEXs5bk/HzPackrqh9Cp/IYhxxLmsPHgsXZ9NRV8Do06hfP2H1cVanuD1vRS0U+ jVvfyg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yfw3r5mra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 01:13:19 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4541DIq4002298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Jun 2024 01:13:18 GMT Received: from hu-sibis-blr.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 3 Jun 2024 18:13:13 -0700 From: Sibi Sankar To: , , , , , CC: , , , , , , , , , Subject: [PATCH 2/4] soc: qcom: icc-bwmon: Allow for interrupts to be shared across instances Date: Tue, 4 Jun 2024 06:41:55 +0530 Message-ID: <20240604011157.2358019-3-quic_sibis@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240604011157.2358019-1-quic_sibis@quicinc.com> References: <20240604011157.2358019-1-quic_sibis@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: nOdRoJV2NJdrFev0DGvr8lytCn47h2Ee X-Proofpoint-GUID: nOdRoJV2NJdrFev0DGvr8lytCn47h2Ee 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-06-03_17,2024-05-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 mlxlogscore=879 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406040008 The multiple BWMONv4 instances available on the X1E80100 SoC use the same interrupt number. Mark them are shared to allow for re-use across instances. Signed-off-by: Sibi Sankar --- drivers/soc/qcom/icc-bwmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/icc-bwmon.c b/drivers/soc/qcom/icc-bwmon.c index fb323b3364db..d69e0797eeda 100644 --- a/drivers/soc/qcom/icc-bwmon.c +++ b/drivers/soc/qcom/icc-bwmon.c @@ -783,7 +783,8 @@ static int bwmon_probe(struct platform_device *pdev) bwmon_disable(bwmon); ret = devm_request_threaded_irq(dev, bwmon->irq, bwmon_intr, bwmon_intr_thread, - IRQF_ONESHOT, dev_name(dev), bwmon); + IRQF_ONESHOT | IRQF_SHARED, + dev_name(dev), bwmon); if (ret) return dev_err_probe(dev, ret, "failed to request IRQ\n"); -- 2.34.1