From: Jani Nikula <jani.nikula@intel.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org, Matteo Cypriani <mcy@lm7.fr>
Subject: Re: [PATCH] drm/i915: default to having backlight if VBT not available
Date: Tue, 24 Jun 2014 16:22:42 +0300 [thread overview]
Message-ID: <87ionq8msd.fsf@intel.com> (raw)
In-Reply-To: <20140618145949.GI5821@phenom.ffwll.local>
On Wed, 18 Jun 2014, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Tue, Jun 17, 2014 at 03:47:05PM +0300, Jani Nikula wrote:
>> Apparently there are Apple laptops with magic smoke for a VBIOS, which
>> we fail to find and use. Default to having and setting up backlight in
>> this case.
>>
>> This fixes a regression introduced by
>> commit c675949ec58ca50d5a3ae3c757892f1560f6e896
>> Author: Jani Nikula <jani.nikula@intel.com>
>> Date: Wed Apr 9 11:31:37 2014 +0300
>>
>> drm/i915: do not setup backlight if not available according to VBT
>>
>> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=77831
>> Reported-by: Matteo Cypriani <mcy@lm7.fr>
>> Cc: stable@vger.kernel.org # 3.15+
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Tested-by: Matteo Cypriani <mcy@lm7.fr>
Pushed to -fixes with Imre's IRC r-b.
BR,
Jani.
>
>> ---
>> drivers/gpu/drm/i915/intel_bios.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
>> index 1ee98f121a00..827498e081df 100644
>> --- a/drivers/gpu/drm/i915/intel_bios.c
>> +++ b/drivers/gpu/drm/i915/intel_bios.c
>> @@ -315,9 +315,6 @@ parse_lfp_backlight(struct drm_i915_private *dev_priv, struct bdb_header *bdb)
>> const struct bdb_lfp_backlight_data *backlight_data;
>> const struct bdb_lfp_backlight_data_entry *entry;
>>
>> - /* Err to enabling backlight if no backlight block. */
>> - dev_priv->vbt.backlight.present = true;
>> -
>> backlight_data = find_section(bdb, BDB_LVDS_BACKLIGHT);
>> if (!backlight_data)
>> return;
>> @@ -1088,6 +1085,9 @@ init_vbt_defaults(struct drm_i915_private *dev_priv)
>>
>> dev_priv->vbt.crt_ddc_pin = GMBUS_PORT_VGADDC;
>>
>> + /* Default to having backlight */
>> + dev_priv->vbt.backlight.present = true;
>> +
>> /* LFP panel data */
>> dev_priv->vbt.lvds_dither = 1;
>> dev_priv->vbt.lvds_vbt = 0;
>> --
>> 1.9.1
>>
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> +41 (0) 79 365 57 48 - http://blog.ffwll.ch
--
Jani Nikula, Intel Open Source Technology Center
prev parent reply other threads:[~2014-06-24 13:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 12:47 [PATCH] drm/i915: default to having backlight if VBT not available Jani Nikula
2014-06-18 14:59 ` Daniel Vetter
2014-06-24 13:22 ` Jani Nikula [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ionq8msd.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mcy@lm7.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox