[openwrt/openwrt] kirkwood: solidify SATA_PMP config

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 2 16:14:37 PDT 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/dbfebd14f6155801cec8e88806d70472efdbb56e

commit dbfebd14f6155801cec8e88806d70472efdbb56e
Author: Sungbo Eo <mans0n at gorani.run>
AuthorDate: Sun Jun 20 22:51:50 2021 +0900

    kirkwood: solidify SATA_PMP config
    
    SATA_PMP option is no longer exposed when no SATA host driver is enabled
    since upstream linux commit bd322af15ce9 ("ata: make SATA_PMP option
    selectable only if any SATA host driver is enabled").
    
    Commit 1bb3f593ee73 ("kirkwood: update config for kernel 5.10") manually
    added CONFIG_SATA_PMP=y to config file, but the config will disappear for
    every kernel_oldconfig refresh.
    
    To prevent this, a small hack is added, which selects SATA_HOST
    automatically when SATA_PMP is enabled. This patch can be dropped if
    SATA_MV is ever re-added into kernel config file.
    
    Tested-by: Pawel Dembicki <paweldembicki at gmail.com>
    Signed-off-by: Sungbo Eo <mans0n at gorani.run>
    [Move patch to generic/hack-5.10]
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/generic/hack-5.10/252-SATA_PMP.patch | 23 +++++++++++++++++++++++
 target/linux/kirkwood/config-5.10                 |  1 +
 2 files changed, 24 insertions(+)

diff --git a/target/linux/generic/hack-5.10/252-SATA_PMP.patch b/target/linux/generic/hack-5.10/252-SATA_PMP.patch
new file mode 100644
index 0000000000..6502d1d6ed
--- /dev/null
+++ b/target/linux/generic/hack-5.10/252-SATA_PMP.patch
@@ -0,0 +1,23 @@
+From 8c817e33be829c7249c2cfd59ff48ad5fac6a31d Mon Sep 17 00:00:00 2001
+From: Sungbo Eo <mans0n at gorani.run>
+Date: Fri, 7 Jul 2017 17:09:21 +0200
+Subject: [PATCH] kconfig: solidify SATA_PMP config
+
+SATA_PMP option in kernel config file disappears for every kernel_oldconfig refresh.
+To prevent this, SATA_HOST is now selected automatically when SATA_PMP is enabled.
+This patch can be dropped if SATA_MV is ever re-added into the config.
+---
+ drivers/ata/Kconfig | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/ata/Kconfig
++++ b/drivers/ata/Kconfig
+@@ -112,7 +112,7 @@ config SATA_ZPODD
+ 
+ config SATA_PMP
+ 	bool "SATA Port Multiplier support"
+-	depends on SATA_HOST
++	select SATA_HOST
+ 	default y
+ 	help
+ 	  This option adds support for SATA Port Multipliers
diff --git a/target/linux/kirkwood/config-5.10 b/target/linux/kirkwood/config-5.10
index 238a33c138..28a23506e8 100644
--- a/target/linux/kirkwood/config-5.10
+++ b/target/linux/kirkwood/config-5.10
@@ -234,6 +234,7 @@ CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_MV=y
 CONFIG_RTC_I2C_AND_SPI=y
 CONFIG_RTC_MC146818_LIB=y
+CONFIG_SATA_HOST=y
 CONFIG_SATA_PMP=y
 CONFIG_SCSI=y
 CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y



More information about the lede-commits mailing list