[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <i63463tzmzyjwqvqgduwakdx26zzftj43yay5ytit6ll2hvg72@3azlq2glpmos>
Date: Tue, 7 Oct 2025 08:57:17 +0200
From: Uwe Kleine-König <u.kleine-koenig@...libre.com>
To: Javier Garcia <rampxxxx@...il.com>
Cc: deller@....de, tzimmermann@...e.de, linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org, shuah@...nel.org
Subject: Re: [PATCH v2] fbdev: mb862xxfbdrv: Make CONFIG_FB_DEVICE optional
On Mon, Oct 06, 2025 at 06:41:43PM +0200, Javier Garcia wrote:
> This patch wraps the relevant code blocks with `IS_ENABLED(ifdef CONFIG_FB_DEVICE)`,
stray "ifdef "
> allowing the driver to be built and used even if CONFIG_FB_DEVICE is not selected.
The driver built fine without FB_DEVICE already before, doesn't it?
> The sysfs only give access to show some controller and cursor registers so
> it's not needed to allow driver works correctly.
>
> This align with Documentation/drm/todo.rst
> "Remove driver dependencies on FB_DEVICE"
Given the above, I still don't understand that. (But maybe this can be
fixed by Helge's request to improve the commit message.)
> Signed-off-by: Javier Garcia <rampxxxx@...il.com>
> ---
> v1 -> v2:
> * Fix error and improvement , thanks Uwe Kleine-Koenig.
> * v1 https://lore.kernel.org/lkml/20251005173812.1169436-1-rampxxxx@gmail.com
>
>
> drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
> index ade88e7bc760..dc99b8c9ff0f 100644
> --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
> +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
> @@ -17,6 +17,7 @@
> #include <linux/module.h>
> #include <linux/init.h>
> #include <linux/interrupt.h>
> +#include "linux/kconfig.h"
I didn't need that during my build tests, also don't use "" here, but
<>.
> #include <linux/pci.h>
> #include <linux/of.h>
> #include <linux/of_address.h>
> [...]
Best regards
Uwe
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists