[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0af3a926-fa28-2ddd-a6ef-1c516f674fc9@ti.com>
Date: Tue, 19 Nov 2019 08:45:30 -0600
From: Dan Murphy <dmurphy@...com>
To: Pankaj Sharma <pankj.sharma@...sung.com>,
<linux-can@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: <wg@...ndegger.com>, <mkl@...gutronix.de>, <davem@...emloft.net>,
<rcsekar@...sung.com>, <pankaj.dubey@...sung.com>,
Sriram Dash <sriram.dash@...sung.com>
Subject: Re: [PATCH 2/2] can: m_can_platform: remove unnecessary
m_can_class_resume() call
Pankaj
On 11/19/19 4:20 AM, Pankaj Sharma wrote:
> The function m_can_runtime_resume() is getting recursively called from
> m_can_class_resume(). This results in a lock up.
>
> We need not call m_can_class_resume() during m_can_runtime_resume().
>
> Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
>
> Signed-off-by: Pankaj Sharma <pankj.sharma@...sung.com>
> Signed-off-by: Sriram Dash <sriram.dash@...sung.com>
> ---
> drivers/net/can/m_can/m_can_platform.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c
> index 2eaa354..38ea5e6 100644
> --- a/drivers/net/can/m_can/m_can_platform.c
> +++ b/drivers/net/can/m_can/m_can_platform.c
> @@ -166,8 +166,6 @@ static int __maybe_unused m_can_runtime_resume(struct device *dev)
> if (err)
> clk_disable_unprepare(mcan_class->hclk);
>
> - m_can_class_resume(dev);
> -
> return err;
> }
>
Acked-by: Dan Murphy <dmurphy@...com>
Powered by blists - more mailing lists