drm/gma500: Backlight handling changes
Subsystems (3)
cover drm/gma500: Backlight handling changes
Hi All,
Here is a patch-series changing gma500's backlight handling to match the changes done to the other major x86 GPU drivers in the just landed backlight detection refactor patch series:
https://lore.kernel.org/dri-devel/[email protected]/
The main goal is here is to only register one backlight class device instead of registering both "acpi_video0" and "psb-bl" backlight class devices; in preparation for implementing the new backlight userspace-API from:
https://lore.kernel.org/dri-devel/[email protected]/
Regards,
Hans
Hans de Goede (4):
drm/gma500: Refactor backlight support
drm/gma500: Change registered backlight device type to raw/native drm/gma500: Don't register backlight when another backlight should be
used
drm/gma500: Call acpi_video_register_backlight()
drivers/gpu/drm/gma500/backlight.c | 102 +++++++++++++++-------- drivers/gpu/drm/gma500/cdv_device.c | 50 ++--------- drivers/gpu/drm/gma500/oaktrail_device.c | 65 ++------------- drivers/gpu/drm/gma500/opregion.c | 6 +- drivers/gpu/drm/gma500/psb_device.c | 73 +--------------- drivers/gpu/drm/gma500/psb_drv.c | 15 +--- drivers/gpu/drm/gma500/psb_drv.h | 13 +-- 7 files changed, 97 insertions(+), 227 deletions(-)
Signature · 1 line
2.37.2
PATCH 1/4 drm/gma500: Refactor backlight support
Refactor backlight support so that the gma_backlight_enable() / gma_backlight_disable() / gma_backlight_set() functions used by the Opregion handle will also work if no backlight_device gets registered.
This is a preparation patch for not registering the gma500's own backlight device when acpi_video should be used, since registering 2 backlight devices for a single display really is undesirable.
Since the acpi-video interface often uses the OpRegion we need to keep the OpRegion functional even when dev_priv->backlight_device is NULL.
As a result of this refactor the actual backlight_device_register() call is moved to the shared backlight.c code and all #ifdefs related to CONFIG_BACKLIGHT_CLASS_DEVICE are now also limited to backlight.c .
No functional changes intended.
This has been tested on a Packard Bell Dot SC (Intel Atom N2600, cedarview) and a Sony Vaio vpc-x11s1e (Intel N540, poulsbo) laptop.
--- drivers/gpu/drm/gma500/backlight.c | 94 +++++++++++++++--------- drivers/gpu/drm/gma500/cdv_device.c | 50 +++---------- drivers/gpu/drm/gma500/oaktrail_device.c | 65 ++-------------- drivers/gpu/drm/gma500/opregion.c | 6 +- drivers/gpu/drm/gma500/psb_device.c | 73 +----------------- drivers/gpu/drm/gma500/psb_drv.c | 13 +--- drivers/gpu/drm/gma500/psb_drv.h | 13 ++-- 7 files changed, 87 insertions(+), 227 deletions(-)
drivers/gpu/drm/gma500/backlight.c +60 -34
@@ -13,69 +13,95 @@#include "intel_bios.h" #include "power.h" -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE -static void do_gma_backlight_set (struct drm_device *dev) -{ -struct drm_psb_private *dev_priv =to_drm_psb_private (dev); -backlight_update_status (dev_priv->backlight_device); -} -#endif -void gma_backlight_enable (struct drm_device *dev) { -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); + dev_priv->backlight_enabled = true; -if (dev_priv->backlight_device) { - dev_priv->backlight_device->props.brightness = dev_priv->backlight_level; -do_gma_backlight_set (dev); - } -#endif + dev_priv->ops->backlight_set (dev, dev_priv->backlight_level); }void gma_backlight_disable (struct drm_device *dev) { -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); + dev_priv->backlight_enabled = false; -if (dev_priv->backlight_device) { - dev_priv->backlight_device->props.brightness =0 ; -do_gma_backlight_set (dev); - } -#endif + dev_priv->ops->backlight_set (dev,0 ); }void gma_backlight_set (struct drm_device *dev,int v) { -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); + dev_priv->backlight_level = v; -if (dev_priv->backlight_device && dev_priv->backlight_enabled) { - dev_priv->backlight_device->props.brightness = v; -do_gma_backlight_set (dev); - } -#endif +if (dev_priv->backlight_enabled) + dev_priv->ops->backlight_set (dev, v); } +static int gma_backlight_get_brightness (struct backlight_device *bd) +{ +struct drm_device *dev =bl_get_data (bd); +struct drm_psb_private *dev_priv =to_drm_psb_private (dev); + +if (dev_priv->ops->backlight_get) +return dev_priv->ops->backlight_get (dev); + +return dev_priv->backlight_level; +} + +static int gma_backlight_update_status (struct backlight_device *bd) +{ +struct drm_device *dev =bl_get_data (bd); +int level = bd->props.brightness; + +/* Percentage 1-100% being valid */ +if (level <1 ) + level =1 ; + +gma_backlight_set (dev, level); +return 0 ; +} + +static const struct backlight_ops gma_backlight_ops = { + .get_brightness = gma_backlight_get_brightness, + .update_status = gma_backlight_update_status, +}; +int gma_backlight_init (struct drm_device *dev) { -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); +struct backlight_properties props = {}; +int ret; + dev_priv->backlight_enabled = true; -return dev_priv->ops->backlight_init (dev); -#else -return 0 ; + dev_priv->backlight_level =100 ; + + ret = dev_priv->ops->backlight_init (dev); +if (ret) +return ret; + +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE + props.brightness = dev_priv->backlight_level; + props.max_brightness =PSB_MAX_BRIGHTNESS ; + props.type =BACKLIGHT_PLATFORM ; + + dev_priv->backlight_device = +backlight_device_register (dev_priv->ops->backlight_name, + dev->dev, dev, + &gma_backlight_ops, &props); +if (IS_ERR (dev_priv->backlight_device)) +return PTR_ERR (dev_priv->backlight_device);#endif + +return 0 ; }void gma_backlight_exit (struct drm_device *dev) {#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); -if (dev_priv->backlight_device) { - dev_priv->backlight_device->props.brightness =0 ; -backlight_update_status (dev_priv->backlight_device); + +if (dev_priv->backlight_device)backlight_device_unregister (dev_priv->backlight_device); - }#endif }
drivers/gpu/drm/gma500/cdv_device.c +9 -41
106 lines not on this page · raw message
drivers/gpu/drm/gma500/oaktrail_device.c +5 -60
113 lines not on this page · raw message
drivers/gpu/drm/gma500/opregion.c +1 -5
@@ -150,21 +150,17 @@ static u32 asle_set_backlight(struct drm_device *dev, u32 bclp) {struct drm_psb_private *dev_priv =to_drm_psb_private (dev);struct opregion_asle *asle = dev_priv->opregion.asle; -struct backlight_device *bd = dev_priv->backlight_device;DRM_DEBUG_DRIVER ("asle set backlight %x\n" , bclp);if (!(bclp &ASLE_BCLP_VALID ))return ASLE_BACKLIGHT_FAILED ; -if (bd ==NULL ) -return ASLE_BACKLIGHT_FAILED ; - bclp &=ASLE_BCLP_MSK ;if (bclp >255 )return ASLE_BACKLIGHT_FAILED ; -gma_backlight_set (dev, bclp * bd->props.max_brightness /255 ); +gma_backlight_set (dev, bclp *PSB_MAX_BRIGHTNESS /255 ); asle->cblv = (bclp *0x64 ) /0xff |ASLE_CBLV_VALID ;
drivers/gpu/drm/gma500/psb_device.c +4 -69
109 lines not on this page · raw message
drivers/gpu/drm/gma500/psb_drv.c +1 -12
@@ -169,8 +169,7 @@ static void psb_driver_unload(struct drm_device *dev)/* TODO: Kill vblank etc here */ -if (dev_priv->backlight_device) -gma_backlight_exit (dev); +gma_backlight_exit (dev);psb_modeset_cleanup (dev);gma_irq_uninstall (dev);
@@ -415,16 +414,6 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags)return ret; } -static inline void get_brightness (struct backlight_device *bd) -{ -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE -if (bd) { - bd->props.brightness = bd->ops->get_brightness (bd); -backlight_update_status (bd); - } -#endif -} -static int psb_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent) {struct drm_psb_private *dev_priv;
drivers/gpu/drm/gma500/psb_drv.h +7 -6
@@ -172,6 +172,8 @@#define PSB_WATCHDOG_DELAY (HZ * 2)#define PSB_LID_DELAY (HZ / 10) +#define PSB_MAX_BRIGHTNESS 100 +#define PSB_PWR_STATE_ON 1#define PSB_PWR_STATE_OFF 2
@@ -522,10 +524,6 @@ struct drm_psb_private {struct drm_fb_helper *fb_helper; -/* Panel brightness */ -int brightness; -int brightness_adjusted; -bool dsr_enable;u32 dsr_fb_update;bool dpi_panel_on[3 ];
@@ -594,10 +592,13 @@ struct psb_ops {void (*disable_sr)(struct drm_device *dev);void (*lvds_bl_power)(struct drm_device *dev,bool on); -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE +/* Backlight */ int (*backlight_init)(struct drm_device *dev); -#endif +void (*backlight_set)(struct drm_device *dev,int level); +int (*backlight_get)(struct drm_device *dev); +const char *backlight_name; +int i2c_bus;/* I2C bus identifier for Moorestown */ };
Signature · 1 line
2.37.2
Re: [PATCH 1/4] drm/gma500: Refactor backlight support
Hi Hans,
just a few minor things. See comments.
I like the diff - removes much more than it adds.
Sam
Quoted 24 lines · Hans de Goede
Refactor backlight support so that the
gma_backlight_enable()/gma_backlight_disable()/gma_backlight_set()functions used by the Opregion handle will also work if nobacklight_devicegets registered.This is a preparation patch for not registering the gma500's own backlight device when
acpi_videoshould be used, since registering 2 backlight devices for a single display really is undesirable.Since the acpi-video interface often uses the OpRegion we need to keep the OpRegion functional even when
dev_priv->backlight_deviceis NULL.As a result of this refactor the actual
backlight_device_register()call is moved to the sharedbacklight.ccode and all #ifdefs related toCONFIG_BACKLIGHT_CLASS_DEVICEare now also limited tobacklight.c.No functional changes intended.
This has been tested on a Packard Bell Dot SC (Intel Atom N2600, cedarview) and a Sony Vaio vpc-x11s1e (Intel N540, poulsbo) laptop.
Signed-off-by Hans de Goede <[email protected]>---
drivers/gpu/drm/gma500/backlight.c line 55
Quoted 4 lines
drivers/gpu/drm/gma500/backlight.c +4
-0+static int gma_backlight_update_status (struct backlight_device *bd) +{ +struct drm_device *dev =bl_get_data (bd); +int level = bd->props.brightness;
Here backlight_get_brightness(bd) should be used.
Quoted 16 lines
int
gma_backlight_init(struct drm_device *dev)
{drivers/gpu/drm/gma500/backlight.c +8
-4-#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); +struct backlight_properties props = {}; +int ret; + dev_priv->backlight_enabled = true; -return dev_priv->ops->backlight_init (dev); -#else -return 0 ; + dev_priv->backlight_level =100 ; + + ret = dev_priv->ops->backlight_init (dev); +if (ret) +return ret;
drivers/gpu/drm/gma500/backlight.c line 91
Quoted 10 lines
drivers/gpu/drm/gma500/backlight.c +10
-0+ +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE + props.brightness = dev_priv->backlight_level; + props.max_brightness =PSB_MAX_BRIGHTNESS ; + props.type =BACKLIGHT_PLATFORM ; + + dev_priv->backlight_device = +backlight_device_register (dev_priv->ops->backlight_name, + dev->dev, dev, + &gma_backlight_ops, &props);
Consider using the devm_backlight_device_register() variant. Then you can drop gma_backlight_exit() - I think..
Quoted 20 lines
drivers/gpu/drm/gma500/backlight.c +6
-4+if (IS_ERR (dev_priv->backlight_device)) +return PTR_ERR (dev_priv->backlight_device);#endif + +return 0 ; }void gma_backlight_exit (struct drm_device *dev) {#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); -if (dev_priv->backlight_device) { - dev_priv->backlight_device->props.brightness =0 ; -backlight_update_status (dev_priv->backlight_device); + +if (dev_priv->backlight_device)backlight_device_unregister (dev_priv->backlight_device); - }#endif }
Re: [PATCH 1/4] drm/gma500: Refactor backlight support
Hi Sam,
Quoted 4 lines · Sam Ravnborg
Hi Hans,
just a few minor things. See comments.
I like the diff - removes much more than it adds.
I'm glad you like it and thank you for the review.
Quoted 25 lines · Hans de Goede
Quoted 23 lines
Refactor backlight support so that the
gma_backlight_enable()/gma_backlight_disable()/gma_backlight_set()functions used by the Opregion handle will also work if nobacklight_devicegets registered.This is a preparation patch for not registering the gma500's own backlight device when
acpi_videoshould be used, since registering 2 backlight devices for a single display really is undesirable.Since the acpi-video interface often uses the OpRegion we need to keep the OpRegion functional even when
dev_priv->backlight_deviceis NULL.As a result of this refactor the actual
backlight_device_register()call is moved to the sharedbacklight.ccode and all #ifdefs related toCONFIG_BACKLIGHT_CLASS_DEVICEare now also limited tobacklight.c.No functional changes intended.
This has been tested on a Packard Bell Dot SC (Intel Atom N2600, cedarview) and a Sony Vaio vpc-x11s1e (Intel N540, poulsbo) laptop.
Signed-off-by Hans de Goede <[email protected]>---
Quoted 6 lines
drivers/gpu/drm/gma500/backlight.c line 55
Quoted 4 lines
drivers/gpu/drm/gma500/backlight.c +4
-0+static int gma_backlight_update_status (struct backlight_device *bd) +{ +struct drm_device *dev =bl_get_data (bd); +int level = bd->props.brightness;Here
backlight_get_brightness(bd)should be used.
Ack, but the old set methods all 3 used:
int level = bd->props.brightness;
So that would be a small functional / behavior change.
As such I would prefer to split using backlight_get_brightness(bd) out into a separate patch for version 2 of the series. Like how I also made the change from type = BACKLIGHT_PLATFORM -> type = BACKLIGHT_RAW a separate change.
Would that be ok with you ?
Quoted 23 lines
Quoted 23 lines
int
gma_backlight_init(struct drm_device *dev)
{drivers/gpu/drm/gma500/backlight.c +13
-4-#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); +struct backlight_properties props = {}; +int ret; + dev_priv->backlight_enabled = true; -return dev_priv->ops->backlight_init (dev); -#else -return 0 ; + dev_priv->backlight_level =100 ; + + ret = dev_priv->ops->backlight_init (dev); +if (ret) +return ret; + +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE + props.brightness = dev_priv->backlight_level; + props.max_brightness =PSB_MAX_BRIGHTNESS ; + props.type =BACKLIGHT_PLATFORM ;
Quoted 8 lines
drivers/gpu/drm/gma500/backlight.c line 91
Quoted 5 lines
drivers/gpu/drm/gma500/backlight.c +5
-0+ + dev_priv->backlight_device = +backlight_device_register (dev_priv->ops->backlight_name, + dev->dev, dev, + &gma_backlight_ops, &props);Consider using the
devm_backlight_device_register()variant. Then you can dropgma_backlight_exit()- I think..
The problem is the rest of the driver does not use devm_foo functions, so then psb_driver_unload() which runs before the devm cleanup functions will already release various iommap-s before the backlight is unregistered.
This leaves a race where the backlight device could be poked and then try to use no longer valid pointers in the main driver struct to write to the hw.
Regards,
Hans
Quoted 22 lines
Quoted 21 lines
drivers/gpu/drm/gma500/backlight.c +6
-4+if (IS_ERR (dev_priv->backlight_device)) +return PTR_ERR (dev_priv->backlight_device);#endif + +return 0 ; }void gma_backlight_exit (struct drm_device *dev) {#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); -if (dev_priv->backlight_device) { - dev_priv->backlight_device->props.brightness =0 ; -backlight_update_status (dev_priv->backlight_device); + +if (dev_priv->backlight_device)backlight_device_unregister (dev_priv->backlight_device); - }#endif }
Re: [PATCH 1/4] drm/gma500: Refactor backlight support
Hi Hans,
Quoted 11 lines
Quoted 6 lines
drivers/gpu/drm/gma500/backlight.c line 55
Quoted 4 lines
drivers/gpu/drm/gma500/backlight.c +4
-0+static int gma_backlight_update_status (struct backlight_device *bd) +{ +struct drm_device *dev =bl_get_data (bd); +int level = bd->props.brightness;Here
backlight_get_brightness(bd)should be used.Ack, but the old set methods all 3 used:
int level = bd->props.brightness;
Quoted 8 lines
So that would be a small functional / behavior change.
As such I would prefer to split using
backlight_get_brightness(bd)out into a separate patch for version 2 of the series. Like how I also made the change from type =BACKLIGHT_PLATFORM-> type =BACKLIGHT_RAWa separate change.Would that be ok with you ?
That would be perfect!
Quoted 32 lines
Quoted 23 lines
Quoted 23 lines
int
gma_backlight_init(struct drm_device *dev)
{drivers/gpu/drm/gma500/backlight.c +13
-4-#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE struct drm_psb_private *dev_priv =to_drm_psb_private (dev); +struct backlight_properties props = {}; +int ret; + dev_priv->backlight_enabled = true; -return dev_priv->ops->backlight_init (dev); -#else -return 0 ; + dev_priv->backlight_level =100 ; + + ret = dev_priv->ops->backlight_init (dev); +if (ret) +return ret; + +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE + props.brightness = dev_priv->backlight_level; + props.max_brightness =PSB_MAX_BRIGHTNESS ; + props.type =BACKLIGHT_PLATFORM ;Quoted 8 lines
drivers/gpu/drm/gma500/backlight.c line 91
Quoted 5 lines
drivers/gpu/drm/gma500/backlight.c +5
-0+ + dev_priv->backlight_device = +backlight_device_register (dev_priv->ops->backlight_name, + dev->dev, dev, + &gma_backlight_ops, &props);Consider using the
devm_backlight_device_register()variant. Then you can dropgma_backlight_exit()- I think..
Quoted 6 lines
The problem is the rest of the driver does not use
devm_foofunctions, so thenpsb_driver_unload()which runs before the devm cleanup functions will already release various iommap-s before the backlight is unregistered.This leaves a race where the backlight device could be poked and then try to use no longer valid pointers in the main driver struct to write to the hw.
Thanks for the explanation. When someone update the driver to devn_ then they surely will include backlight too.
(I do not try to persuade you to do it, your time is better spent on the bigger backlight picture).
Sam
PATCH 2/4 drm/gma500: Change registered backlight device type to raw/native
In reply to Hans de GoedeChange the type for the registered backlight class device from platform to raw/native.
The poulsbo/cedarview/oaktrail backlight support is using native GPU backlight control and as such the type should be raw (aka native) as is done by all the other native GPU backlight driver code.
Note this will not change much from userspace's point of view. poulsbo/cedarview laptops typically offer both an ACPI-video backlight interface as well as the native GPU backlight interface.
The /sys/class/backlight/acpi_video0 has a type of firmware and userspace typically looks for firmware devices before looking for platform devices. The typical standard lookup order is:
firmware -> platform -> raw
This means that both before and after this change typical userspace backlight consumers (sich as e.g. GNOME) will prefer the firmware acpi_video0 backlight device.
This has been tested on a Packard Bell Dot SC (Intel Atom N2600, cedarview) and a Sony Vaio vpc-x11s1e (Intel N540, poulsbo) laptop.
--- drivers/gpu/drm/gma500/backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/backlight.c +1 -1
@@ -83,7 +83,7 @@ int gma_backlight_init(struct drm_device *dev)#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE props.brightness = dev_priv->backlight_level; props.max_brightness =PSB_MAX_BRIGHTNESS ; - props.type =BACKLIGHT_PLATFORM ; + props.type =BACKLIGHT_RAW ; dev_priv->backlight_device = backlight_device_register(dev_priv->ops->backlight_name,
Signature · 1 line
2.37.2
PATCH 3/4 drm/gma500: Don't register backlight when another backlight should be used
In reply to Hans de GoedeBefore this commit when we want userspace to use the acpi_video backlight device we register both the GPU's native backlight device and acpi_video's firmware acpi_video# backlight device. This relies on userspace preferring firmware type backlight devices over native ones.
Registering 2 backlight devices for a single display really is undesirable, don't register the GPU's native backlight device when another backlight device should be used.
--- drivers/gpu/drm/gma500/backlight.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/gma500/backlight.c +8 -0
@@ -7,6 +7,8 @@* Authors: Eric Knopp */ +#include <acpi/video.h> +#include "psb_drv.h" #include "psb_intel_reg.h" #include "psb_intel_drv.h"
@@ -80,6 +82,12 @@ int gma_backlight_init(struct drm_device *dev)if (ret)return ret; +if (!acpi_video_backlight_use_native ()) { +drm_info (dev,"Skipping %s backlight registration\n" , + dev_priv->ops->backlight_name); +return 0 ; + } +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE props.brightness = dev_priv->backlight_level; props.max_brightness =PSB_MAX_BRIGHTNESS ;
Signature · 1 line
2.37.2
PATCH 4/4 drm/gma500: Call acpi_video_register_backlight()
In reply to Hans de GoedeOn machines without an Intel video opregion the acpi_video driver immediately probes the ACPI video bus and used to also immediately register acpi_video# backlight devices when supported.
Once the drm/kms driver then loaded later and possibly registered a native backlight device then the drivers/acpi/video_detect.c code unregistered the acpi_video0 device to avoid there being 2 backlight devices (when acpi_video_get_backlight_type()==native).
This means that userspace used to briefly see 2 devices and the disappearing of acpi_video0 after a brief time confuses the systemd backlight level save/restore code, see e.g.:
https://bbs.archlinux.org/viewtopic.php?id=269920
To fix this the ACPI video code has been modified to make backlight class device registration a separate step, relying on the drm/kms driver to ask for the acpi_video backlight registration after it is done setting up its native backlight device.
Add a call to the new acpi_video_register_backlight() function after setting up the gma500's native backlight, so that the acpi_video backlight device gets registered on systems where the gma500's native backlight device is not registered.
--- drivers/gpu/drm/gma500/psb_drv.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/gma500/psb_drv.c +2 -0
@@ -398,6 +398,8 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags)if (gma_encoder->type ==INTEL_OUTPUT_LVDS || gma_encoder->type ==INTEL_OUTPUT_MIPI ) { ret =gma_backlight_init (dev); +if (ret ==0 ) +acpi_video_register_backlight ();break ; } }
Signature · 1 line
2.37.2