public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: phy: breakdown PHY_*_FEATURES defines
Date: Mon, 11 Jan 2016 10:25:22 +0000	[thread overview]
Message-ID: <1452507921.3277.12.camel@synopsys.com> (raw)
In-Reply-To: <1450889014-21190-1-git-send-email-abrodkin@synopsys.com>

Hi Joe,

On Wed, 2015-12-23 at 19:43 +0300, Alexey Brodkin wrote:
> From: Florian Fainelli <f.fainelli@gmail.com>
> 
> Breakdown the PHY_*_FEATURES into per speed defines such that we can
> easily re-use them individually.
> 
> This is a copy of patch from Linux kernel, see
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e9fbdf176d2a7993b9d4c487b50c68d1c6019b2c
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>i
> Cc: Joe Hershberger <joe.hershberger@ni.com>
> ---
>  include/phy.h | 22 +++++++++++++++-------
>  1 file changed, 15 insertions(+), 7 deletions(-)
> 
> diff --git a/include/phy.h b/include/phy.h
> index 66cf61b..b793e90 100644
> --- a/include/phy.h
> +++ b/include/phy.h
> @@ -17,18 +17,26 @@
>  
>  #define PHY_MAX_ADDR 32
>  
> -#define PHY_BASIC_FEATURES	(SUPPORTED_10baseT_Half | \
> -				 SUPPORTED_10baseT_Full | \
> -				 SUPPORTED_100baseT_Half | \
> -				 SUPPORTED_100baseT_Full | \
> -				 SUPPORTED_Autoneg | \
> +#define PHY_DEFAULT_FEATURES	(SUPPORTED_Autoneg | \
>  				 SUPPORTED_TP | \
>  				 SUPPORTED_MII)
>  
> -#define PHY_GBIT_FEATURES	(PHY_BASIC_FEATURES | \
> -				 SUPPORTED_1000baseT_Half | \
> +#define PHY_10BT_FEATURES	(SUPPORTED_10baseT_Half | \
> +				 SUPPORTED_10baseT_Full)
> +
> +#define PHY_100BT_FEATURES	(SUPPORTED_100baseT_Half | \
> +				 SUPPORTED_100baseT_Full)
> +
> +#define PHY_1000BT_FEATURES	(SUPPORTED_1000baseT_Half | \
>  				 SUPPORTED_1000baseT_Full)
>  
> +#define PHY_BASIC_FEATURES	(PHY_10BT_FEATURES | \
> +				 PHY_100BT_FEATURES | \
> +				 PHY_DEFAULT_FEATURES)
> +
> +#define PHY_GBIT_FEATURES	(PHY_BASIC_FEATURES | \
> +				 PHY_1000BT_FEATURES)
> +
>  #define PHY_10G_FEATURES	(PHY_GBIT_FEATURES | \
>  				SUPPORTED_10000baseT_Full)
>  

Any chance for this one to be applied?

-Alexey

      reply	other threads:[~2016-01-11 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-23 16:43 [U-Boot] [PATCH] net: phy: breakdown PHY_*_FEATURES defines Alexey Brodkin
2016-01-11 10:25 ` Alexey Brodkin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452507921.3277.12.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox