1. 23 Feb, 2011 34 commits
  2. 22 Feb, 2011 3 commits
  3. 21 Feb, 2011 3 commits
    • Indan Zupancic's avatar
      drm/i915: Do not handle backlight combination mode specially · 951f3512
      Indan Zupancic authored
      The current code does not follow Intel documentation: It misses some things
      and does other, undocumented things. This causes wrong backlight values in
      certain conditions. Instead of adding tricky code handling badly documented
      and rare corner cases, don't handle combination mode specially at all. This
      way PCI_LBPC is never touched and weird things shouldn't happen.
      
      If combination mode is enabled, then the only downside is that changing the
      brightness has a greater granularity (the LBPC value), but LBPC is at most
      254 and the maximum is in the thousands, so this is no real functional loss.
      
      A potential problem with not handling combined mode is that a brightness of
      max * PCI_LBPC is not bright enough. However, this is very unlikely because
      from the documentation LBPC seems to act as a scaling factor and doesn't look
      like it's supposed to be changed after boot. The value at boot should always
      result in a bright enough screen.
      
      IMPORTANT: However, although usually the above is true, it may not be when
      people ran an older (2.6.37) kernel which messed up the LBPC register, and
      they are unlucky enough to have a BIOS that saves and restores the LBPC value.
      Then a good kernel may seem to not work: Max brightness isn't bright enough.
      If this happens people should boot back into the old kernel, set brightness
      to the maximum, and then reboot. After that everything should be fine.
      
      For more information see the below links. This fixes bugs:
      
        http://bugzilla.kernel.org/show_bug.cgi?id=23472
        http://bugzilla.kernel.org/show_bug.cgi?id=25072Signed-off-by: default avatarIndan Zupancic <indan@nul.nu>
      Tested-by: default avatarAlex Riesen <raa.lkml@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      951f3512
    • Dmitry Torokhov's avatar
      module: explicitly align module_version_attribute structure · 98562ad8
      Dmitry Torokhov authored
      We force particular alignment when we generate attribute structures
      when generation MODULE_VERSION() data and we need to make sure that
      this alignment is followed when we iterate over these structures,
      otherwise we may crash on platforms whose natural alignment is not
      sizeof(void *), such as m68k.
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarDmitry Torokhov <dtor@vmware.com>
      [ There are more issues here, but the fixes are incredibly ugly - Linus ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      98562ad8
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of... · 5fb24b81
      Linus Torvalds authored
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86
      
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86:
        dell-laptop: Toggle the unsupported hardware killswitch
        thinkpad_acpi: Always report scancodes for hotkeys
        acer-wmi: Fix capitalisation of GUID
        platform/x86: ideapad-laptop depends on INPUT
        platform: x86: acer-wmi: world-writable sysfs threeg file
        platform: x86: asus_acpi: world-writable procfs files
        platform: x86: tc1100-wmi: world-writable sysfs wireless and jogdial files
        platform-drivers: x86: pmic: Use request_irq instead of chained handler
        platform-drivers: x86: pmic: Use irq_chip buslock mechanism
        platform-drivers: x86: Convert pmic to new irq_chip functions
        platform-drivers: x86: pmic: Fix up bogus irq hackery
      5fb24b81