public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: "Yaniv Rosner" <yanivr@broadcom.com>
To: "Ben Hutchings" <bhutchings@solarflare.com>
Cc: "Yaniv Rosner" <yaniv.rosner@broadcom.com>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"Eilon Greenstein" <eilong@broadcom.com>
Subject: Re: [PATCH net-next 04/11] bnx2x: Add TX fault check for fiber PHYs
Date: Mon, 23 May 2011 09:46:24 +0300	[thread overview]
Message-ID: <1306133184.20872.100.camel@lb-tlvb-dmitry> (raw)
In-Reply-To: <1306128018.3456.35.camel@localhost>

On Sun, 2011-05-22 at 22:20 -0700, Ben Hutchings wrote:
> On Sun, 2011-05-22 at 14:32 +0300, Yaniv Rosner wrote:
> > In case TX fault is detected on Fiber PHYs, declare the link as down
> > until TX fault is gone.
> [...]
> > --- a/drivers/net/bnx2x/bnx2x_reg.h
> > +++ b/drivers/net/bnx2x/bnx2x_reg.h
> > @@ -6037,6 +6037,7 @@ Theotherbitsarereservedandshouldbezero*/
> >  #define MDIO_PMA_REG_BCM_CTRL		0x0096
> >  #define MDIO_PMA_REG_FEC_CTRL		0x00ab
> >  #define MDIO_PMA_REG_RX_ALARM_CTRL	0x9000
> > +#define MDIO_PMA_REG_TX_ALARM_CTRL	0x9001
> >  #define MDIO_PMA_REG_LASI_CTRL		0x9002
> >  #define MDIO_PMA_REG_RX_ALARM		0x9003
> >  #define MDIO_PMA_REG_TX_ALARM		0x9004
> 
> By the way, the LASI registers are already named in <linux/mdio.h>:

We will remove those private redundant definitions.

> 
> #define MDIO_PMA_LASI_RXCTRL	0x9000	/* RX_ALARM control */
> #define MDIO_PMA_LASI_TXCTRL	0x9001	/* TX_ALARM control */
> #define MDIO_PMA_LASI_CTRL	0x9002	/* LASI control */
> #define MDIO_PMA_LASI_RXSTAT	0x9003	/* RX_ALARM status */
> #define MDIO_PMA_LASI_TXSTAT	0x9004	/* TX_ALARM status */
> #define MDIO_PMA_LASI_STAT	0x9005	/* LASI status */
> 
> Ben.
> 

Thanks,
Yaniv



  reply	other threads:[~2011-05-23  6:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 11:32 [PATCH net-next 04/11] bnx2x: Add TX fault check for fiber PHYs Yaniv Rosner
2011-05-23  5:20 ` Ben Hutchings
2011-05-23  6:46   ` Yaniv Rosner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-06-01  7:27 Yaniv Rosner

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=1306133184.20872.100.camel@lb-tlvb-dmitry \
    --to=yanivr@broadcom.com \
    --cc=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=eilong@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=yaniv.rosner@broadcom.com \
    /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