Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci only read the backlight level register on mobili...



details:   https://anonhg.NetBSD.org/src/rev/002014862a1a
branches:  trunk
changeset: 972839:002014862a1a
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jun 11 07:51:26 2020 +0000

description:
only read the backlight level register on mobility chips

diffstat:

 sys/dev/pci/radeonfb.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 48ac28ec7271 -r 002014862a1a sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Thu Jun 11 07:46:59 2020 +0000
+++ b/sys/dev/pci/radeonfb.c    Thu Jun 11 07:51:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeonfb.c,v 1.107 2020/06/11 07:46:59 macallan Exp $ */
+/*     $NetBSD: radeonfb.c,v 1.108 2020/06/11 07:51:26 macallan Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.107 2020/06/11 07:46:59 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.108 2020/06/11 07:51:26 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1022,7 +1022,10 @@
                callout_setfunc(&dp->rd_bl_lvds_co,
                                radeonfb_lvds_callout, dp);
                dp->rd_bl_on = 1;
-               dp->rd_bl_level = radeonfb_get_backlight(dp);
+               if (sc->sc_flags & RFB_MOB) {
+                       dp->rd_bl_level = radeonfb_get_backlight(dp);
+               } else
+                       dp->rd_bl_level = 128;
                radeonfb_set_backlight(dp, dp->rd_bl_level);
        }
 



Home | Main Index | Thread Index | Old Index