* [PATCH v2] mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE
@ 2025-07-31 8:35 Geert Uytterhoeven
2025-09-01 12:26 ` Miquel Raynal
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-07-31 8:35 UTC (permalink / raw)
To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rodrigo Vivi, Tomas Winkler, Alexander Usyskin, Raag Jadav,
Jani Nikula
Cc: linux-mtd, intel-gfx, intel-xe, linux-kernel, Geert Uytterhoeven
Intel Discrete Graphics non-volatile memory is only present on Intel
discrete graphics devices, and its auxiliary device is instantiated by
the Intel i915 and Xe2 DRM drivers. Hence add dependencies on DRM_I915
and DRM_XE, to prevent asking the user about this driver when
configuring a kernel without Intel graphics support.
Fixes: ceb5ab3cb6463795 ("mtd: add driver for intel graphics non-volatile memory device")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
- Use !=n as MTD_INTEL_DG can be built-in when DRM_I915 and DRM_XE are
modular,
- s/onlt/only/,
- s/intel/Intel/.
---
drivers/mtd/devices/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 46cebde79f34b0b7..e518dfeee654268a 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -185,8 +185,8 @@ config MTD_POWERNV_FLASH
config MTD_INTEL_DG
tristate "Intel Discrete Graphics non-volatile memory driver"
- depends on AUXILIARY_BUS
- depends on MTD
+ depends on AUXILIARY_BUS && MTD
+ depends on DRM_I915!=n || DRM_XE!=n || COMPILE_TEST
help
This provides an MTD device to access Intel Discrete Graphics
non-volatile memory.
--
2.43.0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE
2025-07-31 8:35 [PATCH v2] mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE Geert Uytterhoeven
@ 2025-09-01 12:26 ` Miquel Raynal
0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2025-09-01 12:26 UTC (permalink / raw)
To: Richard Weinberger, Vignesh Raghavendra, Rodrigo Vivi,
Tomas Winkler, Alexander Usyskin, Raag Jadav, Jani Nikula,
Geert Uytterhoeven
Cc: linux-mtd, intel-gfx, intel-xe, linux-kernel
On Thu, 31 Jul 2025 10:35:14 +0200, Geert Uytterhoeven wrote:
> Intel Discrete Graphics non-volatile memory is only present on Intel
> discrete graphics devices, and its auxiliary device is instantiated by
> the Intel i915 and Xe2 DRM drivers. Hence add dependencies on DRM_I915
> and DRM_XE, to prevent asking the user about this driver when
> configuring a kernel without Intel graphics support.
>
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE
commit: f544bf03a771ee746b908e9a08ecb97c65a35055
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-01 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31 8:35 [PATCH v2] mtd: MTD_INTEL_DG should depend on DRM_I915 or DRM_XE Geert Uytterhoeven
2025-09-01 12:26 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).