From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers
Date: Fri, 7 Jul 2017 16:46:02 -0400 [thread overview]
Message-ID: <20170707204602.GO22707@bill-the-cat> (raw)
In-Reply-To: <0ddf3f4b-0922-c751-21e1-addbe34831e2@denx.de>
On Fri, Jul 07, 2017 at 10:13:09PM +0200, Marek Vasut wrote:
> On 07/07/2017 08:36 PM, Alexandru Gagniuc wrote:
> > The KS8721BL and KSZ9021 PHYs are software-incompatible, yet they
> > share the same ID. Drivers for bothe PHYs cannot safely coexist, so
> > the solution was to use #ifdefs to select between the two drivers.
> >
> > As a result KSZ9031, which has a unique ID, is now caught in the
> > crossfire. Unless CONFIG_PHY_MICREL_KSZ9031 is defined, the KSZ9031
> > will not function properly, as some essential configuration code is
> > ifdef'd-out.
> >
> > To prevent such situations, move the KSZ9000 drivers to a separate
> > file, and place them under a separate Kconfig option. While it is
> > possible to enable both KSZ8000 and KSZ9000 drivers at the same time,
> > the assumption is that it is highly unlikely for a system to contain
> > both a KSZ8000 and a KSZ9000 PHY, and that only one of the drivers
> > will be enabled at any given time.
> >
> > Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
>
> The solution would be to either specify the PHY type in DT or platform
> data. This shuffling of ifdefs is IMO pointless.
That sounds like a good long term solution since we can't do things like
that until phylib is DMified.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170707/ade0af81/attachment.sig>
next prev parent reply other threads:[~2017-07-07 20:46 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 18:36 [U-Boot] [PATCH 1/5] net: phy: Remove duplicate Kconfig selection for Micrel KSZ9021 Alexandru Gagniuc
2017-07-07 18:36 ` [U-Boot] [PATCH 2/5] net: phy: micrel: Separate KSZ9000 drivers from KSZ8000 drivers Alexandru Gagniuc
2017-07-07 20:11 ` [U-Boot] [U-Boot, " Philipp Tomsich
2017-07-07 20:13 ` [U-Boot] [PATCH " Marek Vasut
2017-07-07 20:46 ` Tom Rini [this message]
2017-07-27 15:27 ` Alex
2017-07-27 22:11 ` Joe Hershberger
2017-08-07 20:32 ` [U-Boot] " Joe Hershberger
2017-07-07 18:36 ` [U-Boot] [PATCH 3/5] configs: Replace deprecated Micrel defines with PHY_MICREL_KSZ90X1 Alexandru Gagniuc
2017-07-27 22:12 ` Joe Hershberger
2017-07-27 23:07 ` Alex
2017-08-01 16:40 ` Joe Hershberger
2017-08-01 16:50 ` Alexandru Gagniuc
2017-08-02 0:19 ` [U-Boot] [PATCH 1/2] Move PHYLIB to Kconfig Alexandru Gagniuc
2017-08-02 0:20 ` [U-Boot] [PATCH 2/2] Move PHY_MICREL and PHY_MICREL_KSZ90X1 " Alexandru Gagniuc
2017-08-02 14:35 ` Joe Hershberger
2017-08-07 21:08 ` [U-Boot] " Joe Hershberger
2017-08-02 14:35 ` [U-Boot] [PATCH 1/2] Move PHYLIB " Joe Hershberger
2017-08-07 21:08 ` [U-Boot] " Joe Hershberger
2017-08-01 16:41 ` [U-Boot] [PATCH 3/5] configs: Replace deprecated Micrel defines with PHY_MICREL_KSZ90X1 Joe Hershberger
2017-08-07 20:32 ` [U-Boot] " Joe Hershberger
2017-07-07 18:36 ` [U-Boot] [PATCH 4/5] net: phy: micrel: Remove ksz90x1 drivers from micrel_ksz8xxx Alexandru Gagniuc
2017-07-07 20:11 ` [U-Boot] [U-Boot, " Philipp Tomsich
2017-07-27 22:13 ` [U-Boot] [PATCH " Joe Hershberger
2017-08-07 20:32 ` [U-Boot] " Joe Hershberger
2017-07-07 18:37 ` [U-Boot] [PATCH 5/5] net: phy: Hide Micrel KSZ9021 and KSZ9031 Kconfig options Alexandru Gagniuc
2017-07-07 20:11 ` [U-Boot] [U-Boot, " Philipp Tomsich
2017-07-27 22:14 ` [U-Boot] [PATCH " Joe Hershberger
2017-08-07 20:32 ` [U-Boot] " Joe Hershberger
2017-07-07 20:11 ` [U-Boot] [U-Boot, 1/5] net: phy: Remove duplicate Kconfig selection for Micrel KSZ9021 Philipp Tomsich
2017-07-27 22:05 ` [U-Boot] [PATCH " Joe Hershberger
2017-08-07 20:32 ` [U-Boot] " Joe Hershberger
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=20170707204602.GO22707@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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