]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/hw_engine: define sysfs_ops on all directories
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Thu, 27 Mar 2025 12:26:47 +0000 (17:56 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Fri, 28 Mar 2025 13:06:34 +0000 (18:36 +0530)
commit40780b9760b561e093508d07b8b9b06c94ab201e
tree4ad10ef370ecaa62756ac6576ab8c49955a26dcf
parent32af900f2c6b1846fd3ede8ad36dd180d7e4ae70
drm/xe/hw_engine: define sysfs_ops on all directories

Sysfs_ops needs to be defined on all directories which
can have attr files with set/get method. Add sysfs_ops
to even those directories which is currently empty but
would have attr files with set/get method in future.
Leave .default with default sysfs_ops as it will never
have setter method.

V2(Himal/Rodrigo):
 - use single sysfs_ops for all dir and attr with set/get
 - add default ops as ./default does not need runtime pm at all

Fixes: 3f0e14651ab0 ("drm/xe: Runtime PM wake on every sysfs call")
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250327122647.886637-1-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c