lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B562DF4.70302@openwrt.org>
Date:	Tue, 19 Jan 2010 23:11:00 +0100
From:	Felix Fietkau <nbd@...nwrt.org>
To:	"Ha, Tristram" <Tristram.Ha@...rel.Com>
CC:	Dave Miller <davem@...emloft.net>, netdev@...r.kernel.org,
	linux-kernel@...r.kernel.org, Michael Buesch <mb@...sch.de>,
	Michał Mirosław <mirqus@...il.com>
Subject: Re: [PATCH 2.6.33 1/3] net: Micrel KSZ8841/2 PCI Ethernet driver

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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ