]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ACPI: watchdog: Fix gas->access_width usage
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 12 Feb 2020 14:59:40 +0000 (17:59 +0300)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 6 Mar 2020 11:38:20 +0000 (12:38 +0100)
commitdabb9be685950e46b1d449a963f37550281d3473
tree88024c8e9937c69eb2daf3bc7a11504a77c87892
parent6e6c34fb73a5d257053e6ca9245c3bdfcc81155b
ACPI: watchdog: Fix gas->access_width usage

BugLink: https://bugs.launchpad.net/bugs/1866333
commit 2ba33a4e9e22ac4dda928d3e9b5978a3a2ded4e0 upstream.

ACPI Generic Address Structure (GAS) access_width field is not in bytes
as the driver seems to expect in few places so fix this by using the
newly introduced macro ACPI_ACCESS_BYTE_WIDTH().

Fixes: b1abf6fc4982 ("ACPI / watchdog: Fix off-by-one error at resource assignment")
Fixes: 058dfc767008 ("ACPI / watchdog: Add support for WDAT hardware watchdog")
Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Cc: 4.16+ <stable@vger.kernel.org> # 4.16+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/acpi/acpi_watchdog.c
drivers/watchdog/wdat_wdt.c