[PATCH 0/6] Make devres cleanup and component compatible

Lucas De Marchi lucas.demarchi at intel.com
Wed Feb 12 20:05:36 UTC 2025


While trying to convert the xe driver probe sequence to use more devm, I
stumbled upon it not being compatible with component driver that is used
by xe to work with mei and audio.

First patch makes that possible with the 2nd and 3rd being some drive by
improvements.

The last 3 patches here are just to show it being used in xe,
but they require https://lore.kernel.org/intel-xe/20250212193600.475089-1-lucas.demarchi@intel.com/.
If this is acceptable I may even drop the first patch of that series and
convert it straight to devm rather than with an intermediate step.

Lucas De Marchi (6):
  drivers: base: devres: Allow to release group on device release
  drivers: base: devres: Fix find_group() documentation
  drivers: base: component: Add debug message for unbind
  drm/xe: Stop setting drvdata to NULL
  drm/xe: Switch from xe to devm actions
  drm/xe: Drop remove callback support

 drivers/base/component.c                |  3 +
 drivers/base/devres.c                   | 12 +++-
 drivers/gpu/drm/xe/display/xe_display.c |  4 +-
 drivers/gpu/drm/xe/xe_device.c          | 79 -------------------------
 drivers/gpu/drm/xe/xe_device.h          |  4 --
 drivers/gpu/drm/xe/xe_device_sysfs.c    |  6 --
 drivers/gpu/drm/xe/xe_device_types.h    | 17 ------
 drivers/gpu/drm/xe/xe_gsc_proxy.c       |  4 +-
 drivers/gpu/drm/xe/xe_pci.c             | 11 +---
 9 files changed, 20 insertions(+), 120 deletions(-)

-- 
2.48.1



More information about the dri-devel mailing list