[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZldEfH1Yy0cH2-OS@lore-desk>
Date: Wed, 29 May 2024 17:06:36 +0200
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: Vladimir Oltean <olteanv@...il.com>
Cc: netdev@...r.kernel.org, arinc.unal@...nc9.com, daniel@...rotopia.org,
dqfext@...il.com, sean.wang@...iatek.com, andrew@...n.ch,
f.fainelli@...il.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com,
linux-mediatek@...ts.infradead.org, lorenzo.bianconi83@...il.com,
nbd@....name
Subject: Re: [PATCH net-next] net: dsa: mt7530: Add debugfs support
> 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@...nel.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?
ack, regmap sysfs is fine to dump registers value.
It was just very handy for me to have the capability to change registers
during development (moreover we already have something similar in mt76).
Anyway it is probably something more related to development so I do not
have a strong opinion on it and we discard the patch.
Regards,
Lorenzo
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists