Summary: | add device/name to /sys/class/hwmon/hwmonX/ to better follow hwmon practices | ||||||
---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | Henrik Asp <solenskiner> | ||||
Component: | DRM/Radeon | Assignee: | Default DRI bug account <dri-devel> | ||||
Status: | RESOLVED MOVED | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | medium | ||||||
Version: | unspecified | ||||||
Hardware: | x86-64 (AMD64) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Henrik Asp
2014-10-26 09:53:20 UTC
It does provide a name via /sys/class/hwmon/hwmonX/name. The driver calls hwmon_device_register_with_groups() and passes the name to hwmon. Oh yeah, it does, didnt notice that. That'll work =) None of my other devices do though. They all place name in the device folder. Created attachment 108466 [details] [review] possible fix (In reply to Henrik Asp from comment #2) > Oh yeah, it does, didnt notice that. That'll work =) > > None of my other devices do though. They all place name in the device folder. I'm not entirely sure how that's done off hand. I guess it may take the name from the device structure passed in. Does the attached patch fix it? Doesnt seem to have made any difference. Since i had to recompile i also upgraded from linux 3.16 to 3.17, and it seems fam15h_power moved hwmonX/device/name to hwmonX/name. dunno what to make of that... Might be worth asking the hwmon people. I'm not sure how hwmon decides where to hang the name element in the sysfs tree. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/552. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.