[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250212200542.515493-1-lucas.demarchi@intel.com>
Date: Wed, 12 Feb 2025 12:05:36 -0800
From: Lucas De Marchi <lucas.demarchi@...el.com>
To: linux-kernel@...r.kernel.org
Cc: Rodrigo Vivi <rodrigo.vivi@...el.com>,
dri-devel@...ts.freedesktop.org,
Danilo Krummrich <dakr@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Lucas De Marchi <lucas.demarchi@...el.com>
Subject: [PATCH 0/6] Make devres cleanup and component compatible
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
Powered by blists - more mailing lists