[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <944397f9-442d-1943-03fd-91a6fdc8a141@samsung.com>
Date: Wed, 28 Apr 2021 17:31:10 +0200
From: Sylwester Nawrocki <s.nawrocki@...sung.com>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: linuxarm@...wei.com, mauro.chehab@...wei.com,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Kamil Debski <kamil@...as.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH v4 02/79] media: s6p_cec: decrement usage count if
disabled
On 28.04.2021 16:51, Mauro Carvalho Chehab wrote:
> There's a bug at s5p_cec_adap_enable(): if called to
> disable the device, it should call pm_runtime_put()
> instead of pm_runtime_disable(), as the goal here is to
> decrement the usage_count and not to disable PM runtime.
>
> Reported-by: Sylwester Nawrocki <s.nawrocki@...sung.com>
> Fixes: 1bcbf6f4b6b0 ("[media] cec: s5p-cec: Add s5p-cec driver")
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Thanks,
Reviewed-by: Sylwester Nawrocki <s.nawrocki@...sung.com>
There is a typo in the subject, s6p_cec -> s5p_cec.
> ---
> drivers/media/cec/platform/s5p/s5p_cec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/cec/platform/s5p/s5p_cec.c b/drivers/media/cec/platform/s5p/s5p_cec.c
> index 2a3e7ffefe0a..3c7c4c3c798c 100644
> --- a/drivers/media/cec/platform/s5p/s5p_cec.c
> +++ b/drivers/media/cec/platform/s5p/s5p_cec.c
> @@ -51,7 +51,7 @@ static int s5p_cec_adap_enable(struct cec_adapter *adap, bool enable)
> } else {
> s5p_cec_mask_tx_interrupts(cec);
> s5p_cec_mask_rx_interrupts(cec);
> - pm_runtime_disable(cec->dev);
> + pm_runtime_put(cec->dev);
> }
>
> return 0;
Powered by blists - more mailing lists