Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-30 Thread Sergey Ryazanov
2015-05-29 20:59 GMT+03:00 Andrew Lunn : > On Fri, May 29, 2015 at 10:36:49AM -0700, Mathieu Olivari wrote: >> Alternatively, we could have something similar to what happens for the phy >> in the wireless subsystems. Wireless PHYs are not registered as net_device >> but they can still be listed, qu

Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-29 Thread Andrew Lunn
On Fri, May 29, 2015 at 10:36:49AM -0700, Mathieu Olivari wrote: > Alternatively, we could have something similar to what happens for the phy > in the wireless subsystems. Wireless PHYs are not registered as net_device > but they can still be listed, queried or configured through netlink. It is a

RE: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-29 Thread Mathieu Olivari
...@resnulli.us; lei...@staticky.com; f...@skynet.be; pavel.nakonec...@skitlab.ru; j...@perches.com; sfel...@gmail.com; n...@openwrt.org; juh...@openwrt.org; devicet...@vger.kernel.org; linux-ker...@vger.kernel.org; netdev@vger.kernel.org Subject: Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-28 Thread Andrew Lunn
> Fair enough, are there other global "things" besides counters that could > deserve adding maybe some sort of global/master net_device to help query > switch-wide information? This was discussed a while back. I like the current abstraction, all interfaces are real interfaces you can send and rece

Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-28 Thread Florian Fainelli
Le 05/28/15 19:23, Andrew Lunn a écrit : > On Thu, May 28, 2015 at 06:58:14PM -0700, Florian Fainelli wrote: >> Le 05/28/15 18:42, Mathieu Olivari a écrit : >>> All switch registers can now be dumped using regmap/debugfs. >>> >>> \# cat /sys/kernel/debug/regmap//registers >>> : 1302 >>> 000

Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-28 Thread Andrew Lunn
On Thu, May 28, 2015 at 06:58:14PM -0700, Florian Fainelli wrote: > Le 05/28/15 18:42, Mathieu Olivari a écrit : > > All switch registers can now be dumped using regmap/debugfs. > > > > \# cat /sys/kernel/debug/regmap//registers > > : 1302 > > 0004: ... > > ... > > ethtool has a register

Re: [PATCH 3/7] net: dsa: ar8xxx: add regmap support

2015-05-28 Thread Florian Fainelli
Le 05/28/15 18:42, Mathieu Olivari a écrit : > All switch registers can now be dumped using regmap/debugfs. > > \# cat /sys/kernel/debug/regmap//registers > : 1302 > 0004: ... > ... ethtool has a register dump command, which should already be supported by the current code in net/dsa/slave