fbdev: tdfxfb: Program the initial video mode

If the card does not get bound to by fbcon set_par() never happens
and the initial video mode is not setup and the display detects
no signal.

Program the video mode and also clear the framebuffer memory so
random garbage isn't displayed.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Daniel Palmer 2026-07-31 21:19:14 +09:00 committed by Helge Deller
parent edfbc5d2ad
commit 0fc41be57d

View File

@ -1686,6 +1686,14 @@ static int tdfxfb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
goto out_err_iobase;
}
/*
* Program a video mode and clear the framebuffer now, this
* ensures the display comes up even if fbcon doesn't bind
* when the framebuffer is registered.
*/
tdfxfb_set_par(info);
memset_io(info->screen_base, 0, info->fix.smem_len);
if (register_framebuffer(info) < 0) {
printk(KERN_ERR "tdfxfb: can't register framebuffer\n");
fb_dealloc_cmap(&info->cmap);