Re: [PATCH 2/2] net: dsa: mv88e6xxx: add SERDES registers to debugfs

2015-07-08 Thread Andrew Lunn
On Wed, Jul 08, 2015 at 04:36:19PM -0400, Vivien Didelot wrote: > Add read and write access to a SERDES column in the regs debugfs file > for the Fiber/SERDES registers. Humm. I don't really like this. These SERDES registers are in a complete different address space to the port, globalX registers

[PATCH 2/2] net: dsa: mv88e6xxx: add SERDES registers to debugfs

2015-07-08 Thread Vivien Didelot
Add read and write access to a SERDES column in the regs debugfs file for the Fiber/SERDES registers. For instance, imagining that the Fiber Control register value is 0x1940, you can clear the POWER_DOWN bit (11) with: echo SERDES 0 1140 > /sys/kernel/debug/dsa0/regs Signed-off-by: Vivien Di