Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/nvidia Call drm_fb_helper_prepare in tegra_drm_...



details:   https://anonhg.NetBSD.org/src/rev/1a33898f1577
branches:  trunk
changeset: 836057:1a33898f1577
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Sep 24 09:25:14 2018 +0000

description:
Call drm_fb_helper_prepare in tegra_drm_fb_init as required.

I can boot a kernel with this

jetsontk1# dmesg | grep fb
[   1.0000580] tegrafb0 at tegradrm0
[   1.0000580] tegrafb0: framebuffer at 0x9bc00000, size 1024x768, depth 32, stride 4096
[   1.0000580] wsdisplay0 at tegrafb0 kbdmux 1
jetsontk1#

diffstat:

 sys/arch/arm/nvidia/tegra_drm_fb.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e56953c63b94 -r 1a33898f1577 sys/arch/arm/nvidia/tegra_drm_fb.c
--- a/sys/arch/arm/nvidia/tegra_drm_fb.c        Mon Sep 24 05:47:33 2018 +0000
+++ b/sys/arch/arm/nvidia/tegra_drm_fb.c        Mon Sep 24 09:25:14 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_drm_fb.c,v 1.6 2017/12/26 14:54:52 jmcneill Exp $ */
+/* $NetBSD: tegra_drm_fb.c,v 1.7 2018/09/24 09:25:14 skrll Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_drm_fb.c,v 1.6 2017/12/26 14:54:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_drm_fb.c,v 1.7 2018/09/24 09:25:14 skrll Exp $");
 
 #include <drm/drmP.h>
 #include <drm/drm_crtc.h>
@@ -53,7 +53,8 @@
        int error;
 
        fbdev = kmem_zalloc(sizeof(*fbdev), KM_SLEEP);
-       fbdev->helper.funcs = &tegra_fb_helper_funcs;
+
+       drm_fb_helper_prepare(ddev, &fbdev->helper, &tegra_fb_helper_funcs);
 
        error = drm_fb_helper_init(ddev, &fbdev->helper, 2, 1);
        if (error) {



Home | Main Index | Thread Index | Old Index