X86 platform drivers
 help / color / mirror / Atom feed
From: Jonathan Woithe <jwoithe@just42.net>
To: Micha?? K??pie?? <kernel@kempniu.pl>
Cc: Darren Hart <dvhart@infradead.org>,
	Ville Syrjala <ville.syrjala@linux.intel.com>,
	Andy Shevchenko <andy@infradead.org>,
	platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH] platform/x86: fujitsu-laptop: Don't oops when FUJ02E3 is not presnt
Date: Tue, 26 Sep 2017 15:02:47 +0930	[thread overview]
Message-ID: <20170926053246.GC27920@marvin.atrad.com.au> (raw)
In-Reply-To: <20170926044908.GA9170@kmp-mobile.hq.kempniu.pl>

Hi Michal

On Tue, Sep 26, 2017 at 06:49:08AM +0200, Micha?? K??pie?? wrote:
> > Finally, it seems a proper fix would be to either not register the
> > backlight device if !fext or to check for !fext inside call_fext_func.
> 
> My draft patch series which splits off fujitsu-backlight includes the
> NULL check for fext inside the functions exposed by fujitsu-laptop.
> Sadly, I have not got round to submitting it yet.

It's probably similar to the patch I proposed earlier this week as an
alterative to the one posted by Ville.  I think we should push at least one
of these fixes out as soon as possible because we do currently have a
regression as a result of the oversight in the current code.  This would
then allow the draft patch series to be completed when you have the time,
rather than rushing it through now.

> Speaking of which, I just noticed that my S7020 can control its LCD
> brightness just fine without fujitsu-laptop being loaded.  Heck, it even
> works when booted with "noacpi".  It seems to me that on this model, LCD
> brightness control works at the firmware level and an ACPI-based driver
> is just another possible way of getting/setting LCD brightness level.
> Jonathan, IIRC you have an S7020 as well, could you please test that?
> You know better than me why this driver was needed in the first place.

You're really testing my memory now. :-)

My recollection is that back in the day the brightness buttons did work
without fujitsu-laptop loaded, so your report here doesn't suprise me. 
However, the fujitsu-laptop driver was required to make it possible for
*software* to control the LCD brightness and power.  Like you, I think I
concluded at the time that the hardware buttons worked at the firmware level
and the OS had no opportunity to participate in the activity.  There may
have also been a suspend-to-ram issue with LCD power which the driver helped
with, but I would have to go back through my notes from the time to see if
this was really the case.

To summarise, the driver was originally written to provide a way for Linux
to interact with the LCD so the brightness and power could be controlled by
Linux, and so Linux could find out what the LCD state was.

Regards
  jonathan

  reply	other threads:[~2017-09-26  5:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 20:00 [PATCH] platform/x86: fujitsu-laptop: Don't oops when FUJ02E3 is not presnt Ville Syrjala
2017-09-19  4:06 ` Michał Kępień
2017-09-19  4:21   ` Jonathan Woithe
2017-09-19  4:42     ` Michał Kępień
2017-09-19  8:20       ` Jonathan Woithe
2017-09-19 13:25   ` Ville Syrjälä
2018-02-10 21:33   ` Michał Kępień
2017-09-23  0:00 ` Darren Hart
2017-09-23  2:03   ` Jonathan Woithe
2017-09-23  9:08   ` Jonathan Woithe
2017-09-25 12:14     ` Ville Syrjälä
2017-09-25 13:16       ` Jonathan Woithe
2017-09-26  4:49   ` Michał Kępień
2017-09-26  5:32     ` Jonathan Woithe [this message]
     [not found]     ` <20171018151058.GL10981@intel.com>
2017-10-20 17:29       ` Ville Syrjälä
2017-10-25  4:51       ` Michał Kępień
2017-10-25 10:05         ` Ville Syrjälä
2017-10-29 22:57         ` Jonathan Woithe
2018-02-11 21:33           ` Michał Kępień
2017-09-27  6:56 ` Darren Hart
2017-09-27  7:27   ` Jonathan Woithe

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=20170926053246.GC27920@marvin.atrad.com.au \
    --to=jwoithe@just42.net \
    --cc=andy@infradead.org \
    --cc=dvhart@infradead.org \
    --cc=kernel@kempniu.pl \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=ville.syrjala@linux.intel.com \
    /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