89ee4df78c3220d13c1100b9f5511bd68d2b0194
[openwrt/staging/mans0n.git] /
1 From 261ab1fd5c5d2d7ff7d5bab3f5db3c69c4bcea58 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 5 Mar 2021 16:24:06 +0100
4 Subject: [PATCH] phy: phy-brcm-usb: select SOC_BRCMSTB on brcmstb only
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 phy-brcm-usb has some conditional init code required on selected brcmstb
10 devices. Execution of that code depends on family / product detected by
11 brcmstb soc code.
12
13 For ARCH_BCM4908 brcmstb soc code always return 0 values as ids. Don't
14 bother selecting & compiling that redundant driver.
15
16 Depends-on: 149ae80b1d50 ("soc: bcm: brcmstb: add stubs for getting platform IDs")
17 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
18 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
19 Link: https://lore.kernel.org/r/20210305152406.2588-1-zajec5@gmail.com
20 Signed-off-by: Vinod Koul <vkoul@kernel.org>
21 ---
22 drivers/phy/broadcom/Kconfig | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25 --- a/drivers/phy/broadcom/Kconfig
26 +++ b/drivers/phy/broadcom/Kconfig
27 @@ -94,7 +94,7 @@ config PHY_BRCM_USB
28 depends on ARCH_BCM4908 || ARCH_BRCMSTB || COMPILE_TEST
29 depends on OF
30 select GENERIC_PHY
31 - select SOC_BRCMSTB
32 + select SOC_BRCMSTB if ARCH_BRCMSTB
33 default ARCH_BCM4908
34 default ARCH_BRCMSTB
35 help