Changes in 4.9.249 spi: bcm2835aux: Fix use-after-free on unbind spi: bcm2835aux: Restore err assignment in bcm2835aux_spi_probe iwlwifi: pcie: limit memory read spin time arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards. ARC: stack unwinding: don't assume non-current task is sleeping platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE Input: cm109 - do not stomp on control URB Input: i8042 - add Acer laptops to the i8042 reset list pinctrl: amd: remove debounce filter setting in IRQ type setting scsi: be2iscsi: Revert "Fix a theoretical leak in beiscsi_create_eqs()" spi: Prevent adding devices below an unregistering controller net/mlx4_en: Avoid scheduling restart task if it is already running tcp: fix cwnd-limited bug for TSO deferral where we send nothing net: stmmac: delete the eee_ctrl_timer after napi disabled net: stmmac: dwmac-meson8b: fix mask definition of the m250_sel mux net: bridge: vlan: fix error return code in __vlan_add() mac80211: mesh: fix mesh_pathtbl_init() error path USB: dummy-hcd: Fix uninitialized array use in init() USB: add RESET_RESUME quirk for Snapscan 1212 ALSA: usb-audio: Fix potential out-of-bounds shift ALSA: usb-audio: Fix control 'access overflow' errors from chmap xhci: Give USB2 ports time to enter U3 in bus suspend USB: sisusbvga: Make console support depend on BROKEN ALSA: pcm: oss: Fix potential out-of-bounds shift serial: 8250_omap: Avoid FIFO corruption caused by MDR1 access pinctrl: merrifield: Set default bias in case no particular value given pinctrl: baytrail: Avoid clearing debounce value when turning it off scsi: bnx2i: Requires MMU can: softing: softing_netdev_open(): fix error handling RDMA/cm: Fix an attempt to use non-valid pointer when cleaning timewait kernel/cpu: add arch override for clear_tasks_mm_cpumask() mm handling drm/tegra: sor: Disable clocks on error in tegra_sor_init() scsi: mpt3sas: Increase IOCInit request timeout to 30s dm table: Remove BUG_ON(in_interrupt()) soc/tegra: fuse: Fix index bug in get_process_id USB: serial: option: add interface-number sanity check to flag handling USB: gadget: f_acm: add support for SuperSpeed Plus USB: gadget: f_midi: setup SuperSpeed Plus descriptors USB: gadget: f_rndis: fix bitrate for SuperSpeed and above usb: gadget: f_fs: Re-use SS descriptors for SuperSpeedPlus usb: chipidea: ci_hdrc_imx: Pass DISABLE_DEVICE_STREAMING flag to imx6ul ARM: dts: exynos: fix roles of USB 3.0 ports on Odroid XU ARM: dts: exynos: fix USB 3.0 VBUS control and over-current pins on Exynos5410 ARM: dts: exynos: fix USB 3.0 pins supply being turned off on Odroid XU HID: i2c-hid: add Vero K147 to descriptor override serial_core: Check for port state when tty is in error state media: msi2500: assign SPI bus number dynamically md: fix a warning caused by a race between concurrent md_ioctl()s Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt() drm/gma500: fix double free of gma_connector RDMA/rxe: Compute PSN windows correctly ARM: p2v: fix handling of LPAE translation in BE mode crypto: talitos - Fix return type of current_desc_hdr() spi: img-spfi: fix reference leak in img_spfi_resume ASoC: pcm: DRAIN support reactivation arm64: dts: exynos: Correct psci compatible used on Exynos7 Bluetooth: Fix null pointer dereference in hci_event_packet() spi: spi-ti-qspi: fix reference leak in ti_qspi_setup spi: tegra20-slink: fix reference leak in slink ops of tegra20 spi: tegra20-sflash: fix reference leak in tegra_sflash_resume spi: tegra114: fix reference leak in tegra spi ops RDMa/mthca: Work around -Wenum-conversion warning MIPS: BCM47XX: fix kconfig dependency bug for BCM47XX_BCMA staging: greybus: codecs: Fix reference counter leak in error handling media: solo6x10: fix missing snd_card_free in error handling case drm/omap: dmm_tiler: fix return error code in omap_dmm_probe() Input: ads7846 - fix integer overflow on Rt calculation Input: ads7846 - fix unaligned access on 7845 powerpc/feature: Fix CPU_FTRS_ALWAYS by removing CPU_FTRS_GENERIC_32 crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe soc: ti: knav_qmss: fix reference leak in knav_queue_probe soc: ti: Fix reference imbalance in knav_dma_probe drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe RDMA/cxgb4: Validate the number of CQEs memstick: fix a double-free bug in memstick_check ARM: dts: at91: sama5d4_xplained: add pincontrol for USB Host ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host orinoco: Move context allocation after processing the skb cw1200: fix missing destroy_workqueue() on error in cw1200_init_common media: siano: fix memory leak of debugfs members in smsdvb_hotplug mips: cdmm: fix use-after-free in mips_cdmm_bus_discover HSI: omap_ssi: Don't jump to free ID in ssi_add_controller() ARM: dts: at91: at91sam9rl: fix ADC triggers NFSv4.2: condition READDIR's mask for security label based on LSM state SUNRPC: xprt_load_transport() needs to support the netid "rdma6" lockd: don't use interval-based rebinding over TCP NFS: switch nfsiod to be an UNBOUND workqueue. vfio-pci: Use io_remap_pfn_range() for PCI IO memory media: saa7146: fix array overflow in vidioc_s_audio() clocksource/drivers/cadence_ttc: Fix memory leak in ttc_setup_clockevent() pinctrl: falcon: add missing put_device() call in pinctrl_falcon_probe() memstick: r592: Fix error return in r592_probe() ASoC: jz4740-i2s: add missed checks for clk_get() dm ioctl: fix error return code in target_message clocksource/drivers/arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI cpufreq: highbank: Add missing MODULE_DEVICE_TABLE cpufreq: st: Add missing MODULE_DEVICE_TABLE cpufreq: loongson1: Add missing MODULE_ALIAS cpufreq: scpi: Add missing MODULE_ALIAS scsi: pm80xx: Fix error return in pm8001_pci_probe() seq_buf: Avoid type mismatch for seq_buf_init scsi: fnic: Fix error return code in fnic_probe() powerpc/pseries/hibernation: drop pseries_suspend_begin() from suspend ops usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe usb: oxu210hp-hcd: Fix memory leak in oxu_create speakup: fix uninitialized flush_lock nfsd: Fix message level for normal termination nfs_common: need lock during iterate through the list x86/kprobes: Restore BTF if the single-stepping is cancelled clk: tegra: Fix duplicated SE clock entry extcon: max77693: Fix modalias string ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control() irqchip/alpine-msi: Fix freeing of interrupts on allocation error path um: chan_xterm: Fix fd leak nfc: s3fwrn5: Release the nfc firmware powerpc/ps3: use dma_mapping_error() checkpatch: fix unescaped left brace net: bcmgenet: Fix a resource leak in an error handling path in the probe functin net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function net: korina: fix return value watchdog: qcom: Avoid context switch in restart handler clk: ti: Fix memleak in ti_fapll_synth_setup perf record: Fix memory leak when using '--user-regs=?' to list registers qlcnic: Fix error code in probe clk: s2mps11: Fix a resource leak in error handling paths in the probe function cfg80211: initialize rekey_data Input: cros_ec_keyb - send 'scancodes' in addition to key events Input: goodix - add upside-down quirk for Teclast X98 Pro tablet media: gspca: Fix memory leak in probe media: sunxi-cir: ensure IR is handled when it is continuous media: netup_unidvb: Don't leak SPI master in probe error path Input: cyapa_gen6 - fix out-of-bounds stack access Revert "ACPI / resources: Use AE_CTRL_TERMINATE to terminate resources walks" ACPI: PNP: compare the string length in the matching_id() ALSA: pcm: oss: Fix a few more UBSAN fixes ALSA: usb-audio: Disable sample read check if firmware doesn't give back s390/dasd: prevent inconsistent LCU device data s390/dasd: fix list corruption of pavgroup group list s390/dasd: fix list corruption of lcu list staging: comedi: mf6x4: Fix AI end-of-conversion detection powerpc/perf: Exclude kernel samples while counting events in user space. USB: serial: mos7720: fix parallel-port state restore USB: serial: keyspan_pda: fix dropped unthrottle interrupts USB: serial: keyspan_pda: fix write deadlock USB: serial: keyspan_pda: fix stalled writes USB: serial: keyspan_pda: fix write-wakeup use-after-free USB: serial: keyspan_pda: fix tx-unthrottle use-after-free USB: serial: keyspan_pda: fix write unthrottling btrfs: quota: Set rescan progress to (u64)-1 if we hit last leaf btrfs: scrub: Don't use inode page cache in scrub_handle_errored_block() Btrfs: fix selftests failure due to uninitialized i_mode in test inodes btrfs: fix return value mixup in btrfs_get_extent ext4: fix a memory leak of ext4_free_data KVM: arm64: Introduce handling of AArch32 TTBCR2 traps powerpc/xmon: Change printk() to pr_cont() ceph: fix race in concurrent __ceph_remove_cap invocations jffs2: Fix GC exit abnormally jfs: Fix array index bounds check in dbAdjTree drm/dp_aux_dev: check aux_dev before use in drm_dp_aux_dev_get_by_minor() spi: spi-sh: Fix use-after-free on unbind spi: davinci: Fix use-after-free on unbind spi: pic32: Don't leak DMA channels in probe error path spi: rb4xx: Don't leak SPI master in probe error path spi: sc18is602: Don't leak SPI master in probe error path spi: st-ssc4: Fix unbalanced pm_runtime_disable() in probe error path soc: qcom: smp2p: Safely acquire spinlock without IRQs mtd: parser: cmdline: Fix parsing of part-names with colons iio: buffer: Fix demux update iio: adc: rockchip_saradc: fix missing clk_disable_unprepare() on error in rockchip_saradc_resume iio:pressure:mpl3115: Force alignment of buffer clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9 xen-blkback: set ring->xenblkd to NULL after kthread_stop() PCI: Fix pci_slot_release() NULL pointer dereference Linux 4.9.249 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I4829a32e2ea6e76eefea716f35f42ee02b75c265
392 lines
14 KiB
C
392 lines
14 KiB
C
/*
|
|
* ACPI support for PNP bus type
|
|
*
|
|
* Copyright (C) 2014, Intel Corporation
|
|
* Authors: Zhang Rui <rui.zhang@intel.com>
|
|
* Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/acpi.h>
|
|
#include <linux/module.h>
|
|
#include <linux/ctype.h>
|
|
|
|
static const struct acpi_device_id acpi_pnp_device_ids[] = {
|
|
/* pata_isapnp */
|
|
{"PNP0600"}, /* Generic ESDI/IDE/ATA compatible hard disk controller */
|
|
/* floppy */
|
|
{"PNP0700"},
|
|
/* tpm_inf_pnp */
|
|
{"IFX0101"}, /* Infineon TPMs */
|
|
{"IFX0102"}, /* Infineon TPMs */
|
|
/*tpm_tis */
|
|
{"PNP0C31"}, /* TPM */
|
|
{"ATM1200"}, /* Atmel */
|
|
{"IFX0102"}, /* Infineon */
|
|
{"BCM0101"}, /* Broadcom */
|
|
{"BCM0102"}, /* Broadcom */
|
|
{"NSC1200"}, /* National */
|
|
{"ICO0102"}, /* Intel */
|
|
/* ide */
|
|
{"PNP0600"}, /* Generic ESDI/IDE/ATA compatible hard disk controller */
|
|
/* ns558 */
|
|
{"ASB16fd"}, /* AdLib NSC16 */
|
|
{"AZT3001"}, /* AZT1008 */
|
|
{"CDC0001"}, /* Opl3-SAx */
|
|
{"CSC0001"}, /* CS4232 */
|
|
{"CSC000f"}, /* CS4236 */
|
|
{"CSC0101"}, /* CS4327 */
|
|
{"CTL7001"}, /* SB16 */
|
|
{"CTL7002"}, /* AWE64 */
|
|
{"CTL7005"}, /* Vibra16 */
|
|
{"ENS2020"}, /* SoundscapeVIVO */
|
|
{"ESS0001"}, /* ES1869 */
|
|
{"ESS0005"}, /* ES1878 */
|
|
{"ESS6880"}, /* ES688 */
|
|
{"IBM0012"}, /* CS4232 */
|
|
{"OPT0001"}, /* OPTi Audio16 */
|
|
{"YMH0006"}, /* Opl3-SA */
|
|
{"YMH0022"}, /* Opl3-SAx */
|
|
{"PNPb02f"}, /* Generic */
|
|
/* i8042 kbd */
|
|
{"PNP0300"},
|
|
{"PNP0301"},
|
|
{"PNP0302"},
|
|
{"PNP0303"},
|
|
{"PNP0304"},
|
|
{"PNP0305"},
|
|
{"PNP0306"},
|
|
{"PNP0309"},
|
|
{"PNP030a"},
|
|
{"PNP030b"},
|
|
{"PNP0320"},
|
|
{"PNP0343"},
|
|
{"PNP0344"},
|
|
{"PNP0345"},
|
|
{"CPQA0D7"},
|
|
/* i8042 aux */
|
|
{"AUI0200"},
|
|
{"FJC6000"},
|
|
{"FJC6001"},
|
|
{"PNP0f03"},
|
|
{"PNP0f0b"},
|
|
{"PNP0f0e"},
|
|
{"PNP0f12"},
|
|
{"PNP0f13"},
|
|
{"PNP0f19"},
|
|
{"PNP0f1c"},
|
|
{"SYN0801"},
|
|
/* fcpnp */
|
|
{"AVM0900"},
|
|
/* radio-cadet */
|
|
{"MSM0c24"}, /* ADS Cadet AM/FM Radio Card */
|
|
/* radio-gemtek */
|
|
{"ADS7183"}, /* AOpen FX-3D/Pro Radio */
|
|
/* radio-sf16fmr2 */
|
|
{"MFRad13"}, /* tuner subdevice of SF16-FMD2 */
|
|
/* ene_ir */
|
|
{"ENE0100"},
|
|
{"ENE0200"},
|
|
{"ENE0201"},
|
|
{"ENE0202"},
|
|
/* fintek-cir */
|
|
{"FIT0002"}, /* CIR */
|
|
/* ite-cir */
|
|
{"ITE8704"}, /* Default model */
|
|
{"ITE8713"}, /* CIR found in EEEBox 1501U */
|
|
{"ITE8708"}, /* Bridged IT8512 */
|
|
{"ITE8709"}, /* SRAM-Bridged IT8512 */
|
|
/* nuvoton-cir */
|
|
{"WEC0530"}, /* CIR */
|
|
{"NTN0530"}, /* CIR for new chip's pnp id */
|
|
/* Winbond CIR */
|
|
{"WEC1022"},
|
|
/* wbsd */
|
|
{"WEC0517"},
|
|
{"WEC0518"},
|
|
/* Winbond CIR */
|
|
{"TCM5090"}, /* 3Com Etherlink III (TP) */
|
|
{"TCM5091"}, /* 3Com Etherlink III */
|
|
{"TCM5094"}, /* 3Com Etherlink III (combo) */
|
|
{"TCM5095"}, /* 3Com Etherlink III (TPO) */
|
|
{"TCM5098"}, /* 3Com Etherlink III (TPC) */
|
|
{"PNP80f7"}, /* 3Com Etherlink III compatible */
|
|
{"PNP80f8"}, /* 3Com Etherlink III compatible */
|
|
/* nsc-ircc */
|
|
{"NSC6001"},
|
|
{"HWPC224"},
|
|
{"IBM0071"},
|
|
/* smsc-ircc2 */
|
|
{"SMCf010"},
|
|
/* sb1000 */
|
|
{"GIC1000"},
|
|
/* parport_pc */
|
|
{"PNP0400"}, /* Standard LPT Printer Port */
|
|
{"PNP0401"}, /* ECP Printer Port */
|
|
/* apple-gmux */
|
|
{"APP000B"},
|
|
/* system */
|
|
{"PNP0c02"}, /* General ID for reserving resources */
|
|
{"PNP0c01"}, /* memory controller */
|
|
/* rtc_cmos */
|
|
{"PNP0b00"},
|
|
{"PNP0b01"},
|
|
{"PNP0b02"},
|
|
/* c6xdigio */
|
|
{"PNP0400"}, /* Standard LPT Printer Port */
|
|
{"PNP0401"}, /* ECP Printer Port */
|
|
/* ni_atmio.c */
|
|
{"NIC1900"},
|
|
{"NIC2400"},
|
|
{"NIC2500"},
|
|
{"NIC2600"},
|
|
{"NIC2700"},
|
|
/* serial */
|
|
{"AAC000F"}, /* Archtek America Corp. Archtek SmartLink Modem 3334BT Plug & Play */
|
|
{"ADC0001"}, /* Anchor Datacomm BV. SXPro 144 External Data Fax Modem Plug & Play */
|
|
{"ADC0002"}, /* SXPro 288 External Data Fax Modem Plug & Play */
|
|
{"AEI0250"}, /* PROLiNK 1456VH ISA PnP K56flex Fax Modem */
|
|
{"AEI1240"}, /* Actiontec ISA PNP 56K X2 Fax Modem */
|
|
{"AKY1021"}, /* Rockwell 56K ACF II Fax+Data+Voice Modem */
|
|
{"ALI5123"}, /* ALi Fast Infrared Controller */
|
|
{"AZT4001"}, /* AZT3005 PnP SOUND DEVICE */
|
|
{"BDP3336"}, /* Best Data Products Inc. Smart One 336F PnP Modem */
|
|
{"BRI0A49"}, /* Boca Complete Ofc Communicator 14.4 Data-FAX */
|
|
{"BRI1400"}, /* Boca Research 33,600 ACF Modem */
|
|
{"BRI3400"}, /* Boca 33.6 Kbps Internal FD34FSVD */
|
|
{"BRI0A49"}, /* Boca 33.6 Kbps Internal FD34FSVD */
|
|
{"BDP3336"}, /* Best Data Products Inc. Smart One 336F PnP Modem */
|
|
{"CPI4050"}, /* Computer Peripherals Inc. EuroViVa CommCenter-33.6 SP PnP */
|
|
{"CTL3001"}, /* Creative Labs Phone Blaster 28.8 DSVD PnP Voice */
|
|
{"CTL3011"}, /* Creative Labs Modem Blaster 28.8 DSVD PnP Voice */
|
|
{"DAV0336"}, /* Davicom ISA 33.6K Modem */
|
|
{"DMB1032"}, /* Creative Modem Blaster Flash56 DI5601-1 */
|
|
{"DMB2001"}, /* Creative Modem Blaster V.90 DI5660 */
|
|
{"ETT0002"}, /* E-Tech CyberBULLET PC56RVP */
|
|
{"FUJ0202"}, /* Fujitsu 33600 PnP-I2 R Plug & Play */
|
|
{"FUJ0205"}, /* Fujitsu FMV-FX431 Plug & Play */
|
|
{"FUJ0206"}, /* Fujitsu 33600 PnP-I4 R Plug & Play */
|
|
{"FUJ0209"}, /* Fujitsu Fax Voice 33600 PNP-I5 R Plug & Play */
|
|
{"GVC000F"}, /* Archtek SmartLink Modem 3334BT Plug & Play */
|
|
{"GVC0303"}, /* Archtek SmartLink Modem 3334BRV 33.6K Data Fax Voice */
|
|
{"HAY0001"}, /* Hayes Optima 288 V.34-V.FC + FAX + Voice Plug & Play */
|
|
{"HAY000C"}, /* Hayes Optima 336 V.34 + FAX + Voice PnP */
|
|
{"HAY000D"}, /* Hayes Optima 336B V.34 + FAX + Voice PnP */
|
|
{"HAY5670"}, /* Hayes Accura 56K Ext Fax Modem PnP */
|
|
{"HAY5674"}, /* Hayes Accura 56K Ext Fax Modem PnP */
|
|
{"HAY5675"}, /* Hayes Accura 56K Fax Modem PnP */
|
|
{"HAYF000"}, /* Hayes 288, V.34 + FAX */
|
|
{"HAYF001"}, /* Hayes Optima 288 V.34 + FAX + Voice, Plug & Play */
|
|
{"IBM0033"}, /* IBM Thinkpad 701 Internal Modem Voice */
|
|
{"PNP4972"}, /* Intermec CV60 touchscreen port */
|
|
{"IXDC801"}, /* Intertex 28k8 33k6 Voice EXT PnP */
|
|
{"IXDC901"}, /* Intertex 33k6 56k Voice EXT PnP */
|
|
{"IXDD801"}, /* Intertex 28k8 33k6 Voice SP EXT PnP */
|
|
{"IXDD901"}, /* Intertex 33k6 56k Voice SP EXT PnP */
|
|
{"IXDF401"}, /* Intertex 28k8 33k6 Voice SP INT PnP */
|
|
{"IXDF801"}, /* Intertex 28k8 33k6 Voice SP EXT PnP */
|
|
{"IXDF901"}, /* Intertex 33k6 56k Voice SP EXT PnP */
|
|
{"KOR4522"}, /* KORTEX 28800 Externe PnP */
|
|
{"KORF661"}, /* KXPro 33.6 Vocal ASVD PnP */
|
|
{"LAS4040"}, /* LASAT Internet 33600 PnP */
|
|
{"LAS4540"}, /* Lasat Safire 560 PnP */
|
|
{"LAS5440"}, /* Lasat Safire 336 PnP */
|
|
{"MNP0281"}, /* Microcom TravelPorte FAST V.34 Plug & Play */
|
|
{"MNP0336"}, /* Microcom DeskPorte V.34 FAST or FAST+ Plug & Play */
|
|
{"MNP0339"}, /* Microcom DeskPorte FAST EP 28.8 Plug & Play */
|
|
{"MNP0342"}, /* Microcom DeskPorte 28.8P Plug & Play */
|
|
{"MNP0500"}, /* Microcom DeskPorte FAST ES 28.8 Plug & Play */
|
|
{"MNP0501"}, /* Microcom DeskPorte FAST ES 28.8 Plug & Play */
|
|
{"MNP0502"}, /* Microcom DeskPorte 28.8S Internal Plug & Play */
|
|
{"MOT1105"}, /* Motorola BitSURFR Plug & Play */
|
|
{"MOT1111"}, /* Motorola TA210 Plug & Play */
|
|
{"MOT1114"}, /* Motorola HMTA 200 (ISDN) Plug & Play */
|
|
{"MOT1115"}, /* Motorola BitSURFR Plug & Play */
|
|
{"MOT1190"}, /* Motorola Lifestyle 28.8 Internal */
|
|
{"MOT1501"}, /* Motorola V.3400 Plug & Play */
|
|
{"MOT1502"}, /* Motorola Lifestyle 28.8 V.34 Plug & Play */
|
|
{"MOT1505"}, /* Motorola Power 28.8 V.34 Plug & Play */
|
|
{"MOT1509"}, /* Motorola ModemSURFR External 28.8 Plug & Play */
|
|
{"MOT150A"}, /* Motorola Premier 33.6 Desktop Plug & Play */
|
|
{"MOT150F"}, /* Motorola VoiceSURFR 56K External PnP */
|
|
{"MOT1510"}, /* Motorola ModemSURFR 56K External PnP */
|
|
{"MOT1550"}, /* Motorola ModemSURFR 56K Internal PnP */
|
|
{"MOT1560"}, /* Motorola ModemSURFR Internal 28.8 Plug & Play */
|
|
{"MOT1580"}, /* Motorola Premier 33.6 Internal Plug & Play */
|
|
{"MOT15B0"}, /* Motorola OnlineSURFR 28.8 Internal Plug & Play */
|
|
{"MOT15F0"}, /* Motorola VoiceSURFR 56K Internal PnP */
|
|
{"MVX00A1"}, /* Deskline K56 Phone System PnP */
|
|
{"MVX00F2"}, /* PC Rider K56 Phone System PnP */
|
|
{"nEC8241"}, /* NEC 98NOTE SPEAKER PHONE FAX MODEM(33600bps) */
|
|
{"PMC2430"}, /* Pace 56 Voice Internal Plug & Play Modem */
|
|
{"PNP0500"}, /* Generic standard PC COM port */
|
|
{"PNP0501"}, /* Generic 16550A-compatible COM port */
|
|
{"PNPC000"}, /* Compaq 14400 Modem */
|
|
{"PNPC001"}, /* Compaq 2400/9600 Modem */
|
|
{"PNPC031"}, /* Dial-Up Networking Serial Cable between 2 PCs */
|
|
{"PNPC032"}, /* Dial-Up Networking Parallel Cable between 2 PCs */
|
|
{"PNPC100"}, /* Standard 9600 bps Modem */
|
|
{"PNPC101"}, /* Standard 14400 bps Modem */
|
|
{"PNPC102"}, /* Standard 28800 bps Modem */
|
|
{"PNPC103"}, /* Standard Modem */
|
|
{"PNPC104"}, /* Standard 9600 bps Modem */
|
|
{"PNPC105"}, /* Standard 14400 bps Modem */
|
|
{"PNPC106"}, /* Standard 28800 bps Modem */
|
|
{"PNPC107"}, /* Standard Modem */
|
|
{"PNPC108"}, /* Standard 9600 bps Modem */
|
|
{"PNPC109"}, /* Standard 14400 bps Modem */
|
|
{"PNPC10A"}, /* Standard 28800 bps Modem */
|
|
{"PNPC10B"}, /* Standard Modem */
|
|
{"PNPC10C"}, /* Standard 9600 bps Modem */
|
|
{"PNPC10D"}, /* Standard 14400 bps Modem */
|
|
{"PNPC10E"}, /* Standard 28800 bps Modem */
|
|
{"PNPC10F"}, /* Standard Modem */
|
|
{"PNP2000"}, /* Standard PCMCIA Card Modem */
|
|
{"ROK0030"}, /* Rockwell 33.6 DPF Internal PnP, Modular Technology 33.6 Internal PnP */
|
|
{"ROK0100"}, /* KORTEX 14400 Externe PnP */
|
|
{"ROK4120"}, /* Rockwell 28.8 */
|
|
{"ROK4920"}, /* Viking 28.8 INTERNAL Fax+Data+Voice PnP */
|
|
{"RSS00A0"}, /* Rockwell 33.6 DPF External PnP, BT Prologue 33.6 External PnP, Modular Technology 33.6 External PnP */
|
|
{"RSS0262"}, /* Viking 56K FAX INT */
|
|
{"RSS0250"}, /* K56 par,VV,Voice,Speakphone,AudioSpan,PnP */
|
|
{"SUP1310"}, /* SupraExpress 28.8 Data/Fax PnP modem */
|
|
{"SUP1381"}, /* SupraExpress 336i PnP Voice Modem */
|
|
{"SUP1421"}, /* SupraExpress 33.6 Data/Fax PnP modem */
|
|
{"SUP1590"}, /* SupraExpress 33.6 Data/Fax PnP modem */
|
|
{"SUP1620"}, /* SupraExpress 336i Sp ASVD */
|
|
{"SUP1760"}, /* SupraExpress 33.6 Data/Fax PnP modem */
|
|
{"SUP2171"}, /* SupraExpress 56i Sp Intl */
|
|
{"TEX0011"}, /* Phoebe Micro 33.6 Data Fax 1433VQH Plug & Play */
|
|
{"UAC000F"}, /* Archtek SmartLink Modem 3334BT Plug & Play */
|
|
{"USR0000"}, /* 3Com Corp. Gateway Telepath IIvi 33.6 */
|
|
{"USR0002"}, /* U.S. Robotics Sporster 33.6K Fax INT PnP */
|
|
{"USR0004"}, /* Sportster Vi 14.4 PnP FAX Voicemail */
|
|
{"USR0006"}, /* U.S. Robotics 33.6K Voice INT PnP */
|
|
{"USR0007"}, /* U.S. Robotics 33.6K Voice EXT PnP */
|
|
{"USR0009"}, /* U.S. Robotics Courier V.Everything INT PnP */
|
|
{"USR2002"}, /* U.S. Robotics 33.6K Voice INT PnP */
|
|
{"USR2070"}, /* U.S. Robotics 56K Voice INT PnP */
|
|
{"USR2080"}, /* U.S. Robotics 56K Voice EXT PnP */
|
|
{"USR3031"}, /* U.S. Robotics 56K FAX INT */
|
|
{"USR3050"}, /* U.S. Robotics 56K FAX INT */
|
|
{"USR3070"}, /* U.S. Robotics 56K Voice INT PnP */
|
|
{"USR3080"}, /* U.S. Robotics 56K Voice EXT PnP */
|
|
{"USR3090"}, /* U.S. Robotics 56K Voice INT PnP */
|
|
{"USR9100"}, /* U.S. Robotics 56K Message */
|
|
{"USR9160"}, /* U.S. Robotics 56K FAX EXT PnP */
|
|
{"USR9170"}, /* U.S. Robotics 56K FAX INT PnP */
|
|
{"USR9180"}, /* U.S. Robotics 56K Voice EXT PnP */
|
|
{"USR9190"}, /* U.S. Robotics 56K Voice INT PnP */
|
|
{"WACFXXX"}, /* Wacom tablets */
|
|
{"FPI2002"}, /* Compaq touchscreen */
|
|
{"FUJ02B2"}, /* Fujitsu Stylistic touchscreens */
|
|
{"FUJ02B3"},
|
|
{"FUJ02B4"}, /* Fujitsu Stylistic LT touchscreens */
|
|
{"FUJ02B6"}, /* Passive Fujitsu Stylistic touchscreens */
|
|
{"FUJ02B7"},
|
|
{"FUJ02B8"},
|
|
{"FUJ02B9"},
|
|
{"FUJ02BC"},
|
|
{"FUJ02E5"}, /* Fujitsu Wacom Tablet PC device */
|
|
{"FUJ02E6"}, /* Fujitsu P-series tablet PC device */
|
|
{"FUJ02E7"}, /* Fujitsu Wacom 2FGT Tablet PC device */
|
|
{"FUJ02E9"}, /* Fujitsu Wacom 1FGT Tablet PC device */
|
|
{"LTS0001"}, /* LG C1 EXPRESS DUAL (C1-PB11A3) touch screen (actually a FUJ02E6 in disguise) */
|
|
{"WCI0003"}, /* Rockwell's (PORALiNK) 33600 INT PNP */
|
|
{"WEC1022"}, /* Winbond CIR port, should not be probed. We should keep track of it to prevent the legacy serial driver from probing it */
|
|
/* scl200wdt */
|
|
{"NSC0800"}, /* National Semiconductor PC87307/PC97307 watchdog component */
|
|
/* mpu401 */
|
|
{"PNPb006"},
|
|
/* cs423x-pnpbios */
|
|
{"CSC0100"},
|
|
{"CSC0103"},
|
|
{"CSC0110"},
|
|
{"CSC0000"},
|
|
{"GIM0100"}, /* Guillemot Turtlebeach something appears to be cs4232 compatible */
|
|
/* es18xx-pnpbios */
|
|
{"ESS1869"},
|
|
{"ESS1879"},
|
|
/* snd-opl3sa2-pnpbios */
|
|
{"YMH0021"},
|
|
{"NMX2210"}, /* Gateway Solo 2500 */
|
|
{""},
|
|
};
|
|
|
|
static bool matching_id(const char *idstr, const char *list_id)
|
|
{
|
|
int i;
|
|
|
|
if (strlen(idstr) != strlen(list_id))
|
|
return false;
|
|
|
|
if (memcmp(idstr, list_id, 3))
|
|
return false;
|
|
|
|
for (i = 3; i < 7; i++) {
|
|
char c = toupper(idstr[i]);
|
|
|
|
if (!isxdigit(c)
|
|
|| (list_id[i] != 'X' && c != toupper(list_id[i])))
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
static bool acpi_pnp_match(const char *idstr, const struct acpi_device_id **matchid)
|
|
{
|
|
const struct acpi_device_id *devid;
|
|
|
|
for (devid = acpi_pnp_device_ids; devid->id[0]; devid++)
|
|
if (matching_id(idstr, (char *)devid->id)) {
|
|
if (matchid)
|
|
*matchid = devid;
|
|
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
static int acpi_pnp_attach(struct acpi_device *adev,
|
|
const struct acpi_device_id *id)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static struct acpi_scan_handler acpi_pnp_handler = {
|
|
.ids = acpi_pnp_device_ids,
|
|
.match = acpi_pnp_match,
|
|
.attach = acpi_pnp_attach,
|
|
};
|
|
|
|
/*
|
|
* For CMOS RTC devices, the PNP ACPI scan handler does not work, because
|
|
* there is a CMOS RTC ACPI scan handler installed already, so we need to
|
|
* check those devices and enumerate them to the PNP bus directly.
|
|
*/
|
|
static int is_cmos_rtc_device(struct acpi_device *adev)
|
|
{
|
|
static const struct acpi_device_id ids[] = {
|
|
{ "PNP0B00" },
|
|
{ "PNP0B01" },
|
|
{ "PNP0B02" },
|
|
{""},
|
|
};
|
|
return !acpi_match_device_ids(adev, ids);
|
|
}
|
|
|
|
bool acpi_is_pnp_device(struct acpi_device *adev)
|
|
{
|
|
return adev->handler == &acpi_pnp_handler || is_cmos_rtc_device(adev);
|
|
}
|
|
EXPORT_SYMBOL_GPL(acpi_is_pnp_device);
|
|
|
|
void __init acpi_pnp_init(void)
|
|
{
|
|
acpi_scan_add_handler(&acpi_pnp_handler);
|
|
}
|