diff mbox series

phy: phy-brcm-usb: select SOC_BRCMSTB on brcmstb only

Message ID 20210305152406.2588-1-zajec5@gmail.com
State Accepted
Commit 261ab1fd5c5d2d7ff7d5bab3f5db3c69c4bcea58
Headers show
Series phy: phy-brcm-usb: select SOC_BRCMSTB on brcmstb only | expand

Commit Message

Rafał Miłecki March 5, 2021, 3:24 p.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

phy-brcm-usb has some conditional init code required on selected brcmstb
devices. Execution of that code depends on family / product detected by
brcmstb soc code.

For ARCH_BCM4908 brcmstb soc code always return 0 values as ids. Don't
bother selecting & compiling that redundant driver.

Depends-on: 149ae80b1d50 ("soc: bcm: brcmstb: add stubs for getting platform IDs")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 drivers/phy/broadcom/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vinod Koul March 15, 2021, 10:28 a.m. UTC | #1
On 05-03-21, 16:24, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> phy-brcm-usb has some conditional init code required on selected brcmstb
> devices. Execution of that code depends on family / product detected by
> brcmstb soc code.
> 
> For ARCH_BCM4908 brcmstb soc code always return 0 values as ids. Don't
> bother selecting & compiling that redundant driver.

Applied, thanks
diff mbox series

Patch

diff --git a/drivers/phy/broadcom/Kconfig b/drivers/phy/broadcom/Kconfig
index 09256339bd04..fd92b73b7109 100644
--- a/drivers/phy/broadcom/Kconfig
+++ b/drivers/phy/broadcom/Kconfig
@@ -94,7 +94,7 @@  config PHY_BRCM_USB
 	depends on ARCH_BCM4908 || ARCH_BRCMSTB || COMPILE_TEST
 	depends on OF
 	select GENERIC_PHY
-	select SOC_BRCMSTB
+	select SOC_BRCMSTB if ARCH_BRCMSTB
 	default ARCH_BCM4908
 	default ARCH_BRCMSTB
 	help