Thread (10 messages) 10 messages, 2 authors, 2017-10-19

Re: [PATCH net-next v2 2/2] net: ethernet: socionext: add AVE ethernet driver

flat view

From: Kunihiko Hayashi <hidden>
Date: 2017-10-19 10:35:45
Also in: linux-arm-kernel, lkml, netdev

On Thu, 19 Oct 2017 09:29:03 +0900 [off-list ref] wrote:
2017-10-18 19:23 GMT+09:00 Kunihiko Hayashi [off-list ref]:
quoted
On Mon, 16 Oct 2017 00:08:21 +0900 [off-list ref] wrote:
quoted
quoted
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


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help