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


Groups > linux.kernel > #1653283

Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU

From Russell King - ARM Linux <linux@armlinux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU
Date 2017-05-30 16:40 +0200
Message-ID <tMQtr-7f-3@gated-at.bofh.it> (permalink)
References (3 earlier) <tMOBk-7lm-25@gated-at.bofh.it> <tMOUF-7tv-1@gated-at.bofh.it> <tMPnI-7TL-23@gated-at.bofh.it> <tMPH4-82d-27@gated-at.bofh.it> <tMQ0p-8oA-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, May 30, 2017 at 04:03:20PM +0200, Andrew Lunn wrote:
> Linux has a long history of reworking stuff in tree, when it has been
> shown to be inadequate in its first version. So long as the device
> tree binding does not need incompatible changes, this reworking is not
> an issue. My guess is, a lot of people have SFP sockets, not
> SFP+. Lets get SFP merged, and then rework it in tree to add SFP+.

Unfortunately, it _does_ require an incompatible DT change, and an
incompatible change with the MAC drivers.

The DT change is needed because the current DT model (modelled from
DSA) connects the SFP cage to the MAC device using (eg):

	sfp {
		...
		sfp,ethernet = <&eth2>;
	};

This completely breaks when you have SFP connected to a PHY, as is
the case with SFP+.  So the current binding is unusable for this
case.

Instead, what I have (and what I will propose) is to get rid of that
property entirely, replacing it with a property in the upstream device
(being a MAC or PHY), eg:

&eth2 {
	sfp = <&sfp>;
};

        p1_phy: ethernet-phy@8 {
                sfp = <&sfp_eth1>;
        };

The code changes behind this would make maintaining support for the
previous binding rather difficult, as the way the SFP code finds the
netdevice changes completely - I now have a separate "sfp-bus", which
both phylink and SFP sockets register into, and which is responsible
for connecting the two together.

This change would not be possible had SFP support already been merged.
The old binding was just wrong.

I pushed out some updates to the SFP support last week, and now that
I have dw-hdmi out of the way, I'm about to merge these incompatible
changes into the SFP branch, and as the branch is currently at 24
patches, I'm probably going to squash a lot of the patches in there
together at the same time - which'll make me feel a bit sorry for
anyone who's making use of the existing code, because they won't be
able to see what the changes have been.  However, that's the only way
to stop the patch set going over 30...

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 11:20 +0200
  Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Marc Zyngier <marc.zyngier@arm.com> - 2017-05-30 13:20 +0200
    Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 14:10 +0200
      Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Marc Zyngier <marc.zyngier@arm.com> - 2017-05-30 15:10 +0200
        Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 15:20 +0200
          Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Marc Zyngier <marc.zyngier@arm.com> - 2017-05-30 15:50 +0200
  Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Antoine Tenart <antoine.tenart@free-electrons.com> - 2017-05-30 14:10 +0200
  Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 14:30 +0200
    Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 14:40 +0200
      Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 15:00 +0200
        Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 15:30 +0200
        Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Andrew Lunn <andrew@lunn.ch> - 2017-05-30 15:30 +0200
          Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 15:40 +0200
          Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 15:50 +0200
            Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Andrew Lunn <andrew@lunn.ch> - 2017-05-30 16:10 +0200
              Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 16:40 +0200
            Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-05-30 16:30 +0200
          Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 16:40 +0200
            Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Andrew Lunn <andrew@lunn.ch> - 2017-05-30 17:10 +0200
              Re: [PATCH 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-05-30 17:20 +0200

csiph-web