From patchwork Tue Jul 30 10:30:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenhua Huang X-Patchwork-Id: 13747226 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01463C3DA7F for ; Tue, 30 Jul 2024 10:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=wI3Q4nVFdXrvJugbyJuL+mmiWCTxUxemt3HF/N24QaU=; b=PgAPaytQkQ9R8hbJZzpgTO98Nc 0zQjqPKvYAeafuHejBN9I2NJbZ+vF1JM6Ngr6GytcF4TUUn1gWsZh19cLLA3roZ1c0f0Kxg2wdsaX v9UI2qoKlnGkwAi4z8xc2IeXmRTn5s/Cp/U642xXgsXmjj6QLLkr6fa23D/3aLVxTcmzmfBgvnE/K Ia6ONRWdlhNvq5PCb9tw9C+b07PhuCb6PzdzsWuu9QkuQcPeoxqo+3Y1ZREgDLWvTUaPjz4Fcmej4 gh5lC3ceuzNtvM8JmVtYfo544LaOEaTfU1oP+fjla2HYU41RyfEBCRPqhDDKD2VLmXdSdx4hcPx3d q2DoYHHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYk9P-0000000EjoO-3yv0; Tue, 30 Jul 2024 10:32:15 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYk8W-0000000EjPe-3m9Z for linux-arm-kernel@bombadil.infradead.org; Tue, 30 Jul 2024 10:31:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=wI3Q4nVFdXrvJugbyJuL+mmiWCTxUxemt3HF/N24QaU=; b=JXoqRsGt2oeYH0hb+nPCJjmoZD AKd3aK/W5pi4LoUp9E6baMvip1+1ZC1hC5o+cU7tu0zOgSC7mY2Q41LXFFSKBP60DxS8AHXSrIJvI 8OI2RdgnDEwZBaKn/AqI6TzpF7xq6ZH+70W8PGrYQ/INWVl4bEFnuTqteyaWPOH8wSdwQvvPrUsMw W6kZ5SuB+y4RzRZ97EPxPJRdtxmr9G21I1EPM8cgMHYT0+45oq9zpQ289JCDaTyEBYDACvQqESQAU UsYrvf6wU9Q0em1NRUW8jAqHid/CgtoqSp0b/hHptPAUXa/SNKHVolu/2o2OHkbpGpfs3/jF+HQtM 2ocGWAkw==; Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYk8T-00000004ygg-1iBw for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2024 10:31:19 +0000 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46U0r8HB026407; Tue, 30 Jul 2024 10:30:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=wI3Q4nVFdXrvJugbyJuL+mmiWCTxUxemt3HF/N24QaU=; b=cu 7YWSAM2wnb6m0/51y1xg0JULxz/Cz1tjR3Xaf/HVy9ieWKmdxleWSG4OW44m/3g4 TmNjkNVuzFaTeIZ7UZOjZLbbkFCLUd68VUtVMcZ3df2ZJc+ys9lRaIPoCxLMjniw UWaF9NDZh3RZTljKmFww/KLV8mosseMPbbg1gFgu5J6LF78NeB20gBJNUdliUJve ar3BtaRnCjXoAbSIuv88aLj7SAp+Z3p+pjArDFVLgLOcYtiP5oPNdfgPFzI/gqWy KN/Y8E/k50xfvfLzj5rJYXPuHrKvxLkgTiHGyScM/pmCf1OVhlkxk5lTteoMSqVP 23sYAYlhdKrP1RgHZsWA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40mpkey4jy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jul 2024 10:30:57 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46UAUv2J017631 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jul 2024 10:30:57 GMT Received: from zhenhuah-gv.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; Tue, 30 Jul 2024 03:30:54 -0700 From: Zhenhua Huang To: , , , CC: , , , , , , Zhenhua Huang Subject: [PATCH 1/1] iommu/arm-smmu-qcom: remove runtime pm enabling for TBU driver Date: Tue, 30 Jul 2024 18:30:43 +0800 Message-ID: <1722335443-30080-1-git-send-email-quic_zhenhuah@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] 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: XjEMwOAqJCLO1XM-tP_-gvA0hscz3qUh X-Proofpoint-GUID: XjEMwOAqJCLO1XM-tP_-gvA0hscz3qUh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-30_11,2024-07-26_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 mlxlogscore=919 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407300075 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_113117_868449_0D0AE914 X-CRM114-Status: GOOD ( 14.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org TBU driver has no runtime pm support now, adding pm_runtime_enable() seems to be useless. Remove it. Signed-off-by: Zhenhua Huang --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c index 36c6b36ad4ff..aff2fe1fda13 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c @@ -566,7 +566,6 @@ static struct acpi_platform_list qcom_acpi_platlist[] = { static int qcom_smmu_tbu_probe(struct platform_device *pdev) { - struct device *dev = &pdev->dev; int ret; if (IS_ENABLED(CONFIG_ARM_SMMU_QCOM_DEBUG)) { @@ -575,11 +574,6 @@ static int qcom_smmu_tbu_probe(struct platform_device *pdev) return ret; } - if (dev->pm_domain) { - pm_runtime_set_active(dev); - pm_runtime_enable(dev); - } - return 0; }