twx-linux/include/linux/platform_data
Samuel Čavoj ea856ec266 platform/x86: asus-wmi: Add support for SW_TABLET_MODE on UX360
The UX360CA has a WMI device id 0x00060062, which reports whether the
lid is flipped in tablet mode (1) or in normal laptop mode (0).

Add a quirk (quirk_asus_use_lid_flip_devid) for devices on which this
WMI device should be used to figure out the SW_TABLET_MODE state, as
opposed to the quirk_asus_use_kbd_dock_devid.

Additionally, the device needs to be queried on resume and restore
because the firmware does not generate an event if the laptop is put to
sleep while in tablet mode, flipped to normal mode, and later awoken.

It is assumed other UX360* models have the same WMI device. As such, the
quirk is applied to devices with DMI_MATCH(DMI_PRODUCT_NAME, "UX360").
More devices with this feature need to be tested and added accordingly.

The reason for using an allowlist via the quirk mechanism is that the new
WMI device (0x00060062) is also present on some models which do not have
a 360 degree hinge (at least FX503VD and GL503VD from Hans' DSTS
collection) and therefore its presence cannot be relied on.

Signed-off-by: Samuel Čavoj <samuel@cavoj.net>
Cc: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20201020220944.1075530-1-samuel@cavoj.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2020-10-28 12:47:37 +01:00
..
gpio platform/x86: pcengines-apuv2: Fix typo on define of AMD_FCH_GPIO_REG_GPIO55_DEVSLP0 2020-09-24 14:04:53 +03:00
jz4740
media media: mach-omap1: board-ams-delta.c: remove soc_camera dependencies 2020-07-04 12:18:49 +02:00
txx9
x86 platform/x86: asus-wmi: Add support for SW_TABLET_MODE on UX360 2020-10-28 12:47:37 +01:00
ad5449.h
ad5755.h
ad5761.h mailmap: change email for Ricardo Ribalda 2020-05-25 18:59:59 -06:00
ad7266.h iio: ad7266: Convert to use GPIO descriptors 2019-12-15 11:42:16 +00:00
ad7298.h
ad7303.h
ad7791.h
ad7793.h platform_data: ad7793.h: drop a duplicated word 2020-08-22 10:53:23 +01:00
ad7887.h
adau17x1.h
adau1977.h
adp5588.h
adp8860.h
adp8870.h
ads7828.h
ams-delta-fiq.h
apds990x.h
arm-ux500-pm.h
asoc-imx-ssi.h
asoc-kirkwood.h
asoc-mx27vis.h
asoc-palm27x.h
asoc-s3c24xx_simtec.h
asoc-s3c.h
asoc-ti-mcbsp.h
asoc-ux500-msp.h
at91_adc.h
ata-pxa.h
ata-samsung_cf.h
atmel.h
b53.h net: dsa: b53: Platform data shan't include kernel.h 2020-02-05 14:00:05 +01:00
bcmgenet.h
bd6107.h backlight: bd6107: Convert to use GPIO descriptor 2019-12-16 10:32:27 +00:00
bh1770glc.h
brcmfmac.h
clk-da8xx-cfgchip.h
clk-davinci-pll.h
clk-fch.h ACPI: APD: Add a fmw property is_raven 2020-08-07 20:12:00 +02:00
clk-s3c2410.h ARM: s3c24xx: pass pointer to clk driver via platform data 2020-08-19 20:58:10 +02:00
clk-u300.h
cpuidle-exynos.h
cros_ec_chardev.h
cros_ec_commands.h chrome platform changes for 5.9 2020-08-11 17:28:32 -07:00
cros_ec_proto.h platform/chrome: cros_ec_proto: Do not export cros_ec_cmd_xfer() 2020-07-23 10:12:23 +02:00
cros_ec_sensorhub.h platform/chrome: cros_ec_sensorhub: Allocate sensorhub resource before claiming sensors 2020-04-29 23:17:45 +02:00
cros_usbpd_notify.h platform: chrome: Add cros-usbpd-notify driver 2020-02-10 10:14:19 -08:00
crypto-ux500.h
cyttsp4.h
davinci_asp.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
davinci-cpufreq.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
dma-atmel.h
dma-coh901318.h
dma-dw.h dmaengine: dw: Add DMA-channels mask cell support 2020-08-17 11:58:31 +05:30
dma-ep93xx.h
dma-hsu.h
dma-imx-sdma.h
dma-imx.h
dma-iop32x.h
dma-mcf-edma.h
dma-mmp_tdma.h
dma-mv_xor.h
dma-s3c24xx.h
dma-ste-dma40.h
dmtimer-omap.h clocksource/drivers/timer-ti-dm: Enable autoreload in set_pwm 2020-03-16 12:40:51 +01:00
ds620.h
dsa.h
edma.h
efm32-spi.h
efm32-uart.h
elm.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
emif_plat.h
eth_ixp4xx.h ixp4xx_eth: move platform_data definition 2020-01-12 12:59:53 -08:00
eth-ep93xx.h
fb-s3c2410.h fbdev: s3c2410fb: remove mach header dependency 2020-08-20 17:48:12 +02:00
g762.h
gpio_backlight.h
gpio-ath79.h
gpio-davinci.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
gpio-dwapb.h gpio: dwapb: Add max GPIOs macro 2020-08-27 10:32:57 +02:00
gpio-htc-egpio.h
gpio-omap.h
gpmc-omap.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
gsc_hwmon.h hwmon: (gsc-hwmon) add fan sensor 2020-09-23 09:42:41 -07:00
hsmmc-omap.h
hwmon-s3c.h
i2c-davinci.h
i2c-designware.h
i2c-gpio.h
i2c-hid.h
i2c-imx.h
i2c-mux-gpio.h
i2c-mux-reg.h
i2c-ocores.h
i2c-omap.h
i2c-pca-platform.h
i2c-pxa.h i2c: pxa: move private definitions to i2c-pxa.c 2020-05-05 14:50:41 +02:00
i2c-s3c2410.h
i2c-xiic.h
ina2xx.h
intel-mid_wdt.h
intel-spi.h
invensense_mpu6050.h
iommu-omap.h
irda-pxaficp.h
irda-sa11x0.h
isl9305.h
itco_wdt.h platform/x86: intel_pmc_ipc: Convert to MFD 2020-04-24 11:18:44 +01:00
keyboard-pxa930_rotary.h
keyboard-spear.h
keypad-ep93xx.h
keypad-nomadik-ske.h
keypad-omap.h
keypad-pxa27x.h
keyscan-davinci.h
lcd-mipid.h
leds-lm355x.h
leds-lm3642.h
leds-lp55xx.h leds: lp55xx: Add multicolor framework support to lp55xx 2020-07-22 14:42:06 +02:00
leds-omap.h
leds-s3c24xx.h ARM: s3c24xx: leds: Convert to use GPIO descriptors 2020-07-09 09:56:14 +02:00
lm3630a_bl.h
lm3639_bl.h
lm8323.h
lp855x.h
lp8727.h
lp8755.h
ltc4245.h
lv5207lp.h
max197.h
max732x.h
max3421-hcd.h
max6639.h
max6697.h
mcs.h
mdio-bcm-unimac.h
mdio-gpio.h
mfd-mcp-sa11x0.h
microchip-ksz.h net: dsa: microchip: Platform data shan't include kernel.h 2020-02-05 14:00:05 +01:00
mlxreg.h platform_data/mlxreg: Extend core platform structure 2020-10-07 23:21:00 +02:00
mmc-davinci.h
mmc-esdhc-imx.h mmc: sdhci-esdhc: update contact email 2020-05-28 11:21:03 +02:00
mmc-esdhc-mcf.h m68k: mcf5441x: add support for esdhc mmc controller 2020-05-28 11:22:15 +02:00
mmc-mxcmmc.h
mmc-omap.h arch: arm: mach-omap2: mmc: Move omap_mmc_notify_cover_event() prototype 2020-07-13 12:18:26 +02:00
mmc-pxamci.h
mmc-s3cmci.h ARM: s3c24xx: move s3cmci pinctrl handling into board files 2020-08-20 17:42:21 +02:00
mmc-sdhci-s3c.h
mmp_audio.h
mmp_dma.h
mouse-pxa930_trkball.h
mtd-davinci-aemif.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
mtd-davinci.h mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
mtd-mxc_nand.h
mtd-nand-omap2.h
mtd-nand-pxa3xx.h
mtd-nand-s3c2410.h mtd: rawnand: Use the new ECC engine type enumeration 2020-09-28 15:59:42 +02:00
mtd-orion_nand.h
mv88e6xxx.h
mv_usb.h USB: EHCI: ehci-mv: drop pxa_ehci_type and some device IDs 2019-12-30 20:11:29 +01:00
net-cw1200.h
nfcmrvl.h
ntc_thermistor.h
omap1_bl.h
omap-twl4030.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
omap-wd-timer.h
omapdss.h
pca953x.h
pcf857x.h
pcmcia-pxa2xx_viper.h
phy-da8xx-usb.h
pinctrl-single.h
pm33xx.h soc: ti: pm33xx: Simplify RTC usage to prepare to drop platform data 2020-08-24 08:38:32 +03:00
pxa2xx_udc.h
pxa_sdhci.h
regulator-haptic.h
rtc-ds2404.h
rtc-v3020.h
s3c-hsotg.h
s3c-hsudc.h usb: gadget: s3c-hsudc: remove platform header dependency 2020-08-19 20:58:27 +02:00
sa11x0-serial.h
sc18is602.h
sdhci-pic32.h
serial-imx.h
serial-omap.h
serial-sccnxp.h
sgi-w1.h
shmob_drm.h
sht3x.h
shtc1.h
si5351.h
simplefb.h fbdev: simplefb: Platform data shan't include kernel.h 2020-03-02 16:32:14 +01:00
spi-ath79.h
spi-clps711x.h
spi-davinci.h
spi-ep93xx.h
spi-mt65xx.h
spi-omap2-mcspi.h spi: spi-omap2-mcspi: Handle DMA size restriction on AM65x 2020-02-06 15:53:40 +00:00
spi-s3c64xx.h
ssm2518.h
st33zp24.h
st_sensors_pdata.h
syscon.h
tda9950.h
ti-aemif.h
ti-prm.h
ti-sysc.h bus: ti-sysc: Add support for PRUSS SYSC type 2020-03-04 07:54:57 -08:00
timer-ixp4xx.h
touchscreen-s3c2410.h
tsc2007.h
tsl2563.h
tsl2772.h
uio_dmem_genirq.h
uio_pruss.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
usb3503.h usb: usb3503: Convert to use GPIO descriptors 2019-12-30 20:40:19 +01:00
usb-davinci.h
usb-ehci-mxc.h
usb-ehci-orion.h
usb-musb-ux500.h
usb-mx2.h
usb-ohci-pxa27x.h
usb-ohci-s3c2410.h
usb-omap1.h
usb-omap.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
usb-pxa3xx-ulpi.h
usb-s3c2410_udc.h
ux500_wdt.h
video_s3c.h
video-ep93xx.h
video-imxfb.h
video-mx3fb.h
video-pxafb.h
voltage-omap.h
wan_ixp4xx_hss.h wan: ixp4xx_hss: prepare compile testing 2020-01-12 12:59:52 -08:00
wilco-ec.h platform_data: wilco-ec.h: Replace zero-length array with flexible-array member 2020-04-18 15:44:55 -05:00
wiznet.h
wkup_m3.h
xilinx-ll-temac.h
xtalk-bridge.h
zforce_ts.h