All of lore.kernel.org
 help / color / mirror / Atom feed
From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 7/8] net: mvmdio: add xmdio support
Date: Thu, 8 Jun 2017 18:55:46 +0200	[thread overview]
Message-ID: <20170608165546.GC20216@lunn.ch> (raw)
In-Reply-To: <a60a0b26-62b1-7c9e-e846-215747dddb1f@gmail.com>

On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote:
> On 06/08/2017 02:26 AM, Antoine Tenart wrote:
> > This patch adds the xMDIO interface support in the mvmdio driver. This
> > interface is used in Ethernet controllers on Marvell 370, 7k and 8k (as
> > of now). The xSMI interface supported by this driver complies with the
> > IEEE 802.3 clause 45 (while the SMI interface complies with the clause
> > 22). The xSMI interface is used by 10GbE devices.
> 
> In the previous version you were properly defining a new compatibles
> strings for xmdio, but now you don't and instead you runtime select the
> operations based on whether MII_ADDR_C45 is set in the register which is
> fine from a functional perspective.
> 
> If I get this right, the xMDIO controller is actually a superset of the
> MDIO controller and has an extra MVMDIO_XSMI_ADDR_REG register to
> preform C45 accesses?
> 
> If that is the case (and looking at patch 8 that seems to be the case),
> you probably still need to define a new compatible string for that
> block, because it has a different register layout than its predecessor.

Yes, i think you need the compatible string to return -EOPNOSUP when
somebody tries to do a C45 access on the older IP which only has C22.

	 Andrew

WARNING: multiple messages have this Message-ID (diff)
From: Andrew Lunn <andrew@lunn.ch>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: Antoine Tenart <antoine.tenart@free-electrons.com>,
	davem@davemloft.net, jason@lakedaemon.net,
	gregory.clement@free-electrons.com,
	sebastian.hesselbarth@gmail.com,
	thomas.petazzoni@free-electrons.com, netdev@vger.kernel.org,
	mw@semihalf.com, linux@armlinux.org.uk,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 7/8] net: mvmdio: add xmdio support
Date: Thu, 8 Jun 2017 18:55:46 +0200	[thread overview]
Message-ID: <20170608165546.GC20216@lunn.ch> (raw)
In-Reply-To: <a60a0b26-62b1-7c9e-e846-215747dddb1f@gmail.com>

On Thu, Jun 08, 2017 at 09:42:21AM -0700, Florian Fainelli wrote:
> On 06/08/2017 02:26 AM, Antoine Tenart wrote:
> > This patch adds the xMDIO interface support in the mvmdio driver. This
> > interface is used in Ethernet controllers on Marvell 370, 7k and 8k (as
> > of now). The xSMI interface supported by this driver complies with the
> > IEEE 802.3 clause 45 (while the SMI interface complies with the clause
> > 22). The xSMI interface is used by 10GbE devices.
> 
> In the previous version you were properly defining a new compatibles
> strings for xmdio, but now you don't and instead you runtime select the
> operations based on whether MII_ADDR_C45 is set in the register which is
> fine from a functional perspective.
> 
> If I get this right, the xMDIO controller is actually a superset of the
> MDIO controller and has an extra MVMDIO_XSMI_ADDR_REG register to
> preform C45 accesses?
> 
> If that is the case (and looking at patch 8 that seems to be the case),
> you probably still need to define a new compatible string for that
> block, because it has a different register layout than its predecessor.

Yes, i think you need the compatible string to return -EOPNOSUP when
somebody tries to do a C45 access on the older IP which only has C22.

	 Andrew

  reply	other threads:[~2017-06-08 16:55 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08  9:26 [PATCH v2 0/8] net: mvmdio: add xSMI support Antoine Tenart
2017-06-08  9:26 ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 1/8] net: mvmdio: reorder headers alphabetically Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 2/8] net: mvmdio: use tabs for defines Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 3/8] net: mvmdio: use GENMASK for masks Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08 10:35   ` Sergei Shtylyov
2017-06-08 10:35     ` Sergei Shtylyov
2017-06-08  9:26 ` [PATCH v2 4/8] net: mvmdio: move the read valid check into its own function Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 5/8] net: mvmdio: introduce an ops structure Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 6/8] net: mvmdio: put the poll intervals in the " Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08  9:26 ` [PATCH v2 7/8] net: mvmdio: add xmdio support Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart
2017-06-08 16:03   ` Andrew Lunn
2017-06-08 16:03     ` Andrew Lunn
2017-06-09  6:40     ` Antoine Tenart
2017-06-09  6:40       ` Antoine Tenart
2017-06-09 20:00       ` Russell King - ARM Linux
2017-06-09 20:00         ` Russell King - ARM Linux
2017-06-08 16:42   ` Florian Fainelli
2017-06-08 16:42     ` Florian Fainelli
2017-06-08 16:55     ` Andrew Lunn [this message]
2017-06-08 16:55       ` Andrew Lunn
2017-06-09  6:39       ` Antoine Tenart
2017-06-09  6:39         ` Antoine Tenart
2017-06-09  8:25     ` Antoine Tenart
2017-06-09  8:25       ` Antoine Tenart
2017-06-09 13:26       ` Andrew Lunn
2017-06-09 13:26         ` Andrew Lunn
2017-06-09 14:09         ` Antoine Tenart
2017-06-09 14:09           ` Antoine Tenart
2017-06-09 14:49           ` Andrew Lunn
2017-06-09 14:49             ` Andrew Lunn
2017-06-09 14:56             ` Antoine Tenart
2017-06-09 14:56               ` Antoine Tenart
2017-06-09 15:03               ` Andrew Lunn
2017-06-09 15:03                 ` Andrew Lunn
2017-06-09 16:22                 ` Antoine Tenart
2017-06-09 16:22                   ` Antoine Tenart
2017-06-09 19:56                   ` Russell King - ARM Linux
2017-06-09 19:56                     ` Russell King - ARM Linux
2017-06-09 19:51             ` Russell King - ARM Linux
2017-06-09 19:51               ` Russell King - ARM Linux
2017-06-08  9:26 ` [PATCH v2 8/8] arm64: marvell: dts: add xmdio nodes for 7k/8k Antoine Tenart
2017-06-08  9:26   ` Antoine Tenart

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=20170608165546.GC20216@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.