ACPI: SPCR: Use access width to determine mmio usage
authorLoc Ho <lho@apm.com>
Mon, 3 Jul 2017 21:33:08 +0000 (14:33 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jul 2017 19:29:38 +0000 (21:29 +0200)
commit2bece49394872d36bbc5767fd643deac05920c55
tree913ce949f83e222371f4099f72b66550519f9178
parent6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c
ACPI: SPCR: Use access width to determine mmio usage

The current SPCR code does not check the access width of the MMIO, and
uses a default of 8bit register accesses.  This prevents devices that
only do 16 or 32bit register accesses from working.  By simply checking
this field and setting the MMIO string appropriately, this issue can be
corrected.  To prevent any legacy issues, the code will default to 8bit
accesses if the value is anything but 16 or 32.

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: Loc Ho <lho@apm.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/spcr.c
include/acpi/acrestyp.h