Patch "rtc: zynqmp: depend on HAS_IOMEM" 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

    rtc: zynqmp: depend on HAS_IOMEM

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:
     rtc-zynqmp-depend-on-has_iomem.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 3f3edc2692afd61d5ad05c955d654c9d64b96718
Author: David Gow <davidgow@xxxxxxxxxx>
Date:   Tue Jan 26 19:51:47 2021 -0800

    rtc: zynqmp: depend on HAS_IOMEM
    
    [ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ]
    
    The Xilinx zynqmp RTC driver makes use of IOMEM functions like
    devm_platform_ioremap_resource(), which are only available if
    CONFIG_HAS_IOMEM is defined.
    
    This causes the driver not to be enable under make ARCH=um allyesconfig,
    even though it won't build.
    
    By adding a dependency on HAS_IOMEM, the driver will not be enabled on
    architectures which don't support it.
    
    Fixes: 09ef18bcd5ac ("rtc: use devm_platform_ioremap_resource() to simplify code")
    Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
    Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210127035146.1523286-1-davidgow@xxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index e4bef40831c75..4e2b3a175607b 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -1301,7 +1301,7 @@ config RTC_DRV_OPAL
 
 config RTC_DRV_ZYNQMP
 	tristate "Xilinx Zynq Ultrascale+ MPSoC RTC"
-	depends on OF
+	depends on OF && HAS_IOMEM
 	help
 	  If you say yes here you get support for the RTC controller found on
 	  Xilinx Zynq Ultrascale+ MPSoC.



[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