All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Michael Schmitz <schmitzmic@gmail.com>,
	linux-m68k@vger.kernel.org, geert@linux-m68k.org
Cc: Miro Kropacek <miro.kropacek@gmail.com>, linux-fbdev@vger.kernel.org
Subject: Re: [PATCH v3 2/5] fbdev: Give atafb proper parent
Date: Thu, 20 Aug 2026 23:51:54 +0200	[thread overview]
Message-ID: <aa508c70-ccd3-4fc0-86fc-e45746e68405@gmx.de> (raw)
In-Reply-To: <20260819222838.21256-3-schmitzmic@gmail.com>

On 8/20/26 00:28, Michael Schmitz wrote:
> From: Miro Kropacek <miro.kropacek@gmail.com>
> 
> The atafb fb device registers no parent, causing a missing symlink
> (/sys/class/graphics/fb0/device). Xorg fbdevhw driver looks for that
> symlink when scanning for devices, so add a parent node for atafb.
> 
> The proper way to do that is use of framebuffer_alloc(), which
> requries refactoring atafb to move from static fb_info to allocation
> of fb_info by framebuffer_alloc().
> About the only location where a fb_info pointer cannot be passed
> is monspec setup in atafb_setup(). Store static monspecs there
> and copy into place after framebuffer_alloc().
> 
> Pass fb_info everywhere it's needed (detect, decode_var and
> do_fb_set_var functions), and remove the static fb_info struct.
> 
> Signed-off-by: Miro Kropacek <miro.kropacek@gmail.com>
> Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
> Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
> Cc: <linux-fbdev@vger.kernel.org>
> Link: https://lists.debian.org/debian-68k/2026/08/msg00000.html
> 
> ---
> 
> Changes in v3:
> 
> - fbdev: refactor atafb fb_info use to allow use of framebuffer_alloc()
>    (Thomas Zimmermann)
> ---
>   drivers/video/fbdev/atafb.c | 174 +++++++++++++++++++-----------------
>   1 file changed, 92 insertions(+), 82 deletions(-)
> 
> diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c
> index b8ed1c537293..a9be06ded5c9 100644
> --- a/drivers/video/fbdev/atafb.c
> +++ b/drivers/video/fbdev/atafb.c
> @@ -158,14 +158,6 @@ static int DontCalcRes = 0;
>   #define VMO_PREMASK		0x0c
>   #endif
>   
> -static struct fb_info fb_info = {
> -	.fix = {
> -		.id	= "Atari ",
> -		.visual	= FB_VISUAL_PSEUDOCOLOR,
> -		.accel	= FB_ACCEL_NONE,
> -	}
> -};
> -
>   static void *screen_base;	/* base address of screen */
>   static unsigned long phys_screen_base;	/* (only for Overscan) */
>   
> @@ -175,6 +167,12 @@ static int current_par_valid;
>   
>   static int mono_moni;
>   
> +/* monspecs passed by user */
> +
> +static __u32 mcap_hmin;		/* hfreq lower limit (Hz) */
> +static __u32 mcap_hmax;		/* hfreq upper limit (Hz) */
> +static __u16 mcap_vmin;		/* vfreq lower limit (Hz) */
> +static __u16 mcap_vmax;		/* vfreq upper limit (Hz) */
>   
>   #ifdef ATAFB_EXT
>   
> @@ -299,7 +297,7 @@ static int *MV300_reg = MV300_reg_8bit;
>   /* ++roman: This structure abstracts from the underlying hardware (ST(e),
>    * TT, or Falcon.
>    *
> - * int (*detect)(void)
> + * int (*detect)(*fb_info)

I fixed this comment up to become:
+ * int (*detect)(struct fb_info *info)

Other than that I've replaced the latest patch series by this series in
the fbdev for-next git tree.

Thanks!
Helge

  reply	other threads:[~2026-08-20 21:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19 22:28 [PATCH v3 0/5] m68k SuperVidel patches Michael Schmitz
2026-08-19 22:28 ` [PATCH v3 1/5] m68k: Fix atari mouse movement Michael Schmitz
2026-08-19 22:28 ` [PATCH v3 2/5] fbdev: Give atafb proper parent Michael Schmitz
2026-08-20 21:51   ` Helge Deller [this message]
2026-08-21  6:44     ` Michael Schmitz
2026-08-19 22:28 ` [PATCH v3 3/5] fbdev: Add support for further video bit depths on atafb:external Michael Schmitz
2026-08-19 22:28 ` [PATCH v3 4/5] fbdev: Add support for SuperVidel's SuperBlitter Michael Schmitz
2026-08-19 22:28 ` [PATCH v3 5/5] m68k: Add support for Svethlana Michael Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aa508c70-ccd3-4fc0-86fc-e45746e68405@gmx.de \
    --to=deller@gmx.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=miro.kropacek@gmail.com \
    --cc=schmitzmic@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.