Patch "watchdog: sbsa: only use 32-bit accessors" has been added to the 5.14-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

    watchdog: sbsa: only use 32-bit accessors

to the 5.14-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:
     watchdog-sbsa-only-use-32-bit-accessors.patch
and it can be found in the queue-5.14 subdirectory.

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



commit 37b1ff3837245fe8a72f0d456ded4f596db03873
Author: Jamie Iles <quic_jiles@xxxxxxxxxxx>
Date:   Fri Sep 3 12:21:01 2021 +0100

    watchdog: sbsa: only use 32-bit accessors
    
    [ Upstream commit f31afb502c3151855df3ed40f5974c7884c10d14 ]
    
    SBSA says of the generic watchdog:
    
      All registers are 32 bits in size and should be accessed using 32-bit
      reads and writes. If an access size other than 32 bits is used then
      the results are IMPLEMENTATION DEFINED.
    
    and for qemu, the implementation will only allow 32-bit accesses
    resulting in a synchronous external abort when configuring the watchdog.
    Use lo_hi_* accessors rather than a readq/writeq.
    
    Fixes: abd3ac7902fb ("watchdog: sbsa: Support architecture version 1")
    Signed-off-by: Jamie Iles <quic_jiles@xxxxxxxxxxx>
    Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Reviewed-by: Shaokun Zhang <zhangshaokun@xxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210903112101.493552-1-quic_jiles@xxxxxxxxxxx
    Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
    Signed-off-by: Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c
index ee9ff38929eb..6f4319bdbc50 100644
--- a/drivers/watchdog/sbsa_gwdt.c
+++ b/drivers/watchdog/sbsa_gwdt.c
@@ -130,7 +130,7 @@ static u64 sbsa_gwdt_reg_read(struct sbsa_gwdt *gwdt)
 	if (gwdt->version == 0)
 		return readl(gwdt->control_base + SBSA_GWDT_WOR);
 	else
-		return readq(gwdt->control_base + SBSA_GWDT_WOR);
+		return lo_hi_readq(gwdt->control_base + SBSA_GWDT_WOR);
 }
 
 static void sbsa_gwdt_reg_write(u64 val, struct sbsa_gwdt *gwdt)
@@ -138,7 +138,7 @@ static void sbsa_gwdt_reg_write(u64 val, struct sbsa_gwdt *gwdt)
 	if (gwdt->version == 0)
 		writel((u32)val, gwdt->control_base + SBSA_GWDT_WOR);
 	else
-		writeq(val, gwdt->control_base + SBSA_GWDT_WOR);
+		lo_hi_writeq(val, gwdt->control_base + SBSA_GWDT_WOR);
 }
 
 /*



[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