From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753814AbbLQIjh (ORCPT ); Thu, 17 Dec 2015 03:39:37 -0500 Received: from down.free-electrons.com ([37.187.137.238]:56722 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751256AbbLQIjf convert rfc822-to-8bit (ORCPT ); Thu, 17 Dec 2015 03:39:35 -0500 From: Gregory CLEMENT To: Arnd Bergmann , "David S. Miller" Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nicolas Ferre , Thomas Petazzoni , devicetree@vger.kernel.org, Sascha Hauer , Russell King Subject: Re: [PATCH v3] net/macb: add support for resetting PHY using GPIO References: <1450290690-32369-1-git-send-email-gregory.clement@free-electrons.com> <6382531.CWmTLTEYMq@wuerfel> Date: Thu, 17 Dec 2015 09:39:32 +0100 In-Reply-To: <6382531.CWmTLTEYMq@wuerfel> (Arnd Bergmann's message of "Wed, 16 Dec 2015 20:10:14 +0100") Message-ID: <874mfhtqnv.fsf@free-electrons.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On mer., déc. 16 2015, Arnd Bergmann wrote: > On Wednesday 16 December 2015 19:31:30 Gregory CLEMENT wrote: >> diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c >> index 88c1e1a..35661aa 100644 >> --- a/drivers/net/ethernet/cadence/macb.c >> +++ b/drivers/net/ethernet/cadence/macb.c >> @@ -28,6 +28,7 @@ >> #include >> #include >> #include >> +#include >> #include >> #include > > Is this the patch that is already in linux-next? I've just checked and it is the v2 which is in linux-next. David applied it on Monday in his next branche but I was not aware of it. David, if I remebered well you do not remove patch from yout branch. So would you agree to take a follow-up patch on top of 5833e0526820 "net/macb: add support for resetting PHY using GPIO" ? I will fix the error found by Arnd and also use a better device tree binding (more future proof). Thanks, Gregory > > I needed an additional > > #include > > to avoid this build error on randconfig builds without GPIOLIB: > > drivers/net/ethernet/cadence/macb.c: In function 'macb_probe': > drivers/net/ethernet/cadence/macb.c:2908:19: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration] > bp->reset_gpio = devm_gpiod_get_optional(&bp->pdev->dev, "phy-reset", > ^ > drivers/net/ethernet/cadence/macb.c:2909:8: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function) > GPIOD_OUT_HIGH); > ^ > drivers/net/ethernet/cadence/macb.c:2909:8: note: each undeclared identifier is reported only once for each function it appears in > drivers/net/ethernet/cadence/macb.c: In function 'macb_remove': > drivers/net/ethernet/cadence/macb.c:2979:3: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration] > > > Arnd -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com