From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60431C04FF3 for ; Mon, 24 May 2021 18:16:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2A584613F4 for ; Mon, 24 May 2021 18:16:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A584613F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kN1GfEtzC0aNR6OKlr0TCKOpbRHUxAf6PoxYtWuQtsA=; b=sS0qzACUuVjklCLVwmNgJPCzh oeeO6OHjSWcEpKtw4OYI8xoBosT/1RgOpOJfSzhpk5atRDD3S9apyf5+Ja9BRlJ5qIzBJ/Fzc/BtZ +cY9IVt5KTL0HhA9sMxGgDZrT+Zpa9uUDaF1KB7W899Fpgm+Sr7/w5WoqUokcRllDi85y4iT5PLgb 3mrjzwwLwCIalFaDy8FptoV5fzOr1w/Wn6HcCODa8fy4hhMVi6grX3jgCgH2BUCmczSQLSmDT+1xL PmaRTTCT/Ke1XBHGIgasOyoS19t6+rClh7vq23Hv0vngCcSADRPHFDmANttvfo5oYJfbGyN9KtdvM /MFkCOF+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1llF5P-001PcJ-OS; Mon, 24 May 2021 18:13:57 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lkzTi-000dpU-Lw for linux-arm-kernel@lists.infradead.org; Mon, 24 May 2021 01:34:00 +0000 Received: from dggems704-chm.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FpKRN1nYPzkYQT; Mon, 24 May 2021 09:30:56 +0800 (CST) Received: from dggpeml500017.china.huawei.com (7.185.36.243) by dggems704-chm.china.huawei.com (10.3.19.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 24 May 2021 09:33:43 +0800 Received: from [10.174.178.174] (10.174.178.174) by dggpeml500017.china.huawei.com (7.185.36.243) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 24 May 2021 09:33:42 +0800 Subject: Re: [PATCH -next] ARM: imx: add missing clk_disable_unprepare() in imx_mmdc_remove() To: Shawn Guo CC: , , References: <20210517111523.477889-1-yangyingliang@huawei.com> <20210523051145.GW8194@dragon> From: Yang Yingliang Message-ID: Date: Mon, 24 May 2021 09:33:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20210523051145.GW8194@dragon> Content-Language: en-US X-Originating-IP: [10.174.178.174] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500017.china.huawei.com (7.185.36.243) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210523_183358_914297_84C4973A X-CRM114-Status: GOOD ( 15.09 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021/5/23 13:11, Shawn Guo wrote: > On Mon, May 17, 2021 at 07:15:23PM +0800, Yang Yingliang wrote: >> clock source is prepared and enabled by clk_prepare_enable() >> in probe function, but no disable or unprepare in remove. >> >> Fixes: 9454a0caff6a ("ARM: imx: add mmdc ipg clock operation for mmdc") >> Reported-by: Hulk Robot >> Signed-off-by: Yang Yingliang >> --- >> arch/arm/mach-imx/mmdc.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c >> index 0dfd0ae7a63d..7d87fa8c70a9 100644 >> --- a/arch/arm/mach-imx/mmdc.c >> +++ b/arch/arm/mach-imx/mmdc.c >> @@ -77,6 +77,7 @@ static const struct of_device_id imx_mmdc_dt_ids[] = { >> { /* sentinel */ } >> }; >> >> +struct clk *mmdc_ipg_clk; > Missing static. But an even better change should be putting it into > struct mmdc_pmu, I guess. OK, I will send a v2 later. Thanks, Yang > > Shawn > >> #ifdef CONFIG_PERF_EVENTS >> >> static enum cpuhp_state cpuhp_mmdc_state; >> @@ -463,6 +464,7 @@ static int imx_mmdc_remove(struct platform_device *pdev) >> cpuhp_state_remove_instance_nocalls(cpuhp_mmdc_state, &pmu_mmdc->node); >> perf_pmu_unregister(&pmu_mmdc->pmu); >> kfree(pmu_mmdc); >> + clk_disable_unprepare(mmdc_ipg_clk); >> return 0; >> } >> >> @@ -536,7 +538,6 @@ static int imx_mmdc_probe(struct platform_device *pdev) >> { >> struct device_node *np = pdev->dev.of_node; >> void __iomem *mmdc_base, *reg; >> - struct clk *mmdc_ipg_clk; >> u32 val; >> int err; >> >> -- >> 2.25.1 >> > . _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel