Patch "ACPI: EC: Fix debugfs_create_*() usage" has been added to the 4.15-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ACPI: EC: Fix debugfs_create_*() usage
to the 4.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
acpi-ec-fix-debugfs_create_-usage.patch
and it can be found in the queue-4.15 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Apr 9 10:16:32 CEST 2018
From: Geert Uytterhoeven <[email protected]>
Date: Tue, 2 Jan 2018 16:26:31 +0100
Subject: ACPI: EC: Fix debugfs_create_*() usage
From: Geert Uytterhoeven <[email protected]>
[ Upstream commit 3522f867c13b63cf62acdf1b8ca5664c549a716a ]
acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose the wrong half on big-endian 64-bit systems. Fix this by changing its type to "u32" and removing the cast, as all other code already uses u32 or sometimes even only u8.
--- drivers/acpi/ec.c | 2 +- drivers/acpi/ec_sys.c | 2 +- drivers/acpi/internal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/ec.c +1 -1
@@ -1516,7 +1516,7 @@ static int acpi_ec_setup(struct acpi_ec }acpi_handle_info (ec->handle, -"GPE=0x%lx, EC_CMD/EC_SC=0x%lx, EC_DATA=0x%lx\n" , +"GPE=0x%x, EC_CMD/EC_SC=0x%lx, EC_DATA=0x%lx\n" , ec->gpe, ec->command_addr, ec->data_addr);return ret; }
drivers/acpi/ec_sys.c +1 -1
@@ -128,7 +128,7 @@ static int acpi_ec_add_debugfs(struct acreturn -ENOMEM ; } -if (!debugfs_create_x32 ("gpe" ,0444 , dev_dir, (u32 *)&first_ec->gpe)) +if (!debugfs_create_x32 ("gpe" ,0444 , dev_dir, &first_ec->gpe)) goto error;if (!debugfs_create_bool ("use_global_lock" ,0444 , dev_dir, &first_ec->global_lock))
drivers/acpi/internal.h +1 -1
@@ -159,7 +159,7 @@ static inline void acpi_early_processor_-------------------------------------------------------------------------- */ struct acpi_ec {acpi_handle handle; -unsigned long gpe; +u32 gpe;unsigned long command_addr;unsigned long data_addr;bool global_lock;
Patches currently in stable-queue which might be from [email protected] are
queue-4.15/acpi-ec-fix-debugfs_create_-usage.patch queue-4.15/spi-sh-msiof-fix-timeout-failures-for-tx-only-dma-transfers.patch