lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210923025051.454-1-caihuoqing@baidu.com>
Date:   Thu, 23 Sep 2021 10:50:50 +0800
From:   Cai Huoqing <caihuoqing@...du.com>
To:     <caihuoqing@...du.com>
CC:     Kishon Vijay Abraham I <kishon@...com>,
        Vinod Koul <vkoul@...nel.org>,
        Heiko Stuebner <heiko@...ech.de>,
        <linux-phy@...ts.infradead.org>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-rockchip@...ts.infradead.org>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH] phy: rockchip: Kconfig: Add configuration menu for Rockchip phy drivers

Adding a configuration menu to hold many Rockchip phy drivers
helps to make the menu display more concise.

Signed-off-by: Cai Huoqing <caihuoqing@...du.com>
---
 drivers/phy/rockchip/Kconfig | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/drivers/phy/rockchip/Kconfig b/drivers/phy/rockchip/Kconfig
index e812adad7242..8b6dd594f43e 100644
--- a/drivers/phy/rockchip/Kconfig
+++ b/drivers/phy/rockchip/Kconfig
@@ -2,16 +2,18 @@
 #
 # Phy drivers for Rockchip platforms
 #
+menu "PHY drivers for Rockchip platforms"
+	depends on ARCH_ROCKCHIP || COMPILE_TEST
+
 config PHY_ROCKCHIP_DP
 	tristate "Rockchip Display Port PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip Display Port PHY.
 
 config PHY_ROCKCHIP_DPHY_RX0
 	tristate "Rockchip MIPI Synopsys DPHY RX0 driver"
-	depends on ARCH_ROCKCHIP || COMPILE_TEST
 	select GENERIC_PHY_MIPI_DPHY
 	select GENERIC_PHY
 	help
@@ -23,14 +25,14 @@ config PHY_ROCKCHIP_DPHY_RX0
 
 config PHY_ROCKCHIP_EMMC
 	tristate "Rockchip EMMC PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip EMMC PHY.
 
 config PHY_ROCKCHIP_INNO_HDMI
 	tristate "Rockchip INNO HDMI PHY Driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	depends on COMMON_CLK
 	depends on HAS_IOMEM
 	select GENERIC_PHY
@@ -39,7 +41,7 @@ config PHY_ROCKCHIP_INNO_HDMI
 
 config PHY_ROCKCHIP_INNO_USB2
 	tristate "Rockchip INNO USB2PHY Driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	depends on COMMON_CLK
 	depends on EXTCON
 	depends on USB_SUPPORT
@@ -50,7 +52,7 @@ config PHY_ROCKCHIP_INNO_USB2
 
 config PHY_ROCKCHIP_INNO_CSIDPHY
 	tristate "Rockchip Innosilicon MIPI CSI PHY driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	select GENERIC_PHY
 	select GENERIC_PHY_MIPI_DPHY
 	help
@@ -59,7 +61,7 @@ config PHY_ROCKCHIP_INNO_CSIDPHY
 
 config PHY_ROCKCHIP_INNO_DSIDPHY
 	tristate "Rockchip Innosilicon MIPI/LVDS/TTL PHY driver"
-	depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
+	depends on OF
 	select GENERIC_PHY
 	select GENERIC_PHY_MIPI_DPHY
 	help
@@ -68,7 +70,7 @@ config PHY_ROCKCHIP_INNO_DSIDPHY
 
 config PHY_ROCKCHIP_PCIE
 	tristate "Rockchip PCIe PHY Driver"
-	depends on (ARCH_ROCKCHIP && OF) || COMPILE_TEST
+	depends on OF
 	depends on HAS_IOMEM
 	select GENERIC_PHY
 	select MFD_SYSCON
@@ -77,7 +79,7 @@ config PHY_ROCKCHIP_PCIE
 
 config PHY_ROCKCHIP_TYPEC
 	tristate "Rockchip TYPEC PHY Driver"
-	depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
+	depends on OF
 	select EXTCON
 	select GENERIC_PHY
 	select RESET_CONTROLLER
@@ -86,7 +88,9 @@ config PHY_ROCKCHIP_TYPEC
 
 config PHY_ROCKCHIP_USB
 	tristate "Rockchip USB2 PHY Driver"
-	depends on ARCH_ROCKCHIP && OF
+	depends on OF
 	select GENERIC_PHY
 	help
 	  Enable this to support the Rockchip USB 2.0 PHY.
+
+endmenu
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ