* [PATCH] PHY: Exynos: fix I2C dependency for Exynos5250 SATA
@ 2017-05-30 9:28 Arnd Bergmann
2017-05-31 10:12 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2017-05-30 9:28 UTC (permalink / raw)
To: Kishon Vijay Abraham I
Cc: Yuvaraj Kumar C D, Girish K S, Vasanth Ananthan, Arnd Bergmann,
Jaehoon Chung, Krzysztof Kozlowski, linux-kernel
Device drivers should not 'select' other subsystems, but rather use
'depends on', to avoid Kconfig dependency loops. This one even
selects a particular I2C host driver for no reason, so we can
remove the select of that particular driver, and turn the I2C
'select' into 'depends on'.
Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/phy/samsung/Kconfig | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig
index b7e0645a7bd9..76475b01780d 100644
--- a/drivers/phy/samsung/Kconfig
+++ b/drivers/phy/samsung/Kconfig
@@ -83,10 +83,9 @@ config PHY_EXYNOS5250_SATA
tristate "Exynos5250 Sata SerDes/PHY driver"
depends on SOC_EXYNOS5250
depends on HAS_IOMEM
+ depends on I2C
depends on OF
select GENERIC_PHY
- select I2C
- select I2C_S3C2410
select MFD_SYSCON
help
Enable this to support SATA SerDes/Phy found on Samsung's
--
2.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] PHY: Exynos: fix I2C dependency for Exynos5250 SATA
2017-05-30 9:28 [PATCH] PHY: Exynos: fix I2C dependency for Exynos5250 SATA Arnd Bergmann
@ 2017-05-31 10:12 ` Krzysztof Kozlowski
2017-05-31 10:25 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2017-05-31 10:12 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Kishon Vijay Abraham I, Yuvaraj Kumar C D, Girish K S,
Vasanth Ananthan, Jaehoon Chung, linux-kernel
On Tue, May 30, 2017 at 11:28 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> Device drivers should not 'select' other subsystems, but rather use
> 'depends on', to avoid Kconfig dependency loops. This one even
> selects a particular I2C host driver for no reason, so we can
> remove the select of that particular driver, and turn the I2C
> 'select' into 'depends on'.
>
> Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> drivers/phy/samsung/Kconfig | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig
> index b7e0645a7bd9..76475b01780d 100644
> --- a/drivers/phy/samsung/Kconfig
> +++ b/drivers/phy/samsung/Kconfig
> @@ -83,10 +83,9 @@ config PHY_EXYNOS5250_SATA
> tristate "Exynos5250 Sata SerDes/PHY driver"
> depends on SOC_EXYNOS5250
> depends on HAS_IOMEM
> + depends on I2C
> depends on OF
> select GENERIC_PHY
> - select I2C
> - select I2C_S3C2410
> select MFD_SYSCON
> help
> Enable this to support SATA SerDes/Phy found on Samsung's
I think this effectively might disable the I2C_S3C2410 on
exynos_defconfig. Previously, the defconfig chosen PHY_EXYNOS5250_SATA
which selected the I2C_S3C2410. Now the I2C_S3C2410 will remain
forgotten.
BTW, It might be also useful to do similar for EXTCON and PHY_ROCKCHIP_TYPEC.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] PHY: Exynos: fix I2C dependency for Exynos5250 SATA
2017-05-31 10:12 ` Krzysztof Kozlowski
@ 2017-05-31 10:25 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2017-05-31 10:25 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Kishon Vijay Abraham I, Yuvaraj Kumar C D, Girish K S,
Vasanth Ananthan, Jaehoon Chung, Linux Kernel Mailing List
On Wed, May 31, 2017 at 12:12 PM, Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On Tue, May 30, 2017 at 11:28 AM, Arnd Bergmann <arnd@arndb.de> wrote:
>> Device drivers should not 'select' other subsystems, but rather use
>> 'depends on', to avoid Kconfig dependency loops. This one even
>> selects a particular I2C host driver for no reason, so we can
>> remove the select of that particular driver, and turn the I2C
>> 'select' into 'depends on'.
>>
>> Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> ---
>> drivers/phy/samsung/Kconfig | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/phy/samsung/Kconfig b/drivers/phy/samsung/Kconfig
>> index b7e0645a7bd9..76475b01780d 100644
>> --- a/drivers/phy/samsung/Kconfig
>> +++ b/drivers/phy/samsung/Kconfig
>> @@ -83,10 +83,9 @@ config PHY_EXYNOS5250_SATA
>> tristate "Exynos5250 Sata SerDes/PHY driver"
>> depends on SOC_EXYNOS5250
>> depends on HAS_IOMEM
>> + depends on I2C
>> depends on OF
>> select GENERIC_PHY
>> - select I2C
>> - select I2C_S3C2410
>> select MFD_SYSCON
>> help
>> Enable this to support SATA SerDes/Phy found on Samsung's
>
> I think this effectively might disable the I2C_S3C2410 on
> exynos_defconfig. Previously, the defconfig chosen PHY_EXYNOS5250_SATA
> which selected the I2C_S3C2410. Now the I2C_S3C2410 will remain
> forgotten.
Good point. I only checked that CONFIG_I2C was still enabled, but
didn't consider the specific driver.
> BTW, It might be also useful to do similar for EXTCON and PHY_ROCKCHIP_TYPEC.
Right. We have more problems like this, I was planning to see where I
got with the I2C ones first, but that is another one I had not noticed yet.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-31 10:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 9:28 [PATCH] PHY: Exynos: fix I2C dependency for Exynos5250 SATA Arnd Bergmann
2017-05-31 10:12 ` Krzysztof Kozlowski
2017-05-31 10:25 ` Arnd Bergmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.