[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3114f468-f454-4289-bc1f-befdadac9994@omp.ru>
Date: Fri, 27 Aug 2021 23:17:07 +0300
From: Sergey Shtylyov <s.shtylyov@....ru>
To: Biju Das <biju.das.jz@...renesas.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
CC: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
Andrew Lunn <andrew@...n.ch>,
Sergei Shtylyov <sergei.shtylyov@...il.com>,
"Geert Uytterhoeven" <geert+renesas@...der.be>,
Adam Ford <aford173@...il.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
<netdev@...r.kernel.org>, <linux-renesas-soc@...r.kernel.org>,
Chris Paterson <Chris.Paterson2@...esas.com>,
Biju Das <biju.das@...renesas.com>
Subject: Re: [PATCH net-next 13/13] ravb: Add reset support
On 8/25/21 10:01 AM, Biju Das wrote:
> Reset support is present on R-Car. Let's support it, if it is
> available.
>
> Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>
[...]
> diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
> index 7a144b45e41d..0f85f2d97b18 100644
> --- a/drivers/net/ethernet/renesas/ravb_main.c
> +++ b/drivers/net/ethernet/renesas/ravb_main.c
[...]
> @@ -2349,6 +2358,7 @@ static int ravb_probe(struct platform_device *pdev)
>
> pm_runtime_put(&pdev->dev);
> pm_runtime_disable(&pdev->dev);
> + reset_control_assert(rstc);
> return error;
> }
>
> @@ -2374,6 +2384,7 @@ static int ravb_remove(struct platform_device *pdev)
> netif_napi_del(&priv->napi[RAVB_BE]);
> ravb_mdio_release(priv);
> pm_runtime_disable(&pdev->dev);
> + reset_control_assert(priv->rstc);
> free_netdev(ndev);
> platform_set_drvdata(pdev, NULL);
>
Is it possible to get into/out of reset in open()/close() methods?
Otherwise, looks good (I'm not much into reset h/w)
Reviewed-by: Sergey Shtylyov <s.shtylyov@....ru>
MBR, Sergey
Powered by blists - more mailing lists