netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: eilong@broadcom.com
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [net-next 11/36] bnx2x: MDC/MDIO CL45 IOCTLs
Date: Thu, 13 Aug 2009 14:57:36 +0100	[thread overview]
Message-ID: <1250171856.2778.8.camel@achroite> (raw)
In-Reply-To: <1250101388.27379.163.camel@lb-tlvb-eilong>

On Wed, 2009-08-12 at 21:23 +0300, Eilon Greenstein wrote:
> As suggested by Ben Hutchings <bhutchings@solarflare.com>, using the MDC/MDIO
> IOCTL
> 
> Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
> ---
[...]
> @@ -11419,6 +11458,14 @@ static int __devinit bnx2x_init_dev(struct pci_dev *pdev,
>  	dev->vlan_features |= NETIF_F_TSO6;
>  #endif
>  
> +	/* get_port_hwinfo() will set prtad and mmds properly */
> +	bp->mdio.prtad = MDIO_PRTAD_NONE;
> +	bp->mdio.mmds = 0;

I didn't see any code to change mmds.

> +	bp->mdio.mode_support = MDIO_SUPPORTS_C45 | MDIO_EMULATE_C22;

MDIO_EMULATE_C22 means the mdio module will map a few clause 22
registers to clause 45 (and reject access to all other clause 22
registers), and you will never be passed devad = MDIO_DEVAD_NONE.

If you want to support clause 22 register access yourself then use
MDIO_SUPPORTS_C22.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


      reply	other threads:[~2009-08-13 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12 18:23 [net-next 11/36] bnx2x: MDC/MDIO CL45 IOCTLs Eilon Greenstein
2009-08-13 13:57 ` Ben Hutchings [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=1250171856.2778.8.camel@achroite \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=eilong@broadcom.com \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).