Commit eb7046e9 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'platform-drivers-x86-v4.20-1' of git://git.infradead.org/linux-platform-drivers-x86

Pull x86 platform driver updates from Darren Hart:

 - Move the Dell dcdbas and dell_rbu drivers into platform/drivers/x86
   as they are closely coupled with other drivers in this location.

 - Improve _init* usage for acerhdf and fix some usage issues with
   messages and module parameters.

 - Simplify asus-wmi by calling ACPI/WMI methods directly, eliminating
   workqueue overhead, eliminate double reporting of keyboard backlight.

 - Fix wake from USB failure on Bay Trail devices (intel_int0002_vgpio).

 - Notify intel_telemetry users when IPC1 device is not enabled.

 - Update various drivers with new laptop model IDs.

 - Update several intel drivers to use SPDX identifers and order headers
   alphabetically.

* tag 'platform-drivers-x86-v4.20-1' of git://git.infradead.org/linux-platform-drivers-x86: (64 commits)
  HID: asus: only support backlight when it's not driven by WMI
  platform/x86: asus-wmi: export function for evaluating WMI methods
  platform/x86: asus-wmi: Only notify kbd LED hw_change by fn-key pressed
  platform/x86: wmi: declare device_type structure as constant
  platform/x86: ideapad: Add Y530-15ICH to no_hw_rfkill
  platform/x86: Add Intel AtomISP2 dummy / power-management driver
  platform/x86: touchscreen_dmi: Add min-x and min-y settings for various models
  platform/x86: touchscreen_dmi: Add info for the Onda V80 Plus v3 tablet
  platform/x86: touchscreen_dmi: Add info for the Trekstor Primetab T13B tablet
  platform/x86: intel_telemetry: Get rid of custom macro
  platform/x86: intel_telemetry: report debugfs failure
  MAINTAINERS: intel_telemetry: Update maintainers info
  platform/x86: Add LG Gram laptop special features driver
  platform/x86: asus-wmi: Simplify the keyboard brightness updating process
  platform/x86: touchscreen_dmi: Add info for the Trekstor Primebook C11 convertible
  platform/x86: mlx-platform: Properly use mlxplat_mlxcpld_msn201x_items
  MAINTAINERS: intel_pmc_core: Update MAINTAINERS
  firmware: dcdbas: include linux/io.h
  platform/x86: intel-wmi-thunderbolt: Add dynamic debugging
  platform/x86: intel-wmi-thunderbolt: Convert to use SPDX identifier
  ...
parents 5b744981 3b692c55
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
What:		/sys/devices/platform/lg-laptop/reader_mode
Date:		October 2018
KernelVersion:	4.20
Contact:	"Matan Ziv-Av <matan@svgalib.org>
Description:
        Control reader mode. 1 means on, 0 means off.

What:		/sys/devices/platform/lg-laptop/fn_lock
Date:		October 2018
KernelVersion:	4.20
Contact:	"Matan Ziv-Av <matan@svgalib.org>
Description:
        Control FN lock mode. 1 means on, 0 means off.

What:		/sys/devices/platform/lg-laptop/battery_care_limit
Date:		October 2018
KernelVersion:	4.20
Contact:	"Matan Ziv-Av <matan@svgalib.org>
Description:
        Maximal battery charge level. Accepted values are 80 or 100.

What:		/sys/devices/platform/lg-laptop/fan_mode
Date:		October 2018
KernelVersion:	4.20
Contact:	"Matan Ziv-Av <matan@svgalib.org>
Description:
        Control fan mode. 1 for performance mode, 0 for silent mode.

What:		/sys/devices/platform/lg-laptop/usb_charge
Date:		October 2018
KernelVersion:	4.20
Contact:	"Matan Ziv-Av <matan@svgalib.org>
Description:
        Control USB port charging when device is turned off.
        1 means on, 0 means off.
+81 −0
Original line number Diff line number Diff line
.. SPDX-License-Identifier: GPL-2.0+
LG Gram laptop extra features
=============================

By Matan Ziv-Av <matan@svgalib.org>


Hotkeys
-------

The following FN keys are ignored by the kernel without this driver:
- FN-F1 (LG control panel)   - Generates F15
- FN-F5 (Touchpad toggle)    - Generates F13
- FN-F6 (Airplane mode)      - Generates RFKILL
- FN-F8 (Keyboard backlight) - Generates F16.
  This key also changes keyboard backlight mode.
- FN-F9 (Reader mode)        - Generates F14

The rest of the FN key work without a need for a special driver.


Reader mode
-----------

Writing 0/1 to /sys/devices/platform/lg-laptop/reader_mode disables/enables
reader mode. In this mode the screen colors change (blue color reduced),
and the reader mode indicator LED (on F9 key) turns on.


FN Lock
-------

Writing 0/1 to /sys/devices/platform/lg-laptop/fn_lock disables/enables
FN lock.


Battery care limit
------------------

Writing 80/100 to /sys/devices/platform/lg-laptop/battery_care_limit
sets the maximum capacity to charge the battery. Limiting the charge
reduces battery capacity loss over time.

This value is reset to 100 when the kernel boots.


Fan mode
--------

Writing 1/0 to /sys/devices/platform/lg-laptop/fan_mode disables/enables
the fan silent mode.


USB charge
----------

Writing 0/1 to /sys/devices/platform/lg-laptop/usb_charge disables/enables
charging another device from the USB port while the device is turned off.

This value is reset to 0 when the kernel boots.


LEDs
~~~~

The are two LED devices supported by the driver:

Keyboard backlight
------------------

A led device named kbd_led controls the keyboard backlight. There are three
lighting level: off (0), low (127) and high (255).

The keyboard backlight is also controlled by the key combination FN-F8
which cycles through those levels.


Touchpad indicator LED
----------------------

On the F5 key. Controlled by led device names tpad_led.
+26 −5
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ F: drivers/platform/x86/i2c-multi-instantiate.c
ACPI PMIC DRIVERS
M:	"Rafael J. Wysocki" <rjw@rjwysocki.net>
M:	Len Brown <lenb@kernel.org>
R:	Andy Shevchenko <andy@infradead.org>
R:	Andy Shevchenko <andriy.shevchenko@linux.intel.com>
R:	Mika Westerberg <mika.westerberg@linux.intel.com>
L:	linux-acpi@vger.kernel.org
Q:	https://patchwork.kernel.org/project/linux-acpi/list/
@@ -4207,6 +4207,12 @@ M: Pali Rohár <pali.rohar@gmail.com>
S:	Maintained
F:	drivers/platform/x86/dell-rbtn.*

DELL REMOTE BIOS UPDATE DRIVER
M:	Stuart Hayes <stuart.w.hayes@gmail.com>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	drivers/platform/x86/dell_rbu.c

DELL LAPTOP SMM DRIVER
M:	Pali Rohár <pali.rohar@gmail.com>
S:	Maintained
@@ -4214,10 +4220,11 @@ F: drivers/hwmon/dell-smm-hwmon.c
F:	include/uapi/linux/i8k.h

DELL SYSTEMS MANAGEMENT BASE DRIVER (dcdbas)
M:	Doug Warzecha <Douglas_Warzecha@dell.com>
M:	Stuart Hayes <stuart.w.hayes@gmail.com>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	Documentation/dcdbas.txt
F:	drivers/firmware/dcdbas.*
F:	drivers/platform/x86/dcdbas.*

DELL WMI NOTIFICATIONS DRIVER
M:	Matthew Garrett <mjg59@srcf.ucam.org>
@@ -7347,6 +7354,12 @@ L: alsa-devel@alsa-project.org (moderated for non-subscribers)
S:	Supported
F:	sound/soc/intel/

INTEL ATOMISP2 DUMMY / POWER-MANAGEMENT DRIVER
M:	Hans de Goede <hdegoede@redhat.com>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	drivers/platform/x86/intel_atomisp2_pm.c

INTEL C600 SERIES SAS CONTROLLER DRIVER
M:	Intel SCU Linux support <intel-linux-scu@intel.com>
M:	Artur Paszkiewicz <artur.paszkiewicz@intel.com>
@@ -7533,7 +7546,6 @@ M: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
M:	Vishwanath Somayaji <vishwanath.somayaji@intel.com>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	arch/x86/include/asm/pmc_core.h
F:	drivers/platform/x86/intel_pmc_core*

INTEL PMC/P-Unit IPC DRIVER
@@ -7577,7 +7589,8 @@ F: drivers/infiniband/hw/i40iw/
F:	include/uapi/rdma/i40iw-abi.h

INTEL TELEMETRY DRIVER
M:	Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
M:	Rajneesh Bhardwaj <rajneesh.bhardwaj@linux.intel.com>
M:	"David E. Box" <david.e.box@linux.intel.com>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	arch/x86/include/asm/intel_telemetry.h
@@ -8310,6 +8323,14 @@ W: http://legousb.sourceforge.net/
S:	Maintained
F:	drivers/usb/misc/legousbtower.c

LG LAPTOP EXTRAS
M:	Matan Ziv-Av <matan@svgalib.org>
L:	platform-driver-x86@vger.kernel.org
S:	Maintained
F:	Documentation/ABI/testing/sysfs-platform-lg-laptop
F:	Documentation/laptops/lg-laptop.rst
F:	drivers/platform/x86/lg-laptop.c

LG2160 MEDIA DRIVER
M:	Michael Krufky <mkrufky@linuxtv.org>
L:	linux-media@vger.kernel.org
+0 −28
Original line number Diff line number Diff line
@@ -145,34 +145,6 @@ config EFI_PCDP
	  See DIG64_HCDPv20_042804.pdf available from
	  <http://www.dig64.org/specifications/> 

config DELL_RBU
	tristate "BIOS update support for DELL systems via sysfs"
	depends on X86
	select FW_LOADER
	select FW_LOADER_USER_HELPER
	help
	 Say m if you want to have the option of updating the BIOS for your
	 DELL system. Note you need a Dell OpenManage or Dell Update package (DUP)
	 supporting application to communicate with the BIOS regarding the new
	 image for the image update to take effect.
	 See <file:Documentation/dell_rbu.txt> for more details on the driver.

config DCDBAS
	tristate "Dell Systems Management Base Driver"
	depends on X86
	help
	  The Dell Systems Management Base Driver provides a sysfs interface
	  for systems management software to perform System Management
	  Interrupts (SMIs) and Host Control Actions (system power cycle or
	  power off after OS shutdown) on certain Dell systems.

	  See <file:Documentation/dcdbas.txt> for more details on the driver
	  and the Dell systems on which Dell systems management software makes
	  use of this driver.

	  Say Y or M here to enable the driver for use by Dell systems
	  management software such as Dell OpenManage.

config DMIID
    bool "Export DMI identification via sysfs to userspace"
    depends on DMI
+0 −2
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@ obj-$(CONFIG_DMI) += dmi_scan.o
obj-$(CONFIG_DMI_SYSFS)		+= dmi-sysfs.o
obj-$(CONFIG_EDD)		+= edd.o
obj-$(CONFIG_EFI_PCDP)		+= pcdp.o
obj-$(CONFIG_DELL_RBU)          += dell_rbu.o
obj-$(CONFIG_DCDBAS)		+= dcdbas.o
obj-$(CONFIG_DMIID)		+= dmi-id.o
obj-$(CONFIG_ISCSI_IBFT_FIND)	+= iscsi_ibft_find.o
obj-$(CONFIG_ISCSI_IBFT)	+= iscsi_ibft.o
Loading