Commit e7b4aaf051d581a30bea1f55d775a627b0ad3106
Committed by
Kishon Vijay Abraham I
1 parent
4cb6eea226
phy: Enable compile testing for some of drivers
Some of the phy drivers can be compile tested to increase build coverage. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Showing 6 changed files with 21 additions and 15 deletions Side-by-side Diff
drivers/phy/allwinner/Kconfig
... | ... | @@ -48,7 +48,8 @@ |
48 | 48 | |
49 | 49 | config PHY_SUN50I_USB3 |
50 | 50 | tristate "Allwinner H6 SoC USB3 PHY driver" |
51 | - depends on ARCH_SUNXI && HAS_IOMEM && OF | |
51 | + depends on ARCH_SUNXI || COMPILE_TEST | |
52 | + depends on HAS_IOMEM && OF | |
52 | 53 | depends on RESET_CONTROLLER |
53 | 54 | select GENERIC_PHY |
54 | 55 | help |
drivers/phy/broadcom/Kconfig
... | ... | @@ -50,7 +50,7 @@ |
50 | 50 | |
51 | 51 | config PHY_NS2_PCIE |
52 | 52 | tristate "Broadcom Northstar2 PCIe PHY driver" |
53 | - depends on OF && MDIO_BUS_MUX_BCM_IPROC | |
53 | + depends on (OF && MDIO_BUS_MUX_BCM_IPROC) || (COMPILE_TEST && MDIO_BUS) | |
54 | 54 | select GENERIC_PHY |
55 | 55 | default ARCH_BCM_IPROC |
56 | 56 | help |
... | ... | @@ -83,7 +83,7 @@ |
83 | 83 | |
84 | 84 | config PHY_BRCM_USB |
85 | 85 | tristate "Broadcom STB USB PHY driver" |
86 | - depends on ARCH_BRCMSTB | |
86 | + depends on ARCH_BRCMSTB || COMPILE_TEST | |
87 | 87 | depends on OF |
88 | 88 | select GENERIC_PHY |
89 | 89 | select SOC_BRCMSTB |
drivers/phy/marvell/Kconfig
... | ... | @@ -10,14 +10,16 @@ |
10 | 10 | |
11 | 11 | config PHY_BERLIN_SATA |
12 | 12 | tristate "Marvell Berlin SATA PHY driver" |
13 | - depends on ARCH_BERLIN && HAS_IOMEM && OF | |
13 | + depends on ARCH_BERLIN || COMPILE_TEST | |
14 | + depends on OF && HAS_IOMEM | |
14 | 15 | select GENERIC_PHY |
15 | 16 | help |
16 | 17 | Enable this to support the SATA PHY on Marvell Berlin SoCs. |
17 | 18 | |
18 | 19 | config PHY_BERLIN_USB |
19 | 20 | tristate "Marvell Berlin USB PHY Driver" |
20 | - depends on ARCH_BERLIN && RESET_CONTROLLER && HAS_IOMEM && OF | |
21 | + depends on ARCH_BERLIN || COMPILE_TEST | |
22 | + depends on OF && HAS_IOMEM && RESET_CONTROLLER | |
21 | 23 | select GENERIC_PHY |
22 | 24 | help |
23 | 25 | Enable this to support the USB PHY on Marvell Berlin SoCs. |
... | ... | @@ -95,7 +97,7 @@ |
95 | 97 | |
96 | 98 | config PHY_PXA_USB |
97 | 99 | tristate "Marvell PXA USB PHY Driver" |
98 | - depends on ARCH_PXA || ARCH_MMP | |
100 | + depends on ARCH_PXA || ARCH_MMP || COMPILE_TEST | |
99 | 101 | select GENERIC_PHY |
100 | 102 | help |
101 | 103 | Enable this to support Marvell PXA USB PHY driver for Marvell |
drivers/phy/mediatek/Kconfig
... | ... | @@ -4,7 +4,8 @@ |
4 | 4 | # |
5 | 5 | config PHY_MTK_TPHY |
6 | 6 | tristate "MediaTek T-PHY Driver" |
7 | - depends on ARCH_MEDIATEK && OF | |
7 | + depends on ARCH_MEDIATEK || COMPILE_TEST | |
8 | + depends on OF | |
8 | 9 | select GENERIC_PHY |
9 | 10 | help |
10 | 11 | Say 'Y' here to add support for MediaTek T-PHY driver, |
... | ... | @@ -16,7 +17,8 @@ |
16 | 17 | |
17 | 18 | config PHY_MTK_UFS |
18 | 19 | tristate "MediaTek UFS M-PHY driver" |
19 | - depends on ARCH_MEDIATEK && OF | |
20 | + depends on ARCH_MEDIATEK || COMPILE_TEST | |
21 | + depends on OF | |
20 | 22 | select GENERIC_PHY |
21 | 23 | help |
22 | 24 | Support for UFS M-PHY on MediaTek chipsets. |
... | ... | @@ -26,7 +28,8 @@ |
26 | 28 | |
27 | 29 | config PHY_MTK_XSPHY |
28 | 30 | tristate "MediaTek XS-PHY Driver" |
29 | - depends on ARCH_MEDIATEK && OF | |
31 | + depends on ARCH_MEDIATEK || COMPILE_TEST | |
32 | + depends on OF | |
30 | 33 | select GENERIC_PHY |
31 | 34 | help |
32 | 35 | Enable this to support the SuperSpeedPlus XS-PHY transceiver for |
drivers/phy/samsung/Kconfig
... | ... | @@ -32,7 +32,7 @@ |
32 | 32 | config PHY_SAMSUNG_USB2 |
33 | 33 | tristate "Samsung USB 2.0 PHY driver" |
34 | 34 | depends on HAS_IOMEM |
35 | - depends on USB_EHCI_EXYNOS || USB_OHCI_EXYNOS || USB_DWC2 | |
35 | + depends on USB_EHCI_EXYNOS || USB_OHCI_EXYNOS || USB_DWC2 || COMPILE_TEST | |
36 | 36 | select GENERIC_PHY |
37 | 37 | select MFD_SYSCON |
38 | 38 | default ARCH_EXYNOS |
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 | config PHY_S5PV210_USB2 |
61 | 61 | bool "Support for S5PV210" |
62 | 62 | depends on PHY_SAMSUNG_USB2 |
63 | - depends on ARCH_S5PV210 | |
63 | + depends on ARCH_S5PV210 || COMPILE_TEST | |
64 | 64 | help |
65 | 65 | Enable USB PHY support for S5PV210. This option requires that Samsung |
66 | 66 | USB 2.0 PHY driver is enabled and means that support for this |
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | |
70 | 70 | config PHY_EXYNOS5_USBDRD |
71 | 71 | tristate "Exynos5 SoC series USB DRD PHY driver" |
72 | - depends on ARCH_EXYNOS && OF | |
72 | + depends on (ARCH_EXYNOS && OF) || COMPILE_TEST | |
73 | 73 | depends on HAS_IOMEM |
74 | 74 | depends on USB_DWC3_EXYNOS |
75 | 75 | select GENERIC_PHY |
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 | |
83 | 83 | config PHY_EXYNOS5250_SATA |
84 | 84 | tristate "Exynos5250 Sata SerDes/PHY driver" |
85 | - depends on SOC_EXYNOS5250 | |
85 | + depends on SOC_EXYNOS5250 || COMPILE_TEST | |
86 | 86 | depends on HAS_IOMEM |
87 | 87 | depends on OF |
88 | 88 | select GENERIC_PHY |
drivers/phy/ti/Kconfig
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | # |
5 | 5 | config PHY_DA8XX_USB |
6 | 6 | tristate "TI DA8xx USB PHY Driver" |
7 | - depends on ARCH_DAVINCI_DA8XX | |
7 | + depends on ARCH_DAVINCI_DA8XX || COMPILE_TEST | |
8 | 8 | select GENERIC_PHY |
9 | 9 | select MFD_SYSCON |
10 | 10 | help |
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | |
15 | 15 | config PHY_DM816X_USB |
16 | 16 | tristate "TI dm816x USB PHY driver" |
17 | - depends on ARCH_OMAP2PLUS | |
17 | + depends on ARCH_OMAP2PLUS || COMPILE_TEST | |
18 | 18 | depends on USB_SUPPORT |
19 | 19 | select GENERIC_PHY |
20 | 20 | select USB_PHY |