22 Aug, 2012

4 commits

  • Delete code which sets SCSI status incorrectly as it's already been set
    correctly above this incorrect code. The bug was introduced in 2009 by
    commit b0e15f6db111 ("cciss: fix typo that causes scsi status to be
    lost.")

    Signed-off-by: Stephen M. Cameron
    Reported-by: Roel van Meer
    Tested-by: Roel van Meer
    Cc: Jens Axboe
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen M. Cameron
     
  • Signed-off-by: Jens Rottmann
    Cc: Thomas Gleixner
    Cc: John Stultz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jens Rottmann
     
  • …git/linusw/linux-pinctrl

    Pull pin control fixes from Linus Walleij:
    - Fixed Nomadik errorpath
    - Fixed documentation spelling errors
    - Forward-declare struct device in a header file
    - Remove some extraneous code lines when getting pinctrl states
    - Correct the i.MX51 configure register number
    - Fix the Nomadik keypad function group list

    * tag 'pinctrl-fixes-v3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
    pinctrl/nomadik: add kp_b_2 keyboard function group list
    pinctrl: imx51: fix .conf_reg of MX51_PAD_SD2_CMD__CSPI_MOSI
    trivial: pinctrl core: remove extraneous code lines
    pinctrl: header: trivial: declare struct device
    Documentation/pinctrl.txt: Fix some misspelled macros
    pinctrl/nomadik: fix null in irqdomain errorpath

    Linus Torvalds
     
  • So we've had a fair few reports of fbcon handover breakage between
    efi/vesafb and i915 surface recently, so I dedicated a couple of
    days to finding the problem.

    Essentially the last thing we saw was the conflicting framebuffer
    message and that was all.

    So after much tracing with direct netconsole writes (printks
    under console_lock not so useful), I think I found the race.

    Thread A (driver load) Thread B (timer thread)
    unbind_con_driver -> |
    bind_con_driver -> |
    vc->vc_sw->con_deinit -> |
    fbcon_deinit -> |
    console_lock() |
    | |
    | fbcon_flashcursor timer fires
    | console_lock()
    del_timer_sync
    (BOOM)

    Of course because all of this is under the console lock,
    we never see anything, also since we also just unbound the active
    console guess what we never see anything.

    Hopefully this fixes the problem for anyone seeing vesafb->kms
    driver handoff.

    Signed-off-by: David Airlie
    Acked-by: Alan Cox
    Cc: stable@vger.kernel.org
    Tested-by: Josh Boyer
    Signed-off-by: Linus Torvalds

    Dave Airlie
     

21 Aug, 2012

12 commits

  • Pull PCI fixes from Bjorn Helgaas:
    "Here are two patches from Rafael Wysocki.

    One fixes an EHCI-related hibernation crash on ASUS boxes. We fixed a
    similar suspend issue in v3.6-rc1, and this applies the same fix to
    the hibernate path.

    The other fixes D3/D3cold/D4 messages related to the D3cold support we
    merged in v3.6-rc1."

    (Removed redundant top non-fast-forward merge commit from pulled branch)

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    PCI: EHCI: Fix crash during hibernation on ASUS computers
    PCI / PM: Fix D3/D3cold/D4 messages printed by acpi_pci_set_power_state()

    Linus Torvalds
     
  • Pull more USB patches from Greg Kroah-Hartman:
    "Here are 10 more USB patches for 3.6-rc3. They all fix reported
    problems (build problems for one of them, and easily repeatable oopses
    for the others.)

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'usb-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    gpu/mfd/usb: Fix USB randconfig problems
    USB: CDC ACM: Fix NULL pointer dereference
    USB: emi62: remove __devinit* from the struct usb_device_id table
    USB: winbond: remove __devinit* from the struct usb_device_id table
    USB: vt6656: remove __devinit* from the struct usb_device_id table
    USB: rtl8187: remove __devinit* from the struct usb_device_id table
    USB: p54usb: remove __devinit* from the struct usb_device_id table
    USB: spca506: remove __devinit* from the struct usb_device_id table
    USB: jl2005bcd: remove __devinit* from the struct usb_device_id table
    USB: smsusb: remove __devinit* from the struct usb_device_id table

    Linus Torvalds
     
  • Pull one more driver core fix from Greg Kroah-Hartman:
    "Here is one fix for the dmesg line corruption problem that the
    previous set of patches caused.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    dyndbg: fix for SOH in logging messages

    Linus Torvalds
     
  • Pull x86 platform driver update from Matthew Garrett:
    "Some small updates for a few drivers, and some hardware enablement for
    new Ideapads and the gmux hardware in the latest Macs.

    This code won't run on older devices and has been well tested on new
    ones, so low risk of regressions."

    * 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86:
    ideapad: add Lenovo IdeaPad Z570 support (part 3)
    ideapad: add Lenovo IdeaPad Z570 support (part 2)
    ideapad: add Lenovo IdeaPad Z570 support (part 1)
    classmate-laptop: always call input_sync() after input_report_switch()
    thinkpad-acpi: recognize latest V-Series using DMI_BIOS_VENDOR
    dell-laptop: Fixed typo in touchpad LED quirk
    vga_switcheroo: Don't require handler init callback
    vga_switcheroo: Remove assumptions about registration/unregistration ordering
    apple-gmux: Add display mux support
    apple-gmux: Fix kconfig dependencies
    asus-wmi: record wlan status while controlled by userapp
    apple_gmux: Fix ACPI video unregister
    apple_gmux: Add support for newer hardware
    gmux: Add generic write32 function

    Linus Torvalds
     
  • Pull a hwmon fix from Guenter Roeck:
    "One patch with section conflict fixes."

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    sections: Fix section conflicts in drivers/hwmon

    Linus Torvalds
     
  • Pull spi fixes from Mark Brown:
    "Grant is still away so another pull request with some fairly minor
    fixes, the most notable of which are several fixes for some common
    error patterns with the reference counting spi_master_get/put do."

    * tag 'spi-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc:
    spi/coldfire-qspi: Drop extra calls to spi_master_get in suspend/resume functions
    spi: spi-coldfire-qspi: Drop extra spi_master_put in device remove function
    spi/pl022: fix spi-pl022 pm enable at probe
    spi/bcm63xx: Ensure that memory is freed only after it is no longer used
    spi: omap2-mcspi: Fix the error handling in probe
    spi/s3c64xx: Add missing static storage class specifiers

    Linus Torvalds
     
  • Pull regulator fixes from Mark Brown:
    "A bunch of fixes which are a combination of minor fixes that have been
    shaken down due to greater testing exposure, the biggest block of
    which are for the Palmas driver which hadn't had all the changes
    required for mainline properly tested when it was merged."

    * tag 'regulator-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
    regulator: twl-regulator: fix up VINTANA1/VINTANA2
    regulator: core: request only valid gpio pins for regulator enable
    regulator: twl: Remove references to the twl4030 regulator
    regulator: gpio-regulator: Split setting of voltages and currents
    regulator: ab3100: add missing voltage table
    regulator: anatop: Fix wrong mask used in anatop_get_voltage_sel
    regulator: tps6586x: correct vin pin for sm0/sm1/sm2
    regulator: palmas: Fix palmas_probe error handling
    regulator: palmas: Call palmas_ldo_[read|write] in palmas_ldo_init
    regulator: palmas: Fix regmap offsets for PALMAS_REG_SMPS10 vsel_reg
    regulator: palmas: Fix calculating selector in palmas_map_voltage_ldo

    Linus Torvalds
     
  • Pull IOMMU fixes from Joerg Roedel:
    "Two fixes are necessary. One patch fixes a boot crash on MacBook Air
    with interrupt remapping enabled and the other patch fixes a
    regression (which causes a boot crash on AMD IOMMUv2 systems too) in
    the init code of the AMD IOMMU driver."

    * tag 'iommu-fixes-v3.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
    iommu/amd: Fix wrong check for ARRAY_SIZE()
    irq_remap: disable IRQ remapping if any IOAPIC lacks an IOMMU

    Linus Torvalds
     
  • Fix config warning:

    warning: ( ... && DRM_USB) selects USB which has unmet direct dependencies
    (USB_SUPPORT && USB_ARCH_HAS_HCD)

    and build error:
    ERROR: "usb_speed_string" [drivers/usb/core/usbcore.ko] undefined!

    by adding the missing dependency on USB_ARCH_HAS_HCD to DRM_UDL and DRM_USB.

    This exposes:
    drivers/video/Kconfig:36:error: recursive dependency detected!
    drivers/video/Kconfig:36: symbol FB is selected by DRM_KMS_HELPER
    drivers/gpu/drm/Kconfig:28: symbol DRM_KMS_HELPER is selected by DRM_UDL
    drivers/gpu/drm/udl/Kconfig:1: symbol DRM_UDL depends on USB_ARCH_HAS_HCD
    drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
    drivers/usb/Kconfig:16: symbol USB_ARCH_HAS_OHCI depends on I2C
    drivers/i2c/Kconfig:5: symbol I2C is selected by FB_DDC
    drivers/video/Kconfig:86: symbol FB_DDC is selected by FB_CYBER2000_DDC
    drivers/video/Kconfig:385: symbol FB_CYBER2000_DDC depends on FB_CYBER2000
    drivers/video/Kconfig:373: symbol FB_CYBER2000 depends on FB

    which is due to drivers/usb/Kconfig:
    config USB_ARCH_HAS_OHCI
    ...
    default y if ARCH_PNX4008 && I2C

    Fix by dropping I2C from the above dependency; logic is that this is not a
    platform dependency but a configuration dependency: the _architecture_ still
    supports USB even is I2C is not selected.

    This exposes:
    drivers/video/Kconfig:36:error: recursive dependency detected!
    drivers/video/Kconfig:36: symbol FB is selected by DRM_KMS_HELPER
    drivers/gpu/drm/Kconfig:28: symbol DRM_KMS_HELPER is selected by DRM_UDL
    drivers/gpu/drm/udl/Kconfig:1: symbol DRM_UDL depends on USB_ARCH_HAS_HCD
    drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
    drivers/usb/Kconfig:17: symbol USB_ARCH_HAS_OHCI depends on MFD_TC6393XB
    drivers/mfd/Kconfig:396: symbol MFD_TC6393XB depends on GPIOLIB
    drivers/gpio/Kconfig:35: symbol GPIOLIB is selected by FB_VIA
    drivers/video/Kconfig:1560: symbol FB_VIA depends on FB

    which can be fixed by having MFD_TC6393XB select GPIOLIB instead of depending on
    it.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Guenter Roeck
     
  • The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
    keys working, adds possibility to control fan like Windows does, controls
    Touchpad Disabled LED, toggles touchpad state via keyboard controller and
    corrects touchpad behavior on resume from suspend. It is new, modified
    version of patch. Now it does not depend on psmouse and does not need patching
    of input subsystem.

    Signed-off-by: Maxim Mikityanskiy

    This is the part 3 for fan control

    Signed-off-by: Ike Panhc
    Signed-off-by: Matthew Garrett

    Maxim Mikityanskiy
     
  • The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
    keys working, adds possibility to control fan like Windows does, controls
    Touchpad Disabled LED, toggles touchpad state via keyboard controller and
    corrects touchpad behavior on resume from suspend. It is new, modified
    version of patch. Now it does not depend on psmouse and does not need patching
    of input subsystem.

    Signed-off-by: Maxim Mikityanskiy

    This is part 2 for touchpad toggle

    Signed-off-by: Ike Panhc
    Signed-off-by: Matthew Garrett

    Maxim Mikityanskiy
     
  • The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
    keys working, adds possibility to control fan like Windows does, controls
    Touchpad Disabled LED, toggles touchpad state via keyboard controller and
    corrects touchpad behavior on resume from suspend. It is new, modified
    version of patch. Now it does not depend on psmouse and does not need patching
    of input subsystem.

    Signed-off-by: Maxim Mikityanskiy

    This is part 1 for special button handling.

    Signed-off-by: Ike Panhc
    Signed-off-by: Matthew Garrett

    Maxim Mikityanskiy
     

19 Aug, 2012

3 commits

  • commit af7f2158fde was done against master, and clashed with structured
    logging's change of KERN_LEVEL to SOH.

    Bisected and fixed by Markus Trippelsdorf.

    Reported-by: Markus Trippelsdorf
    Signed-off-by: Jim Cromie
    Cc: Linus Torvalds
    Cc: Andrew Morton
    Cc: Jason Baron
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Markus Trippelsdorf
     
  • Signed-off-by: Andi Kleen
    Signed-off-by: Guenter Roeck

    Andi Kleen
     
  • Pull power management fixes from Rafael J. Wysocki:
    - Fixes for three obscure problems in the runtime PM core code found
    recently.
    - Two fixes for the new "coupled" cpuidle code from Colin Cross and Jon
    Medhurst.
    - intel_idle driver fix from Konrad Rzeszutek Wilk.

    * tag 'pm-for-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    intel_idle: Check cpu_idle_get_driver() for NULL before dereferencing it.
    cpuidle: Prevent null pointer dereference in cpuidle_coupled_cpu_notify
    cpuidle: coupled: fix sleeping while atomic in cpu notifier
    PM / Runtime: Check device PM QoS setting before "no callbacks" check
    PM / Runtime: Clear power.deferred_resume on success in rpm_suspend()
    PM / Runtime: Fix rpm_resume() return value for power.no_callbacks set

    Linus Torvalds
     

18 Aug, 2012

21 commits

  • If a device specifies zero endpoints in its interface descriptor,
    the kernel oopses in acm_probe(). Even though that's clearly an
    invalid descriptor, we should test wether we have all endpoints.
    This is especially bad as this oops can be triggered by just
    plugging a USB device in.

    Signed-off-by: Sven Schnelle
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Sven Schnelle
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Paul Gortmaker
    CC: Andrew Morton
    CC: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Pavel Machek
    CC: Paul Gortmaker
    CC: "John W. Linville"
    CC: Eliad Peller
    CC: Devendra Naga
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Forest Bond
    CC: Marcos Paulo de Souza
    CC: "David S. Miller"
    CC: Jesper Juhl
    CC: Jiri Pirko
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Herton Ronaldo Krzesinski
    CC: Hin-Tak Leung
    CC: Larry Finger
    CC: "John W. Linville"
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Christian Lamparter
    CC: "John W. Linville"
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Hans de Goede
    CC: Mauro Carvalho Chehab
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Hans de Goede
    CC: Mauro Carvalho Chehab
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This structure needs to always stick around, even if CONFIG_HOTPLUG
    is disabled, otherwise we can oops when trying to probe a device that
    was added after the structure is thrown away.

    Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down.

    Reported-by: Fengguang Wu
    Reported-by: Bjørn Mork
    Cc: stable
    CC: Mauro Carvalho Chehab
    CC: Michael Krufky
    CC: Paul Gortmaker
    CC: Doron Cohen
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Pull md fixes from NeilBrown:
    "2 fixes for md, tagged for -stable"

    * tag 'md-3.6-fixes' of git://neil.brown.name/md:
    md/raid10: fix problem with on-stack allocation of r10bio structure.
    md: Don't truncate size at 4TB for RAID0 and Linear

    Linus Torvalds
     
  • A 'struct r10bio' has an array of per-copy information at the end.
    This array is declared with size [0] and r10bio_pool_alloc allocates
    enough extra space to store the per-copy information depending on the
    number of copies needed.

    So declaring a 'struct r10bio on the stack isn't going to work. It
    won't allocate enough space, and memory corruption will ensue.

    So in the two places where this is done, declare a sufficiently large
    structure and use that instead.

    The two call-sites of this bug were introduced in 3.4 and 3.5
    so this is suitable for both those kernels. The patch will have to
    be modified for 3.4 as it only has one bug.

    Cc: stable@vger.kernel.org
    Reported-by: Ivan Vasilyev
    Tested-by: Ivan Vasilyev
    Signed-off-by: NeilBrown

    NeilBrown
     
  • Suspend and resume functions call spi_master_get() without matching
    spi_master_put(). The extra references are unnecessary and cause
    subsequent module unload attempts to fail, so drop the calls.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Guenter Roeck
     
  • The call sequence spi_alloc_master/spi_register_master/spi_unregister_master is
    complete; it reduces the device reference count to zero, which and results in
    device memory being freed. The subsequent call to spi_master_put is unnecessary
    and results in an access to free memory. Drop it.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Mark Brown

    Guenter Roeck
     
  • amba drivers does not need to enable pm runtime at probe.
    amba_probe already enables pm runtime.

    This rids this warning in the ux500 boot log:
    ssp-pl022 ssp0: Unbalanced pm_runtime_enable!

    Signed-off-by: Michel JAOUEN
    Signed-off-by: Linus Walleij
    Signed-off-by: Mark Brown

    Michel JAOUEN
     
  • Due to commit cdda911c34006f1089f3c87b1a1f31ab3a4722f2 evdev only
    becomes readable when the buffer contains an EV_SYN/SYN_REPORT event.

    So in order to read the tablet sensor data as it happens we need to
    ensure that we always call input_sync() after input_report_switch()

    Signed-off-by: Carlos Alberto Lopez Perez
    Signed-off-by: Matthew Garrett

    Carlos Alberto Lopez Perez
     
  • In the latest V-series bios DMI_PRODUCT_VERSION does not contain
    the string Lenovo or Thinkpad, but is set to the model number, this
    causes the thinkpad_acpi module to fail to load. Recognize laptop
    as Lenovo using DMI_BIOS_VENDOR instead, which is set to Lenovo.

    Test on V490u
    =============
    == After the patch ==

    [ 1350.295757] thinkpad_acpi: ThinkPad ACPI Extras v0.24
    [ 1350.295760] thinkpad_acpi: http://ibm-acpi.sf.net/
    [ 1350.295761] thinkpad_acpi: ThinkPad BIOS H7ET21WW (1.00 ), EC unknown
    [ 1350.295763] thinkpad_acpi: Lenovo LENOVO, model LV5DXXX
    [ 1350.296086] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
    [ 1350.296694] thinkpad_acpi: radio switch found; radios are enabled
    [ 1350.296703] thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
    [ 1350.306466] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
    [ 1350.307082] Registered led device: tpacpi::thinklight
    [ 1350.307215] Registered led device: tpacpi::power
    [ 1350.307255] Registered led device: tpacpi::standby
    [ 1350.307294] Registered led device: tpacpi::thinkvantage
    [ 1350.308160] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
    [ 1350.308333] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
    [ 1350.312287] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input14

    == Before the patch ==
    sudo modprobe thinkpad_acpi
    FATAL: Error inserting thinkpad_acpi (/lib/modules/3.2.0-27-generic/kernel/drivers/platform/x86/thinkpad_acpi.ko): No such device

    Test on B485
    =============
    This patch was also test in a B485 where the thinkpad_acpi module does not
    have any issues loading. But, I tested it to make sure this patch does not
    break on already functioning models of Lenovo products.

    [13486.746359] thinkpad_acpi: ThinkPad ACPI Extras v0.24
    [13486.746364] thinkpad_acpi: http://ibm-acpi.sf.net/
    [13486.746368] thinkpad_acpi: ThinkPad BIOS HJET15WW(1.01), EC unknown
    [13486.746373] thinkpad_acpi: Lenovo Lenovo LB485, model 814TR01
    [13486.747300] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
    [13486.752435] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
    [13486.752883] Registered led device: tpacpi::thinklight
    [13486.752915] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
    [13486.753216] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
    [13486.757147] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input15

    Signed-off-by: Manoj Iyer
    Signed-off-by: Matthew Garrett

    Manoj Iyer
     
  • Fixed the typo introduced from the below commit
    5f1e88f dell-laptop: Add 6 machines to touchpad led quirk

    Reported-by: Carlos Alberto Lopez Perez
    Signed-off-by: AceLan Kao
    Signed-off-by: Matthew Garrett

    AceLan Kao
     
  • This callback is a no-op in nouveau, and the upcoming apple-gmux
    switcheroo support won't require it either. Rather than forcing drivers
    to stub it out, just make it optional and remove the callback from
    nouveau.

    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Seth Forshee
     
  • vga_switcheroo assumes that the handler will be registered before the
    last client, otherwise switching will not be enabled. Likewise it's
    assumed that the handler will not be unregistered without at least one
    client also being unregistered, otherwise switching will remain enabled
    despite no longer having a handler. These assumptions cannot be enforced
    if the handler is in a separate driver from both clients, as with the
    gmux found in Apple laptops. Remove this assumption.

    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Seth Forshee
     
  • Add support for the gmux display muxing functionality and register a mux
    handler with vga_switcheroo.

    Signed-off-by: Andreas Heider
    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Andreas Heider
     
  • Fix the dependencies of apple-gmux to prevent it from being built-in
    when one or more of its dependencies is built as a module. Otherwise it
    can fail to build due to missing symbols.

    v2: Add dependency on ACPI to fix build failure when ACPI=n

    Reported-by: Arun Raghavan
    Signed-off-by: Seth Forshee
    Signed-off-by: Matthew Garrett

    Seth Forshee