From: Vignesh R Date: Wed, 27 Jul 2016 18:23:32 +0530 Subject: [U-Boot] [PATCH 3/4] net: cpsw: Add support to drive gpios for ethernet to be functional In-Reply-To: <20160726121337.GS14698@bill-the-cat> References: <20160725131023.30656-1-vigneshr@ti.com> <20160725131023.30656-4-vigneshr@ti.com> <20160725133846.GJ14698@bill-the-cat> <20160726121337.GS14698@bill-the-cat> Message-ID: <41de3c2d-e21f-1865-f3fb-062f3815037e@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 26 July 2016 05:43 PM, Tom Rini wrote: > On Tue, Jul 26, 2016 at 12:07:26PM +0530, R, Vignesh wrote: >> >> >> On 7/25/2016 7:08 PM, Tom Rini wrote: >>> On Mon, Jul 25, 2016 at 06:40:22PM +0530, Vignesh R wrote: >>> >>>> On DRA72 EVM, cpsw slaves may be muxed with other modules. This >>>> selection is controlled by a pcf gpio line. Add support for cpsw driver >>>> to acquire mode-gpios and select the appropriate slave using gpio APIs. >>>> >>>> Signed-off-by: Vignesh R >>> >>> Reviewed-by: Tom Rini >>> >>> Minor nit below: >>> >>>> @@ -1203,6 +1206,16 @@ static int cpsw_eth_ofdata_to_platdata(struct udevice *dev) >>>> return -ENOENT; >>>> } >>>> >>>> + >>>> + num_mode_gpios = gpio_get_list_count(dev, "mode-gpios"); >>> >>> Extra blank line added. >> >> I added blank line for readability. So, that code block handling >> toggling of "mode-gpios" is separated from the rest. I can remove that >> if that seems unnecessary. > > Two empty lines in a row just isn't done so yes please, thanks. Sorry, I overlooked two empty lines. Will fix this in v2. Thanks for the review. -- Regards Vignesh