Patch "mfd: intel_quark_i2c_gpio: Revert "Constify static struct resources"" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mfd: intel_quark_i2c_gpio: Revert "Constify static struct resources"

to the 5.11-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:
     mfd-intel_quark_i2c_gpio-revert-constify-static-stru.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit cea215c14ab0b94565ba042e7e7636c58a44618e
Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Date:   Tue Mar 2 15:56:16 2021 +0200

    mfd: intel_quark_i2c_gpio: Revert "Constify static struct resources"
    
    [ Upstream commit a61f4661fba404418a7c77e86586dc52a58a93c6 ]
    
    The structures are used as place holders, so they are modified at run-time.
    Obviously they may not be constants.
    
      BUG: unable to handle page fault for address: d0643220
      ...
      CPU: 0 PID: 110 Comm: modprobe Not tainted 5.11.0+ #1
      Hardware name: Intel Corp. QUARK/GalileoGen2, BIOS 0x01000200 01/01/2014
      EIP: intel_quark_mfd_probe+0x93/0x1c0 [intel_quark_i2c_gpio]
    
    This partially reverts the commit c4a164f41554d2899bed94bdcc499263f41787b4.
    
    While at it, add a comment to avoid similar changes in the future.
    
    Fixes: c4a164f41554 ("mfd: Constify static struct resources")
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
    Reviewed-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>
    Tested-by: Tong Zhang <ztong0001@xxxxxxxxx>
    Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/drivers/mfd/intel_quark_i2c_gpio.c
index fe8ca945f367..b67cb0a3ab05 100644
--- a/drivers/mfd/intel_quark_i2c_gpio.c
+++ b/drivers/mfd/intel_quark_i2c_gpio.c
@@ -72,7 +72,8 @@ static const struct dmi_system_id dmi_platform_info[] = {
 	{}
 };
 
-static const struct resource intel_quark_i2c_res[] = {
+/* This is used as a place holder and will be modified at run-time */
+static struct resource intel_quark_i2c_res[] = {
 	[INTEL_QUARK_IORES_MEM] = {
 		.flags = IORESOURCE_MEM,
 	},
@@ -85,7 +86,8 @@ static struct mfd_cell_acpi_match intel_quark_acpi_match_i2c = {
 	.adr = MFD_ACPI_MATCH_I2C,
 };
 
-static const struct resource intel_quark_gpio_res[] = {
+/* This is used as a place holder and will be modified at run-time */
+static struct resource intel_quark_gpio_res[] = {
 	[INTEL_QUARK_IORES_MEM] = {
 		.flags = IORESOURCE_MEM,
 	},



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux