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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B40AC433FE for ; Sat, 14 May 2022 02:57:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbiENC5F (ORCPT ); Fri, 13 May 2022 22:57:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbiENC4B (ORCPT ); Fri, 13 May 2022 22:56:01 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CAB42F6250 for ; Fri, 13 May 2022 19:12:59 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4L0TXX73tlzfbJx; Sat, 14 May 2022 10:11:40 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 14 May 2022 10:12:56 +0800 Received: from [10.174.178.174] (10.174.178.174) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 14 May 2022 10:12:56 +0800 Subject: Re: [PATCH -next] mtd: st_spi_fsm: add missing clk_disable_unprepare() stfsm_remove() To: Miquel Raynal CC: , , , References: <20220513100322.2664431-1-yangyingliang@huawei.com> <20220513122248.146d6944@xps13> From: Yang Yingliang Message-ID: <0d7ee262-6286-ec41-884e-3ab5863b68b4@huawei.com> Date: Sat, 14 May 2022 10:12:55 +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: <20220513122248.146d6944@xps13> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.178.174] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2022/5/13 18:22, Miquel Raynal wrote: > Hi, > > yangyingliang@huawei.com wrote on Fri, 13 May 2022 18:03:22 +0800: > >> Clock source is prepared and enabled by clk_prepare_enable() >> in probe function, but no disable or unprepare in remove function. > not disabled or unprepared > > Otherwise looks good. Do I need to resend it ? Thanks, Yang > >> Signed-off-by: Yang Yingliang >> --- >> drivers/mtd/devices/st_spi_fsm.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c >> index 983999c020d6..d3377b10fc0f 100644 >> --- a/drivers/mtd/devices/st_spi_fsm.c >> +++ b/drivers/mtd/devices/st_spi_fsm.c >> @@ -2126,6 +2126,8 @@ static int stfsm_remove(struct platform_device *pdev) >> { >> struct stfsm *fsm = platform_get_drvdata(pdev); >> >> + clk_disable_unprepare(fsm->clk); >> + >> return mtd_device_unregister(&fsm->mtd); >> } >> > > Thanks, > Miquèl > .