From: David Miller <davem@davemloft.net>
To: f.fainelli@gmail.com
Cc: netdev@vger.kernel.org, jogo@openwrt.org, nbd@openwrt.org,
alexander.duyck@gmail.com, jhs@mojatatu.com,
kernel@wantstofly.org
Subject: Re: RFC: DSA device/driver model revamp
Date: Fri, 12 Sep 2014 17:50:22 -0400 (EDT) [thread overview]
Message-ID: <20140912.175022.8867946355734452.davem@davemloft.net> (raw)
In-Reply-To: <5410CCA6.8080506@gmail.com>
From: Florian Fainelli <f.fainelli@gmail.com>
Date: Wed, 10 Sep 2014 15:11:50 -0700
> Proposed solution:
No objections from me.
> Open questions:
>
> There is some legacy code that will instantiate the special "dsa"
> platform device in arch/arm/mach-orion5x/*, this code needs to be
> transitioned one way or the other.
>
> The switches used by these Orion5x platforms are MDIO-connected
> switches, with the proposal above, these switch drivers will become PHY
> drivers matching a particular PHY ID on the MDIO bus.
>
> We currently do not have a way to attach platform specific data that is
> not coming from Device Tree to these PHY devices, something potentially
> not too intrusive could be to extend phy_register_fixup() with a void *
> argument to pass specific platform data, or create
> phy_register_fixup_with_data().
I'd rather you create a new interface which is strongly typed than
anything using void pointers.
prev parent reply other threads:[~2014-09-12 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 22:11 RFC: DSA device/driver model revamp Florian Fainelli
2014-09-12 21:50 ` David Miller [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=20140912.175022.8867946355734452.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.duyck@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=jhs@mojatatu.com \
--cc=jogo@openwrt.org \
--cc=kernel@wantstofly.org \
--cc=nbd@openwrt.org \
--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).