Re: [PATCH v1 2/9] misc: Support Asus Transformer's EC access device
From: Greg Kroah-Hartman
Date: Tue Feb 03 2026 - 11:59:38 EST
On Tue, Feb 03, 2026 at 06:50:01PM +0200, Svyatoslav Ryhel wrote:
> > debugfs allows you to do much much more than simple stuff like
> > BIN_ATTR_RW(). Go wild there, but don't put debugging stuff in sysfs,
> > that is NOT what it is there for at all, but rather, that is exactly
> > what debugfs is for.
> >
>
> I am removing said stuff from sysfs, that is not what I am asking.
> Debugs does not allow to upload register values in a form of binary
> block. It allows only dumping via debugfs_create_blob or
> debugfs_create_regset32 but not writing. If you know examples of
> reading and writing register sets as binary data, please point me to
> it.
You can easily write your own given that debugfs allows you to use what
ever file operations you want to use for a file. Why not just use that?
> I am asking if it is possible only to preserve dockram_read/write
> functions in the code, without exposing it to sysfs.
Why would you want to do that?
confused,
greg k-h