From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752609AbdJSKfp (ORCPT ); Thu, 19 Oct 2017 06:35:45 -0400 Received: from mx.socionext.com ([202.248.49.38]:44390 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbdJSKfn (ORCPT ); Thu, 19 Oct 2017 06:35:43 -0400 Date: Thu, 19 Oct 2017 19:35:40 +0900 From: Kunihiko Hayashi To: Masahiro Yamada Subject: Re: [PATCH net-next v2 2/2] net: ethernet: socionext: add AVE ethernet driver Cc: netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Rob Herring , Mark Rutland , linux-arm-kernel , Linux Kernel Mailing List , devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar In-Reply-To: References: <20171018192359.243C.4A936039@socionext.com> Message-Id: <20171019193540.0F35.4A936039@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.70 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Oct 2017 09:29:03 +0900 wrote: > 2017-10-18 19:23 GMT+09:00 Kunihiko Hayashi : > > On Mon, 16 Oct 2017 00:08:21 +0900 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