Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp719704ybl; Fri, 10 Jan 2020 05:41:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxU9c3LaPi0AswAKc6hOo5fMh4IcIRVQgOv1JU9MYlh7AT9Uio1h2/YWfjhECZkvWtp30AO X-Received: by 2002:aca:f5c1:: with SMTP id t184mr2285617oih.23.1578663710019; Fri, 10 Jan 2020 05:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578663710; cv=none; d=google.com; s=arc-20160816; b=B/8hEcR4rWAQQKV6JL+dDvPsv7KZd+aCJRn5INXLLDMEnWm+NuCpiSQIl1VUcMSEyw h27MursPAf3xno//SaWpuBsW/O0/ngk8GMO+khuzY0UwrqqqYU0fl1MktLnfjF47RUlj 6/CQ9ZJL/f7avRbN25OHHtyZAGxrODwhYKPePgW8uJA8vYYVFZC+zkwxnJVtsGzkPkzr SfSdBaoJZbPqeDYZdgucoFjf2PIpwVmcYtBUi+Og4S7ktjOzyPYGGWzR8cEjxycKV5fG 17qcHeHTIv6THpXdZcAcY3ueXElcB8ACqbpZKSkqfrI5e5Hl58QjZrSBxNbVHUqrthL8 JqYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=MHkmQDKT0r4fQcBBc2IMAMBUeWf7ULY+mdGIXIE99eE=; b=w4GxbcKA/Z/Myiednntl/jNuoi3YmwhVKvMuUfzf8QRMvFSnU+C3bLFx5BZiKQDPnE 32rTIz/YaL9o1VYcJVxnVJrdll9IQlxRN9iF1Wkw6haOr2I3j+iUPWPcGFCe8RsPupmP QQE8zyGhOO+EF5oqxF52jMgXfDUw96/+8twO5XcvEg6Z32AwuCcoYt6iFkwmC1yaJ3O5 IAsBWegYnUnMj+60OgDamOiMF6WLk59xZKFPkng2swnloLgJXYUrT1UAlYlxMDNQY6Sv iK//6ezQOYj3VnmVWLSg2L0eI8EAL3GebGxPGNOXievWt2MCWk7aI1SeoZ/5Mg8UTPrq uwfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b="O//lvPbN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si1327666otr.272.2020.01.10.05.41.38; Fri, 10 Jan 2020 05:41:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b="O//lvPbN"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728290AbgAJNk2 (ORCPT + 99 others); Fri, 10 Jan 2020 08:40:28 -0500 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:55451 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbgAJNk1 (ORCPT ); Fri, 10 Jan 2020 08:40:27 -0500 Received: from [IPv6:2001:420:44c1:2577:c967:e1d3:183a:b8ef] ([IPv6:2001:420:44c1:2577:c967:e1d3:183a:b8ef]) by smtp-cloud8.xs4all.net with ESMTPA id puWTinFt8pLtbpuWXiQqCI; Fri, 10 Jan 2020 14:40:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1578663625; bh=MHkmQDKT0r4fQcBBc2IMAMBUeWf7ULY+mdGIXIE99eE=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=O//lvPbN29U0TCDl8YaGRGESV2JX23l8A0Y20wPkKhQ1ks/tuf+x5unexaa6kdXTR FxMWw3eNi7id6vuDo7U48E1X6LmgJLBKrPoQPWPfsU/PWNJY4bvtYyTZRGasAk0q0P STzuC6gf+2lBnFZFBemXD/K6XacpXE6XYveEnTRvJ2QTa+a6kffkPUx8obna9vc9lO BJ0zBVsVzvXvW5MPItBtkSopbqfIgn10T5fUPwg5Qz9Y1BmoSICXRVWr4gdremE3zb qadwjJkbh51NxAENND7Y50fQ2yM7oVYubS3SJNpp+ARUcviojJLb+TKnLttAlW420C QcEGKYTwEG3OA== Subject: Re: [PATCH v2 RFT] media: exynos4-is: add missed clk_disable_unprepare in remove To: Chuhong Yuan Cc: Kyungmin Park , Sylwester Nawrocki , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191219074824.15047-1-hslester96@gmail.com> From: Hans Verkuil Message-ID: Date: Fri, 10 Jan 2020 14:40:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191219074824.15047-1-hslester96@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJQy4Gzf1IEMxWqhmwovv3bnMJlsGgGc6jsSNp9UlIaXbaOBGCM0fOyz5BB9dlhYab0a2NZJ0/noauOBJA9ZdcBv5EwI55HwlTGDB1ynYVVBZd1h/03T O4hsaRHDYftag8lWWDgwg2HpVXRJhpL0ByqssqOfSMG60XEEof9G1kt9azOy0ZSPZ1lT5/O5D0cQV0zCMgR18p4XLKXVhsMurGXOmIUElYQL9sMt+3lOh/gy jOlDIECumrBQcgjW3o26Y/pWEB8nNRiD9pussXQNgPn0i1MPDERpuPiMuXkE7iNHDV3fykh/PXJfTdoc+86o0WxqlS2T97gne+u6LPaCMLyXZ2pZMcpoStfa vMYM8qzbUzlq0Jpv0evU2P9HgaPtlnkZe9rLpIbtE6PhroHQNgM8R4OxQRQd+pppfk+7G8FlWfBhZZwq2pg0CJ3GZahhjzMO+A9ZABOwepNQp9dwgraqkZAy jjO4/GgJIshj4mQuXHa36d+rkfhKky1U+f4Q1hkns0MAP8Ze2NZXAtWAe6ZBJheqQ60g8ZHgB19XDbOBm0v6ciHUr4sCCbZUMERG+M+o9AE8fWt8oaVS1ofT oS5ReaE/M81QCgIbqU7TVF4GBtAFAtZmMQ1Fn1RYo36CdQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Anyone able/willing to test this patch? Regards, Hans On 12/19/19 8:48 AM, Chuhong Yuan wrote: > This driver forgets to disable and unprepare clock when remove. > Add a call to clk_disable_unprepare() to fix it. > > Signed-off-by: Chuhong Yuan > --- > Changes in v2: > - Add a check of pm_runtime_enable() to match enable in probe. > - Add RFT tag. > > drivers/media/platform/exynos4-is/fimc-lite.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c > index e87c6a09205b..17de14fbba31 100644 > --- a/drivers/media/platform/exynos4-is/fimc-lite.c > +++ b/drivers/media/platform/exynos4-is/fimc-lite.c > @@ -1614,6 +1614,9 @@ static int fimc_lite_remove(struct platform_device *pdev) > struct fimc_lite *fimc = platform_get_drvdata(pdev); > struct device *dev = &pdev->dev; > > + if (!pm_runtime_enabled(dev)) > + clk_disable_unprepare(fimc->clock); > + > pm_runtime_disable(dev); > pm_runtime_set_suspended(dev); > fimc_lite_unregister_capture_subdev(fimc); >