[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171019193540.0F35.4A936039@socionext.com>
Date: Thu, 19 Oct 2017 19:35:40 +0900
From: Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: netdev@...r.kernel.org, Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
devicetree@...r.kernel.org,
Masami Hiramatsu <masami.hiramatsu@...aro.org>,
Jassi Brar <jaswinder.singh@...aro.org>
Subject: Re: [PATCH net-next v2 2/2] net: ethernet: socionext: add AVE ethernet driver
On Thu, 19 Oct 2017 09:29:03 +0900 <yamada.masahiro@...ionext.com> wrote:
> 2017-10-18 19:23 GMT+09:00 Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>:
> > On Mon, 16 Oct 2017 00:08:21 +0900 <yamada.masahiro@...ionext.com> wrote:
>
> >> priv->rst = devm_reset_control_get_optional_shared(dev, NULL);
> >> if (IS_ERR(priv->rst))
> >> return PTR_ERR(priv->rst);
> >
> > The clk and reset are optional in the driver.
> > Referring to your suggested method, I'll fix the part of clk and reset.
> >
>
>
> Why is clk optional?
Indeed. My check point was wrong.
This clk property should be treated as "required".
In v2, the clock enabling code moved to ndo_init().
Although probing the driver succeeds without clk,
enabling the driver fails clearly.
---
Best Regards,
Kunihiko Hayashi
Powered by blists - more mailing lists