Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210305152406.2588-1-zajec5@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rafał Miłecki and committed by
Vinod Koul
261ab1fd d0dde32d

+1 -1
+1 -1
drivers/phy/broadcom/Kconfig
··· 94 94 depends on ARCH_BCM4908 || ARCH_BRCMSTB || COMPILE_TEST 95 95 depends on OF 96 96 select GENERIC_PHY 97 - select SOC_BRCMSTB 97 + select SOC_BRCMSTB if ARCH_BRCMSTB 98 98 default ARCH_BCM4908 99 99 default ARCH_BRCMSTB 100 100 help