[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140720.211232.1172882419541843442.davem@davemloft.net>
Date: Sun, 20 Jul 2014 21:12:32 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: cyrille.pitchen@...el.com
Cc: nicolas.ferre@...el.com, linux-arm-kernel@...ts.infradead.org,
netdev@...r.kernel.org, soren.brinkmann@...inx.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/6] net/macb: configure for FIFO mode and non-gigabit
From: Cyrille Pitchen <cyrille.pitchen@...el.com>
Date: Fri, 18 Jul 2014 16:21:13 +0200
> From: Nicolas Ferre <nicolas.ferre@...el.com>
>
> This addition will also allow to configure DMA burst length.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@...el.com>
> Acked-by: Cyrille Pitchen <cyrille.pitchen@...el.com>
> ---
> drivers/net/ethernet/cadence/macb.c | 72 +++++++++++++++++++++++++++----------
> drivers/net/ethernet/cadence/macb.h | 19 ++++++++--
> 2 files changed, 71 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
> index e9daa07..0896d88 100644
> --- a/drivers/net/ethernet/cadence/macb.c
> +++ b/drivers/net/ethernet/cadence/macb.c
> @@ -264,7 +264,8 @@ static void macb_handle_link_change(struct net_device *dev)
> reg |= MACB_BIT(FD);
> if (phydev->speed == SPEED_100)
> reg |= MACB_BIT(SPD);
> - if (phydev->speed == SPEED_1000)
> + if (phydev->speed == SPEED_1000
> + && bp->caps & MACB_CAPS_GIGABIT_MODE_AVAILABLE)
Conditional operators end lines, they do not begin lines.
Also you must start the second and subsequent lines at the very
first column after the openning parenthesis of the first line.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists