Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1414572 > unrolled thread

Re: [PATCH 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

Started byDavid Miller <davem@davemloft.net>
First post2016-06-06 05:20 +0200
Last post2016-06-06 05:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga David Miller <davem@davemloft.net> - 2016-06-06 05:20 +0200

#1414572 — Re: [PATCH 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

FromDavid Miller <davem@davemloft.net>
Date2016-06-06 05:20 +0200
SubjectRe: [PATCH 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga
Message-ID<rGTf3-7rN-3@gated-at.bofh.it>
From: <thloh@altera.com>
Date: Fri, 3 Jun 2016 02:07:15 -0700

> From: Tien Hock Loh <thloh@altera.com>
> 
> This adds support for TSE PCS that uses SGMII adapter when the phy-mode of
> the dwmac is set to sgmii
> 
> Signed-off-by: Tien Hock Loh <thloh@altera.com>

Please at least make an effort to use consistent coding style.

You rework this function to do this:

> -	if (!splitter_base)
> -		return;
> +	if (splitter_base) {

And then you add something like this:

> +	if ((tse_pcs_base) && (sgmii_adapter_base)) {
> +		tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed);
> +	}

Excessive parenthesis in the if() condition, and single statement
basic blocks do not get curly braces.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web