On Sat, Mar 21, 2020 at 8:31 PM Jonathan Cameron <jic23@xxxxxxxxxxxxxxxxxxxxx> wrote: > On Thu, 19 Mar 2020 11:08:44 +0000 > Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx> wrote: > > iio debugfs register interface is quite handy because we can read a single register and write a value. > > > > regmap debugfs is only a dump of all registers, as far as I know (may have missed something). > > So this is something Mark has discussed before around regmap > and more generally IIRC. The issue is that a write > interface does make it somewhat easy to do really nasty things > in some drivers that use regmap (to the extent of setting boards > on fire etc). For IIO we are much safer - the worst you can do > is break the IIO driver. Sometimes IIO driver provides a sensor data about platform facilities, such as temperature of the die / chip or battery voltage threshold. > I've never been that fussed myself about the debugfs interfaces > as it's easy to hack them in when needed for actual debugging, but > have taken the view that if someone has enough of a usecase to > want to add them to a particular driver, then it's up to them. Good to know your p.o.v.! -- With Best Regards, Andy Shevchenko