Thomas Zimmermann
2023-Feb-15 16:15 UTC
[PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
Set the VGA bit for unblanking with macro constants instead of magic values. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de> --- drivers/gpu/drm/tiny/cirrus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/cirrus.c b/drivers/gpu/drm/tiny/cirrus.c index ad67fb895213..594bc472862f 100644 --- a/drivers/gpu/drm/tiny/cirrus.c +++ b/drivers/gpu/drm/tiny/cirrus.c @@ -509,7 +509,7 @@ static void cirrus_crtc_helper_atomic_enable(struct drm_crtc *crtc, cirrus_mode_set(cirrus, &crtc_state->mode); /* Unblank (needed on S3 resume, vgabios doesn't do it then) */ - outb(0x20, 0x3c0); + outb(VGA_AR_ENABLE_DISPLAY, VGA_ATT_W); drm_dev_exit(idx); } -- 2.39.1
Gerd Hoffmann
2023-Feb-16 11:33 UTC
[PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
On Wed, Feb 15, 2023 at 05:15:17PM +0100, Thomas Zimmermann wrote:> Set the VGA bit for unblanking with macro constants instead of magic > values. No functional changes.blank/unblank should work simliar to bochs (see commit 250e743915d4), that is maybe a nice thing to add of you modernize the driver anyway. take care, Gerd
Apparently Analagous Threads
- [PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
- [PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
- [PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
- [PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
- [PATCH 00/17] cirrus: Modernize the cirrus driver