[PATCH net-next] net: dsa: mt7530: Add debugfs support
Vladimir Oltean
olteanv at gmail.com
Wed May 29 06:31:30 PDT 2024
Hi Lorenzo,
On Wed, May 29, 2024 at 12:54:37PM +0200, Lorenzo Bianconi wrote:
> Introduce debugfs support for mt7530 dsa switch.
> Add the capability to read or write device registers through debugfs:
>
> $echo 0x7ffc > regidx
> $cat regval
> 0x75300000
>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
Apart from the obvious NACK on permitting user space to alter random
registers outside of the driver's control.
Have you looked at /sys/kernel/debug/regmap/? Or at ethtool --register-dump?
More information about the Linux-mediatek
mailing list