android_kernel_samsung_a7y1.../drivers
João Paulo Rechi Vita d7a83ad4de asus-wmi: Create quirk for airplane_mode LED
[ Upstream commit a977e59c0c67c9d492bb16677ce66d67cae0ebd8 ]

Some Asus laptops that have an airplane-mode indicator LED, also have
the WMI WLAN user bit set, and the following bits in their DSDT:

Scope (_SB)
{
  (...)
  Device (ATKD)
  {
    (...)
    Method (WMNB, 3, Serialized)
    {
      (...)
      If (LEqual (IIA0, 0x00010002))
      {
        OWGD (IIA1)
        Return (One)
      }
    }
  }
}

So when asus-wmi uses ASUS_WMI_DEVID_WLAN_LED (0x00010002) to store the
wlan state, it drives the airplane-mode indicator LED (through the call
to OWGD) in an inverted fashion: the LED is ON when airplane mode is OFF
(since wlan is ON), and vice-versa.

This commit creates a quirk to not register a RFKill switch at all for
these laptops, to allow the asus-wireless driver to drive the airplane
mode LED correctly through the ASHS ACPI device. It also adds a match to
that quirk for the Asus X555UB, which is affected by this problem.

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Reviewed-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:33:46 +02:00
..
accessibility
acpi ACPI / SBS: Fix rare oops when removing modules 2020-04-07 12:32:57 +02:00
amba
android ANDROID: binder: synchronize_rcu() when using POLLFREE. 2020-04-07 08:06:59 +02:00
ata ata: ep93xx: Use proper enums for directions 2020-04-07 12:32:33 +02:00
atm Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2020-04-06 21:36:26 +02:00
auxdisplay
base x86/bugs: Add ITLB_MULTIHIT bug infrastructure 2020-04-07 12:00:26 +02:00
battery
battery_v2
bcma
block loop: Add LOOP_SET_DIRECT_IO to compat ioctl 2020-04-07 09:25:58 +02:00
bluetooth Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto() 2020-04-07 12:31:07 +02:00
bts
bus
ccic
cdrom
char ipmi_si: Only schedule continuously in the thread in maintenance mode 2020-04-07 07:42:51 +02:00
clk clk: sirf: Don't reference clk_init_data after registration 2020-04-07 07:42:56 +02:00
clocksource
connector
cpufreq cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown 2020-04-07 09:27:04 +02:00
cpuidle
crypto crypto: mxs-dcp - Fix AES issues 2020-04-07 12:32:55 +02:00
dca
devfreq
dio
dma dmaengine: ioat: fix prototype of ioat_enumerate_channels 2020-04-07 12:32:47 +02:00
dma-buf
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2020-04-06 19:55:33 +02:00
eisa
extcon
fingerprint
firewire
firmware efi/cper: Fix endianness of PCIe class code 2020-04-07 09:27:43 +02:00
five
fmc
fpga
gator
gpio gpio: syscon: Fix possible NULL ptr usage 2020-04-07 12:33:18 +02:00
gps
gpu drm/i915/cmdparser: Fix jump whitelist clearing 2020-04-07 11:59:34 +02:00
gud
hid HID: fix error message in hid_open_report() 2020-04-07 09:28:22 +02:00
hsi
hv
hwmon hwmon: (pwm-fan) Silence error on probe deferral 2020-04-07 12:33:24 +02:00
hwspinlock
hwtracing stm class: Fix a double free of stm_source_device 2020-04-06 21:33:50 +02:00
i2c i2c: riic: Clear NACK in tend isr 2020-04-07 07:41:06 +02:00
ide
idle
iio iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2020-04-07 12:26:37 +02:00
infiniband IB/mthca: Fix error return code in __mthca_init_one() 2020-04-07 12:32:32 +02:00
input Input: st1232 - set INPUT_PROP_DIRECT property 2020-04-07 12:32:49 +02:00
iommu iommu/amd: Move iommu_init_pci() to .init section 2020-04-06 20:50:24 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices 2020-04-07 07:36:50 +02:00
isdn mISDN: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:27 +02:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2020-04-07 07:37:48 +02:00
lguest
lightnvm
macintosh
mailbox mailbox: handle failed named mailbox channel request 2020-04-06 20:13:46 +02:00
mcb
md bcache: recal cached_dev_sectors on detach 2020-04-07 12:33:03 +02:00
media media: cx231xx: fix potential sign-extension overflow on large shift 2020-04-07 12:33:14 +02:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2020-04-07 09:27:02 +02:00
message
mfd mfd: intel-lpss: Remove D3cold delay 2020-04-07 07:43:26 +02:00
misc misc: genwqe: should return proper error value. 2020-04-07 12:29:28 +02:00
mmc mmc: sdhci-of-at91: fix quirk2 overwrite 2020-04-07 12:26:35 +02:00
motor
mtd mtd: physmap_of: Release resources on error 2020-04-07 12:32:41 +02:00
muic
net sfc: Only cancel the PPS workqueue if it exists 2020-04-07 12:33:36 +02:00
nfc NFC: st21nfca: fix double free 2020-04-07 11:48:19 +02:00
ntb
nubus
nvdimm
nvme
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2020-04-07 12:27:36 +02:00
of of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC 2020-04-07 12:27:09 +02:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2020-04-07 07:39:52 +02:00
parport
pci PCI: tegra: Enable Relaxed Ordering only for Tegra20 & Tegra30 2020-04-07 11:49:10 +02:00
pcmcia
perf
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2020-04-06 20:06:04 +02:00
pinctrl pinctrl: at91: don't use the same irqchip with multiple gpiochips 2020-04-07 12:27:50 +02:00
platform asus-wmi: Create quirk for airplane_mode LED 2020-04-07 12:33:46 +02:00
pnp
power power: supply: twl4030_charger: disable eoc interrupt on linear charge 2020-04-07 12:28:42 +02:00
powercap
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2020-04-06 20:26:27 +02:00
ps3
ptp
pwm
rapidio
ras
regulator regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized 2020-04-07 09:28:53 +02:00
remoteproc
reset
rpmsg
rtc
s390 s390/qeth: invoke softirqs after napi_schedule() 2020-04-07 12:28:24 +02:00
sbus
scsi scsi: libsas: always unregister the old device if going to discover new 2020-04-07 12:29:32 +02:00
security/samsung/icdrv
sensorhub
sensors
sfi
sh
sn
soc
spi spi: rockchip: initialize dma_slave_config properly 2020-04-07 12:33:28 +02:00
spmi
ssb
staging Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc 2020-04-07 08:13:59 +02:00
switch
target scsi: target: core: Do not overwrite CDB byte 1 2020-04-07 09:29:07 +02:00
tc
tee
thermal thermal: Fix use-after-free when unregistering thermal zone device 2020-04-07 08:08:06 +02:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2020-04-07 09:27:58 +02:00
trace
tty serial: mxs-auart: Fix potential infinite loop 2020-04-07 12:28:29 +02:00
uh
uio
usb USB: serial: cypress_m8: fix interrupt-out transfer length 2020-04-07 12:32:39 +02:00
uwb
vfio vfio/pci: Fix potential memory leak in vfio_msi_cap_len 2020-04-07 12:29:30 +02:00
vhost vhost: make sure log_num < in_num 2020-04-06 21:35:05 +02:00
video backlight: lm3639: Unconditionally call led_classdev_unregister 2020-04-07 12:33:07 +02:00
virt
virtio
vision
vlynq
vme
w1
watchdog watchdog: bcm2835_wdt: Fix module autoload 2020-04-06 21:33:14 +02:00
xen xen/pci: reserve MCFG areas earlier 2020-04-07 08:08:00 +02:00
zorro
Kconfig
Makefile