Re: [PATCH] mmc: debugfs: parse all ext_csd via debug_fs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 25, 2011 at 1:43 PM, Sebastian Rasmussen <sebras@xxxxxxxxx> wrote:
>[Giuseppe]
>> This patch enhances the debug information reported
>> for the mmc card by parsing the extended CSD registers
>> obviously according to all the current specifications.
>
> Does this belong kernel or in userspace? I'm not sure, and
> I'm hoping that any of the old-timers here chime in on it.
> Anyway I supply you with a few comments on you patch
> below...

Since it's in debugfs we can have it as verbose and whatever
weird structure we wish. Userspace tools usually don't
depend on debugfs ... except for some :-/ (see recent
ftrace vs perf debates etc etc)

To implement getting at this data in a future-proof way
from userspace we should put it in sysfs.

And if it was in sysfs we would have to follow the rule
"one value per file" with files named after each CSD/etc
field. Then to make that human-readable you would need
a userspace tool, and preferrably it should also be
documented in Documentation/ABI/testing/*

And nothing really prevents us from doing both :-)

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux