atkbdc - Do not attach PS2 controller via legacy ISA bus, if FADT says so.
authorImre Vadász <imre@vdsz.com>
Thu, 1 Feb 2018 12:16:55 +0000 (13:16 +0100)
committerImre Vadász <imre@vdsz.com>
Sun, 18 Feb 2018 10:01:30 +0000 (11:01 +0100)
commit131acb0380e93664f106117ebf8ba322a3d1b7c4
treea9a9433b811f0bf8892df2304abc7d545e85d3de
parente62ef63cd8bf9a1124d7110b8e05ff70a95d58e1
atkbdc - Do not attach PS2 controller via legacy ISA bus, if FADT says so.

* If the FADT BootFlags value tells us that we shouldn't expect the PS2
  controller to be at the IO ports 0x60/0x64, we should instead only attach
  the atkbdc driver when there is a matching device in the ACPI namespace.

* This avoids attempts to attach the atkbdc PS2 controller driver on
  hardware which doesn't have a usable PS2 controller. This happens on
  many modern notebooks, and has been the case for some time on desktop
  hardware that doesn't provide an emulated PS2 controller for using USB
  input devices all the time (it either is never initialized, or might
  get disabled by some of the ACPI or USB initialization during bootup).
sys/dev/misc/atkbdc_layer/atkbdc_isa.c
sys/dev/misc/kbd/atkbdc.c
sys/platform/pc64/acpica/acpi_fadt.c