Re: [PATCH] sparc64: Expose mdesc to sysfs

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

 



From: John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Sep 2017 19:40:30 +0200

> On 09/19/2017 07:31 PM, David Miller wrote:
>> All of that complexity and knowledge of formatting properties this way
>> or that has no business in the kernel, and belongs completely in
>> userspace.
> 
> But that's not really contradicting to the fact that this information
> belongs to sysfs, not some obscure device node below /dev.
> 
> Basically every human-readable information from the kernel is provided
> through sysfs these days. Why should it be different for SPARC?

Every?

I disagree.

Properly printing openfirmware and mdesc properties requires context
(what type of bus or device is this node underneath, etc.) and
knowledge of how that property works.

The kernel has no business knowing how every current and future
property type, for every device type existing now and in the future,
should be handled.

Exporting the raw data allows having userspace decide what to do.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux