<div dir="ltr">OK, I will ask if it is possible to share the code. <div><br></div><div>Thanks</div><div>BR</div><div>Tomek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 17, 2020 at 11:41 AM Greg KH <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jun 17, 2020 at 11:17:28AM +0200, Tomek The Messenger wrote:<br>
> OK, so I had to wrongly described something because in my company this is<br>
> popular approach to use /sys as some abstract layer to get access to<br>
> registers.<br>
<br>
Please do not do that.  There are valid kernel apis to grant access to<br>
registers easily, and creating random files and directories in the root<br>
of sysfs is not only the incorrect way of doing it, you are making more<br>
work for yourself to do so, adding more code that is not needed.<br>
<br>
Do you have a pointer to the code so that we can provide help with<br>
showing the "correct" way to do all of this?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div>