From: Felix Fietkau <nbd@openwrt.org>
To: "Ha, Tristram" <Tristram.Ha@Micrel.Com>
Cc: "Dave Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"Michael Buesch" <mb@bu3sch.de>,
"Michał Mirosław" <mirqus@gmail.com>
Subject: Re: [PATCH 2.6.33 1/3] net: Micrel KSZ8841/2 PCI Ethernet driver
Date: Tue, 19 Jan 2010 23:11:00 +0100 [thread overview]
Message-ID: <4B562DF4.70302@openwrt.org> (raw)
In-Reply-To: <14385191E87B904DBD836449AA30269D580AA0@MORGANITE.micrel.com>
On 2010-01-19 10:51 PM, Ha, Tristram wrote:
> Your work looks interesting, but rtl8036 seems to use MDIO page
> registers to access its own internal registers. Micrel switches do
> not have that feature and so cannot use that way.
>
> I am looking at those PHY drivers and try to figure out how they work
> under mdio bus. I am using Micrel's own KSZ8695P and KSZ9692P SoC to
> develop and debug the KSZ884X PCI driver. KSZ9692P actually has two
> external PHYs so that the PHY driver can run on it. But the driver
> does not load because I probably need to add some hooks to the mdio
> bus driver to do the actual hardware access. Can somebody give me
> some pointers to this mdio bus support? Does the PHY driver create a
> user interface like eth0 so that it can be accessed using some tools
> like ethtool?
>
> Anyway I am afraid the phy driver model does not work on KSZ884X. I
> cannot think of how the mdio bus accesses hardware registers located
> on a PCI device.
The switch config core that i wrote is not specific to PHY drivers, it
can be used from ethernet drivers, GPIO based platform drivers or any
other kind of drivers as well.
It exports a simple netlink based config interface to user space that
allows you to get a list of all configurable attributes for the device,
ports and vlans, and change them.
I also have a config utility for it:
https://dev.openwrt.org/browser/trunk/package/swconfig/src
It currently depends on our config library (libuci), but that can be
removed easily, as the code for that is not spread over the core of the
utility.
Part of this code can also be used as a small library, if you want to
write your own utility.
- Felix
next prev parent reply other threads:[~2010-01-19 22:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-16 2:57 [PATCH 2.6.33 1/3] net: Micrel KSZ8841/2 PCI Ethernet driver Ha, Tristram
2010-01-16 9:20 ` David Miller
2010-01-19 20:03 ` Ha, Tristram
2010-01-19 21:40 ` Stephen Hemminger
2010-01-19 23:48 ` Ha, Tristram
2010-01-20 0:11 ` Stephen Hemminger
2010-01-20 0:34 ` Ha, Tristram
2010-01-20 0:50 ` Stephen Hemminger
2010-01-16 14:50 ` Alan Cox
2010-01-19 21:22 ` Ha, Tristram
2010-01-19 21:32 ` Alan Cox
2010-01-20 0:12 ` Ha, Tristram
2010-01-16 16:00 ` Michał Mirosław
2010-01-16 16:16 ` Felix Fietkau
2010-01-19 21:51 ` Ha, Tristram
2010-01-19 22:11 ` Felix Fietkau [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-25 18:14 Jens Rottmann
2010-02-08 21:36 Ha, Tristram
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=4B562DF4.70302@openwrt.org \
--to=nbd@openwrt.org \
--cc=Tristram.Ha@Micrel.Com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mb@bu3sch.de \
--cc=mirqus@gmail.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 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.