From: Stefan Roese <sr@denx.de>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, r.meier@siemens.com,
lukas.stockmann@siemens.com, f.fainelli@gmail.com
Subject: Re: [PATCH] net: phy: Add support for SMSC/Microchip LAN9303 3-port switch
Date: Fri, 28 Feb 2014 10:32:20 +0100 [thread overview]
Message-ID: <531057A4.5020607@denx.de> (raw)
In-Reply-To: <20140227.170240.1910151216729314077.davem@davemloft.net>
On 27.02.2014 23:02, David Miller wrote:
> From: Stefan Roese <sr@denx.de>
> Date: Thu, 27 Feb 2014 10:07:52 +0100
>
>> This driver exposes a sysfs interface to access the LAN9303 registers to
>> userspace. These sysfs files can be used to configure the switch.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>
> We have an abstraction for programming switch devices called DSA.
>
> Even if DSA doesn't fullfill your needs, doing adjustments using sysfs
> files in userland is going to be the worst user experience possible.
DSA would have been optimal for us, as we really want to expose the
external switch ports to the host cpu as (virtual) ethernet ports. But
as Florian already mentioned, this switch does not support DSA. Only
VLAN tagging with some special configuration options to make this setup
possible for us.
I'm not sure but perhaps its possible to use the kernel DSA
infrastructure for this switch after all? Are some non-DSA compatible
switches supported right now? I could not find any reference for such
non-DSA devices. Perhaps I missed something here.
> Every driver will export different things to tweak, each device will
> have different semantics and limitations for these settings, etc.
>
> Better is to come up with a real, types, interface for programming
> such devices and providing an implementation of that.
Right. Such a thing would be better. But as Florian already pointed out,
nothing like this is available in kernel.org right now. Thats the reason
why I chose to implement this "simple" driver, btw as done in
drivers/net/phy/spi_ks8995.c.
Thanks,
Stefan
next prev parent reply other threads:[~2014-02-28 9:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 9:07 [PATCH] net: phy: Add support for SMSC/Microchip LAN9303 3-port switch Stefan Roese
2014-02-27 22:02 ` David Miller
2014-02-27 22:21 ` Florian Fainelli
2014-03-11 15:49 ` Yegor Yefremov
2014-02-28 9:32 ` Stefan Roese [this message]
2014-02-28 18:00 ` David Miller
2014-03-11 20:11 ` Yegor Yefremov
2014-03-11 20:14 ` Florian Fainelli
2014-03-12 8:47 ` Yegor Yefremov
2014-03-12 8:55 ` Meier, Roger
2014-03-11 20:39 ` David Miller
2014-03-12 8:43 ` Yegor Yefremov
2014-03-12 20:21 ` Ben Hutchings
2014-03-13 22:42 ` Yegor Yefremov
2014-03-14 14:29 ` Ben Hutchings
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=531057A4.5020607@denx.de \
--to=sr@denx.de \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=lukas.stockmann@siemens.com \
--cc=netdev@vger.kernel.org \
--cc=r.meier@siemens.com \
/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).