* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion - Improved documentation in commit messages - Exported new phy api v2: - EHCI and OHCI platform Kconfigs select Generic Phy to fix build errors in certain configs. v3: - Made GENERIC_PHY an invisible option so that other configs can select it - Added stubs for devm_of_phy_get_by_index - Reformated code Arun Ramamurthy (4): phy: phy-core: Make GENERIC_PHY an invisible option phy: core: Add devm_of_phy_get_by_index to phy-core usb: ehci-platform: Use devm_of_phy_get_by_index usb: ohci-platform: Use devm_of_phy_get_by_index Documentation/phy.txt | 7 +++- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 +- drivers/phy/phy-core.c | 32 ++++++++++++++ drivers/usb/host/Kconfig | 4 +- drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- drivers/video/fbdev/exynos/Kconfig | 2 +- include/linux/phy/phy.h | 8 ++++ 10 files changed, 100 insertions(+), 98 deletions(-) -- 2.3.4 ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion - Improved documentation in commit messages - Exported new phy api v2: - EHCI and OHCI platform Kconfigs select Generic Phy to fix build errors in certain configs. v3: - Made GENERIC_PHY an invisible option so that other configs can select it - Added stubs for devm_of_phy_get_by_index - Reformated code Arun Ramamurthy (4): phy: phy-core: Make GENERIC_PHY an invisible option phy: core: Add devm_of_phy_get_by_index to phy-core usb: ehci-platform: Use devm_of_phy_get_by_index usb: ohci-platform: Use devm_of_phy_get_by_index Documentation/phy.txt | 7 +++- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 +- drivers/phy/phy-core.c | 32 ++++++++++++++ drivers/usb/host/Kconfig | 4 +- drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- drivers/video/fbdev/exynos/Kconfig | 2 +- include/linux/phy/phy.h | 8 ++++ 10 files changed, 100 insertions(+), 98 deletions(-) -- 2.3.4 ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion - Improved documentation in commit messages - Exported new phy api v2: - EHCI and OHCI platform Kconfigs select Generic Phy to fix build errors in certain configs. v3: - Made GENERIC_PHY an invisible option so that other configs can select it - Added stubs for devm_of_phy_get_by_index - Reformated code Arun Ramamurthy (4): phy: phy-core: Make GENERIC_PHY an invisible option phy: core: Add devm_of_phy_get_by_index to phy-core usb: ehci-platform: Use devm_of_phy_get_by_index usb: ohci-platform: Use devm_of_phy_get_by_index Documentation/phy.txt | 7 +++- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 +- drivers/phy/phy-core.c | 32 ++++++++++++++ drivers/usb/host/Kconfig | 4 +- drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- drivers/video/fbdev/exynos/Kconfig | 2 +- include/linux/phy/phy.h | 8 ++++ 10 files changed, 100 insertions(+), 98 deletions(-) -- 2.3.4 ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy This patch set adds a new API to get phy by index when multiple phys are present. This patch is based on discussion with Arnd Bergmann about dt bindings for multiple phys. History: v1: - Removed null pointers on Dmitry's suggestion - Improved documentation in commit messages - Exported new phy api v2: - EHCI and OHCI platform Kconfigs select Generic Phy to fix build errors in certain configs. v3: - Made GENERIC_PHY an invisible option so that other configs can select it - Added stubs for devm_of_phy_get_by_index - Reformated code Arun Ramamurthy (4): phy: phy-core: Make GENERIC_PHY an invisible option phy: core: Add devm_of_phy_get_by_index to phy-core usb: ehci-platform: Use devm_of_phy_get_by_index usb: ohci-platform: Use devm_of_phy_get_by_index Documentation/phy.txt | 7 +++- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 +- drivers/phy/phy-core.c | 32 ++++++++++++++ drivers/usb/host/Kconfig | 4 +- drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- drivers/video/fbdev/exynos/Kconfig | 2 +- include/linux/phy/phy.h | 8 ++++ 10 files changed, 100 insertions(+), 98 deletions(-) -- 2.3.4 ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-22 23:04 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Most of the phy providers use "select" to enable GENERIC_PHY. Since select is only recommended when the config is not visible, GENERIC_PHY is changed an invisible option. To maintain consistency, all phy providers are changed to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic dependency, so it is left as "select". Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> --- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 ++-- drivers/usb/host/Kconfig | 4 ++-- drivers/video/fbdev/exynos/Kconfig | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5f60155..6d2e881 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -301,7 +301,6 @@ config SATA_MV tristate "Marvell SATA support" depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST - select GENERIC_PHY help This option enables support for the Marvell Serial ATA family. Currently supports 88SX[56]0[48][01] PCI(-X) chips, diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig index b7b2e47..b6f3eaa 100644 --- a/drivers/media/platform/exynos4-is/Kconfig +++ b/drivers/media/platform/exynos4-is/Kconfig @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC config VIDEO_S5P_MIPI_CSIS tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" depends on REGULATOR - select GENERIC_PHY + depends on GENERIC_PHY help This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 receiver (MIPI-CSIS) devices. diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..edecdb1 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -5,7 +5,7 @@ menu "PHY Subsystem" config GENERIC_PHY - bool "PHY Core" + bool help Generic PHY support. @@ -72,7 +72,7 @@ config PHY_MIPHY365X config PHY_RCAR_GEN2 tristate "Renesas R-Car generation 2 USB PHY driver" depends on ARCH_SHMOBILE - depends on GENERIC_PHY + select GENERIC_PHY help Support for USB PHY found on Renesas R-Car generation 2 SoCs. diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5ad60e4..e2197e2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR config USB_EHCI_HCD_STI tristate "Support for ST STiHxxx on-chip EHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_EHCI_HCD_PLATFORM help Enable support for the on-chip EHCI controller found on @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR config USB_OHCI_HCD_STI tristate "Support for ST STiHxxx on-chip OHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_OHCI_HCD_PLATFORM help Enable support for the on-chip OHCI controller found on diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig index 1f16b46..6c53894 100644 --- a/drivers/video/fbdev/exynos/Kconfig +++ b/drivers/video/fbdev/exynos/Kconfig @@ -16,7 +16,7 @@ if EXYNOS_VIDEO config EXYNOS_MIPI_DSI bool "EXYNOS MIPI DSI driver support." - select GENERIC_PHY + depends on GENERIC_PHY help This enables support for MIPI-DSI device. -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Most of the phy providers use "select" to enable GENERIC_PHY. Since select is only recommended when the config is not visible, GENERIC_PHY is changed an invisible option. To maintain consistency, all phy providers are changed to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic dependency, so it is left as "select". Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> --- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 ++-- drivers/usb/host/Kconfig | 4 ++-- drivers/video/fbdev/exynos/Kconfig | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5f60155..6d2e881 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -301,7 +301,6 @@ config SATA_MV tristate "Marvell SATA support" depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST - select GENERIC_PHY help This option enables support for the Marvell Serial ATA family. Currently supports 88SX[56]0[48][01] PCI(-X) chips, diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig index b7b2e47..b6f3eaa 100644 --- a/drivers/media/platform/exynos4-is/Kconfig +++ b/drivers/media/platform/exynos4-is/Kconfig @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC config VIDEO_S5P_MIPI_CSIS tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" depends on REGULATOR - select GENERIC_PHY + depends on GENERIC_PHY help This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 receiver (MIPI-CSIS) devices. diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..edecdb1 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -5,7 +5,7 @@ menu "PHY Subsystem" config GENERIC_PHY - bool "PHY Core" + bool help Generic PHY support. @@ -72,7 +72,7 @@ config PHY_MIPHY365X config PHY_RCAR_GEN2 tristate "Renesas R-Car generation 2 USB PHY driver" depends on ARCH_SHMOBILE - depends on GENERIC_PHY + select GENERIC_PHY help Support for USB PHY found on Renesas R-Car generation 2 SoCs. diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5ad60e4..e2197e2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR config USB_EHCI_HCD_STI tristate "Support for ST STiHxxx on-chip EHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_EHCI_HCD_PLATFORM help Enable support for the on-chip EHCI controller found on @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR config USB_OHCI_HCD_STI tristate "Support for ST STiHxxx on-chip OHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_OHCI_HCD_PLATFORM help Enable support for the on-chip OHCI controller found on diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig index 1f16b46..6c53894 100644 --- a/drivers/video/fbdev/exynos/Kconfig +++ b/drivers/video/fbdev/exynos/Kconfig @@ -16,7 +16,7 @@ if EXYNOS_VIDEO config EXYNOS_MIPI_DSI bool "EXYNOS MIPI DSI driver support." - select GENERIC_PHY + depends on GENERIC_PHY help This enables support for MIPI-DSI device. -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Most of the phy providers use "select" to enable GENERIC_PHY. Since select is only recommended when the config is not visible, GENERIC_PHY is changed an invisible option. To maintain consistency, all phy providers are changed to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic dependency, so it is left as "select". Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> --- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 ++-- drivers/usb/host/Kconfig | 4 ++-- drivers/video/fbdev/exynos/Kconfig | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5f60155..6d2e881 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -301,7 +301,6 @@ config SATA_MV tristate "Marvell SATA support" depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST - select GENERIC_PHY help This option enables support for the Marvell Serial ATA family. Currently supports 88SX[56]0[48][01] PCI(-X) chips, diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig index b7b2e47..b6f3eaa 100644 --- a/drivers/media/platform/exynos4-is/Kconfig +++ b/drivers/media/platform/exynos4-is/Kconfig @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC config VIDEO_S5P_MIPI_CSIS tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" depends on REGULATOR - select GENERIC_PHY + depends on GENERIC_PHY help This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 receiver (MIPI-CSIS) devices. diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..edecdb1 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -5,7 +5,7 @@ menu "PHY Subsystem" config GENERIC_PHY - bool "PHY Core" + bool help Generic PHY support. @@ -72,7 +72,7 @@ config PHY_MIPHY365X config PHY_RCAR_GEN2 tristate "Renesas R-Car generation 2 USB PHY driver" depends on ARCH_SHMOBILE - depends on GENERIC_PHY + select GENERIC_PHY help Support for USB PHY found on Renesas R-Car generation 2 SoCs. diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5ad60e4..e2197e2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR config USB_EHCI_HCD_STI tristate "Support for ST STiHxxx on-chip EHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_EHCI_HCD_PLATFORM help Enable support for the on-chip EHCI controller found on @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR config USB_OHCI_HCD_STI tristate "Support for ST STiHxxx on-chip OHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_OHCI_HCD_PLATFORM help Enable support for the on-chip OHCI controller found on diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig index 1f16b46..6c53894 100644 --- a/drivers/video/fbdev/exynos/Kconfig +++ b/drivers/video/fbdev/exynos/Kconfig @@ -16,7 +16,7 @@ if EXYNOS_VIDEO config EXYNOS_MIPI_DSI bool "EXYNOS MIPI DSI driver support." - select GENERIC_PHY + depends on GENERIC_PHY help This enables support for MIPI-DSI device. -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Most of the phy providers use "select" to enable GENERIC_PHY. Since select is only recommended when the config is not visible, GENERIC_PHY is changed an invisible option. To maintain consistency, all phy providers are changed to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic dependency, so it is left as "select". Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> --- drivers/ata/Kconfig | 1 - drivers/media/platform/exynos4-is/Kconfig | 2 +- drivers/phy/Kconfig | 4 ++-- drivers/usb/host/Kconfig | 4 ++-- drivers/video/fbdev/exynos/Kconfig | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 5f60155..6d2e881 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -301,7 +301,6 @@ config SATA_MV tristate "Marvell SATA support" depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST - select GENERIC_PHY help This option enables support for the Marvell Serial ATA family. Currently supports 88SX[56]0[48][01] PCI(-X) chips, diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig index b7b2e47..b6f3eaa 100644 --- a/drivers/media/platform/exynos4-is/Kconfig +++ b/drivers/media/platform/exynos4-is/Kconfig @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC config VIDEO_S5P_MIPI_CSIS tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" depends on REGULATOR - select GENERIC_PHY + depends on GENERIC_PHY help This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 receiver (MIPI-CSIS) devices. diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 2962de2..edecdb1 100644 --- a/drivers/phy/Kconfig +++ b/drivers/phy/Kconfig @@ -5,7 +5,7 @@ menu "PHY Subsystem" config GENERIC_PHY - bool "PHY Core" + bool help Generic PHY support. @@ -72,7 +72,7 @@ config PHY_MIPHY365X config PHY_RCAR_GEN2 tristate "Renesas R-Car generation 2 USB PHY driver" depends on ARCH_SHMOBILE - depends on GENERIC_PHY + select GENERIC_PHY help Support for USB PHY found on Renesas R-Car generation 2 SoCs. diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5ad60e4..e2197e2 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR config USB_EHCI_HCD_STI tristate "Support for ST STiHxxx on-chip EHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_EHCI_HCD_PLATFORM help Enable support for the on-chip EHCI controller found on @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR config USB_OHCI_HCD_STI tristate "Support for ST STiHxxx on-chip OHCI USB controller" depends on ARCH_STI && OF - select GENERIC_PHY + depends on GENERIC_PHY select USB_OHCI_HCD_PLATFORM help Enable support for the on-chip OHCI controller found on diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig index 1f16b46..6c53894 100644 --- a/drivers/video/fbdev/exynos/Kconfig +++ b/drivers/video/fbdev/exynos/Kconfig @@ -16,7 +16,7 @@ if EXYNOS_VIDEO config EXYNOS_MIPI_DSI bool "EXYNOS MIPI DSI driver support." - select GENERIC_PHY + depends on GENERIC_PHY help This enables support for MIPI-DSI device. -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-05-14 21:57 ` Mauro Carvalho Chehab -1 siblings, 0 replies; 92+ messages in thread From: Mauro Carvalho Chehab @ 2015-05-14 21:57 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Em Wed, 22 Apr 2015 16:04:10 -0700 Arun Ramamurthy <arun.ramamurthy@broadcom.com> escreveu: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- For media part: Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-14 21:57 ` Mauro Carvalho Chehab 0 siblings, 0 replies; 92+ messages in thread From: Mauro Carvalho Chehab @ 2015-05-14 21:57 UTC (permalink / raw) To: linux-arm-kernel Em Wed, 22 Apr 2015 16:04:10 -0700 Arun Ramamurthy <arun.ramamurthy@broadcom.com> escreveu: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- For media part: Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-14 21:57 ` Mauro Carvalho Chehab 0 siblings, 0 replies; 92+ messages in thread From: Mauro Carvalho Chehab @ 2015-05-14 21:57 UTC (permalink / raw) To: linux-arm-kernel Em Wed, 22 Apr 2015 16:04:10 -0700 Arun Ramamurthy <arun.ramamurthy@broadcom.com> escreveu: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- For media part: Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-14 21:57 ` Mauro Carvalho Chehab 0 siblings, 0 replies; 92+ messages in thread From: Mauro Carvalho Chehab @ 2015-05-14 21:57 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Em Wed, 22 Apr 2015 16:04:10 -0700 Arun Ramamurthy <arun.ramamurthy@broadcom.com> escreveu: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- For media part: Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-05-15 0:52 ` Felipe Balbi -1 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-15 0:52 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT [-- Attachment #1: Type: text/plain, Size: 3072 bytes --] Hi, On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY so some you changed from depends to select... > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY while others you changed from select to depends. NAK. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-15 0:52 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-15 0:52 UTC (permalink / raw) To: linux-arm-kernel Hi, On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY so some you changed from depends to select... > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY while others you changed from select to depends. NAK. -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150514/740be2a5/attachment-0001.sig> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-15 0:52 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-15 0:52 UTC (permalink / raw) To: linux-arm-kernel [-- Attachment #1: Type: text/plain, Size: 3072 bytes --] Hi, On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY so some you changed from depends to select... > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY while others you changed from select to depends. NAK. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-15 0:52 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-15 0:52 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list [-- Attachment #1: Type: text/plain, Size: 3072 bytes --] Hi, On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY so some you changed from depends to select... > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY while others you changed from select to depends. NAK. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-15 0:52 ` Felipe Balbi (?) (?) @ 2015-05-25 21:19 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-25 21:19 UTC (permalink / raw) To: balbi Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT On 15-05-14 05:52 PM, Felipe Balbi wrote: > Hi, > > On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >> --- >> drivers/ata/Kconfig | 1 - >> drivers/media/platform/exynos4-is/Kconfig | 2 +- >> drivers/phy/Kconfig | 4 ++-- >> drivers/usb/host/Kconfig | 4 ++-- >> drivers/video/fbdev/exynos/Kconfig | 2 +- >> 5 files changed, 6 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >> index 5f60155..6d2e881 100644 >> --- a/drivers/ata/Kconfig >> +++ b/drivers/ata/Kconfig >> @@ -301,7 +301,6 @@ config SATA_MV >> tristate "Marvell SATA support" >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >> - select GENERIC_PHY >> help >> This option enables support for the Marvell Serial ATA family. >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >> index b7b2e47..b6f3eaa 100644 >> --- a/drivers/media/platform/exynos4-is/Kconfig >> +++ b/drivers/media/platform/exynos4-is/Kconfig >> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >> config VIDEO_S5P_MIPI_CSIS >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >> depends on REGULATOR >> - select GENERIC_PHY >> + depends on GENERIC_PHY >> help >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >> receiver (MIPI-CSIS) devices. >> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >> index 2962de2..edecdb1 100644 >> --- a/drivers/phy/Kconfig >> +++ b/drivers/phy/Kconfig >> @@ -5,7 +5,7 @@ >> menu "PHY Subsystem" >> >> config GENERIC_PHY >> - bool "PHY Core" >> + bool >> help >> Generic PHY support. >> >> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >> config PHY_RCAR_GEN2 >> tristate "Renesas R-Car generation 2 USB PHY driver" >> depends on ARCH_SHMOBILE >> - depends on GENERIC_PHY >> + select GENERIC_PHY > > so some you changed from depends to select... > >> help >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >> >> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >> index 5ad60e4..e2197e2 100644 >> --- a/drivers/usb/host/Kconfig >> +++ b/drivers/usb/host/Kconfig >> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >> config USB_EHCI_HCD_STI >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >> depends on ARCH_STI && OF >> - select GENERIC_PHY >> + depends on GENERIC_PHY > > while others you changed from select to depends. > > NAK. > Felipe, I dont understand your concern, could you please explain it more detail? The logic behind the changes is that in cases where there was an explicit dependency, I changed it to "depends on" and in other cases I changed it to "selects". Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-25 21:19 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-25 21:19 UTC (permalink / raw) To: linux-arm-kernel On 15-05-14 05:52 PM, Felipe Balbi wrote: > Hi, > > On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >> --- >> drivers/ata/Kconfig | 1 - >> drivers/media/platform/exynos4-is/Kconfig | 2 +- >> drivers/phy/Kconfig | 4 ++-- >> drivers/usb/host/Kconfig | 4 ++-- >> drivers/video/fbdev/exynos/Kconfig | 2 +- >> 5 files changed, 6 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >> index 5f60155..6d2e881 100644 >> --- a/drivers/ata/Kconfig >> +++ b/drivers/ata/Kconfig >> @@ -301,7 +301,6 @@ config SATA_MV >> tristate "Marvell SATA support" >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >> - select GENERIC_PHY >> help >> This option enables support for the Marvell Serial ATA family. >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >> index b7b2e47..b6f3eaa 100644 >> --- a/drivers/media/platform/exynos4-is/Kconfig >> +++ b/drivers/media/platform/exynos4-is/Kconfig >> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >> config VIDEO_S5P_MIPI_CSIS >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >> depends on REGULATOR >> - select GENERIC_PHY >> + depends on GENERIC_PHY >> help >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >> receiver (MIPI-CSIS) devices. >> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >> index 2962de2..edecdb1 100644 >> --- a/drivers/phy/Kconfig >> +++ b/drivers/phy/Kconfig >> @@ -5,7 +5,7 @@ >> menu "PHY Subsystem" >> >> config GENERIC_PHY >> - bool "PHY Core" >> + bool >> help >> Generic PHY support. >> >> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >> config PHY_RCAR_GEN2 >> tristate "Renesas R-Car generation 2 USB PHY driver" >> depends on ARCH_SHMOBILE >> - depends on GENERIC_PHY >> + select GENERIC_PHY > > so some you changed from depends to select... > >> help >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >> >> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >> index 5ad60e4..e2197e2 100644 >> --- a/drivers/usb/host/Kconfig >> +++ b/drivers/usb/host/Kconfig >> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >> config USB_EHCI_HCD_STI >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >> depends on ARCH_STI && OF >> - select GENERIC_PHY >> + depends on GENERIC_PHY > > while others you changed from select to depends. > > NAK. > Felipe, I dont understand your concern, could you please explain it more detail? The logic behind the changes is that in cases where there was an explicit dependency, I changed it to "depends on" and in other cases I changed it to "selects". Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-25 21:19 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-25 21:19 UTC (permalink / raw) To: linux-arm-kernel On 15-05-14 05:52 PM, Felipe Balbi wrote: > Hi, > > On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >> --- >> drivers/ata/Kconfig | 1 - >> drivers/media/platform/exynos4-is/Kconfig | 2 +- >> drivers/phy/Kconfig | 4 ++-- >> drivers/usb/host/Kconfig | 4 ++-- >> drivers/video/fbdev/exynos/Kconfig | 2 +- >> 5 files changed, 6 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >> index 5f60155..6d2e881 100644 >> --- a/drivers/ata/Kconfig >> +++ b/drivers/ata/Kconfig >> @@ -301,7 +301,6 @@ config SATA_MV >> tristate "Marvell SATA support" >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >> - select GENERIC_PHY >> help >> This option enables support for the Marvell Serial ATA family. >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >> index b7b2e47..b6f3eaa 100644 >> --- a/drivers/media/platform/exynos4-is/Kconfig >> +++ b/drivers/media/platform/exynos4-is/Kconfig >> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >> config VIDEO_S5P_MIPI_CSIS >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >> depends on REGULATOR >> - select GENERIC_PHY >> + depends on GENERIC_PHY >> help >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >> receiver (MIPI-CSIS) devices. >> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >> index 2962de2..edecdb1 100644 >> --- a/drivers/phy/Kconfig >> +++ b/drivers/phy/Kconfig >> @@ -5,7 +5,7 @@ >> menu "PHY Subsystem" >> >> config GENERIC_PHY >> - bool "PHY Core" >> + bool >> help >> Generic PHY support. >> >> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >> config PHY_RCAR_GEN2 >> tristate "Renesas R-Car generation 2 USB PHY driver" >> depends on ARCH_SHMOBILE >> - depends on GENERIC_PHY >> + select GENERIC_PHY > > so some you changed from depends to select... > >> help >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >> >> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >> index 5ad60e4..e2197e2 100644 >> --- a/drivers/usb/host/Kconfig >> +++ b/drivers/usb/host/Kconfig >> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >> config USB_EHCI_HCD_STI >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >> depends on ARCH_STI && OF >> - select GENERIC_PHY >> + depends on GENERIC_PHY > > while others you changed from select to depends. > > NAK. > Felipe, I dont understand your concern, could you please explain it more detail? The logic behind the changes is that in cases where there was an explicit dependency, I changed it to "depends on" and in other cases I changed it to "selects". Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-25 21:19 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-25 21:19 UTC (permalink / raw) To: balbi Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list On 15-05-14 05:52 PM, Felipe Balbi wrote: > Hi, > > On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >> --- >> drivers/ata/Kconfig | 1 - >> drivers/media/platform/exynos4-is/Kconfig | 2 +- >> drivers/phy/Kconfig | 4 ++-- >> drivers/usb/host/Kconfig | 4 ++-- >> drivers/video/fbdev/exynos/Kconfig | 2 +- >> 5 files changed, 6 insertions(+), 7 deletions(-) >> >> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >> index 5f60155..6d2e881 100644 >> --- a/drivers/ata/Kconfig >> +++ b/drivers/ata/Kconfig >> @@ -301,7 +301,6 @@ config SATA_MV >> tristate "Marvell SATA support" >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >> - select GENERIC_PHY >> help >> This option enables support for the Marvell Serial ATA family. >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >> index b7b2e47..b6f3eaa 100644 >> --- a/drivers/media/platform/exynos4-is/Kconfig >> +++ b/drivers/media/platform/exynos4-is/Kconfig >> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >> config VIDEO_S5P_MIPI_CSIS >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >> depends on REGULATOR >> - select GENERIC_PHY >> + depends on GENERIC_PHY >> help >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >> receiver (MIPI-CSIS) devices. >> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >> index 2962de2..edecdb1 100644 >> --- a/drivers/phy/Kconfig >> +++ b/drivers/phy/Kconfig >> @@ -5,7 +5,7 @@ >> menu "PHY Subsystem" >> >> config GENERIC_PHY >> - bool "PHY Core" >> + bool >> help >> Generic PHY support. >> >> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >> config PHY_RCAR_GEN2 >> tristate "Renesas R-Car generation 2 USB PHY driver" >> depends on ARCH_SHMOBILE >> - depends on GENERIC_PHY >> + select GENERIC_PHY > > so some you changed from depends to select... > >> help >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >> >> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >> index 5ad60e4..e2197e2 100644 >> --- a/drivers/usb/host/Kconfig >> +++ b/drivers/usb/host/Kconfig >> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >> config USB_EHCI_HCD_STI >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >> depends on ARCH_STI && OF >> - select GENERIC_PHY >> + depends on GENERIC_PHY > > while others you changed from select to depends. > > NAK. > Felipe, I dont understand your concern, could you please explain it more detail? The logic behind the changes is that in cases where there was an explicit dependency, I changed it to "depends on" and in other cases I changed it to "selects". Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-25 21:19 ` Arun Ramamurthy (?) (?) @ 2015-05-26 14:19 ` Felipe Balbi -1 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 14:19 UTC (permalink / raw) To: Arun Ramamurthy Cc: balbi, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT [-- Attachment #1: Type: text/plain, Size: 3766 bytes --] HI, On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > > > On 15-05-14 05:52 PM, Felipe Balbi wrote: > >Hi, > > > >On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>is only recommended when the config is not visible, GENERIC_PHY is changed > >>an invisible option. To maintain consistency, all phy providers are changed > >>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>dependency, so it is left as "select". > >> > >>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>--- > >> drivers/ata/Kconfig | 1 - > >> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >> drivers/phy/Kconfig | 4 ++-- > >> drivers/usb/host/Kconfig | 4 ++-- > >> drivers/video/fbdev/exynos/Kconfig | 2 +- > >> 5 files changed, 6 insertions(+), 7 deletions(-) > >> > >>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>index 5f60155..6d2e881 100644 > >>--- a/drivers/ata/Kconfig > >>+++ b/drivers/ata/Kconfig > >>@@ -301,7 +301,6 @@ config SATA_MV > >> tristate "Marvell SATA support" > >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>- select GENERIC_PHY > >> help > >> This option enables support for the Marvell Serial ATA family. > >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>index b7b2e47..b6f3eaa 100644 > >>--- a/drivers/media/platform/exynos4-is/Kconfig > >>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >> config VIDEO_S5P_MIPI_CSIS > >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >> depends on REGULATOR > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > >> help > >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >> receiver (MIPI-CSIS) devices. > >>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>index 2962de2..edecdb1 100644 > >>--- a/drivers/phy/Kconfig > >>+++ b/drivers/phy/Kconfig > >>@@ -5,7 +5,7 @@ > >> menu "PHY Subsystem" > >> > >> config GENERIC_PHY > >>- bool "PHY Core" > >>+ bool > >> help > >> Generic PHY support. > >> > >>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >> config PHY_RCAR_GEN2 > >> tristate "Renesas R-Car generation 2 USB PHY driver" > >> depends on ARCH_SHMOBILE > >>- depends on GENERIC_PHY > >>+ select GENERIC_PHY > > > >so some you changed from depends to select... > > > >> help > >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >> > >>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>index 5ad60e4..e2197e2 100644 > >>--- a/drivers/usb/host/Kconfig > >>+++ b/drivers/usb/host/Kconfig > >>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >> config USB_EHCI_HCD_STI > >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >> depends on ARCH_STI && OF > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > > > >while others you changed from select to depends. > > > >NAK. > > > Felipe, I dont understand your concern, could you please explain it more > detail? The logic behind the changes is that in cases where there was an > explicit dependency, I changed it to "depends on" and in other cases I > changed it to "selects". Thanks Since GENERIC_PHY is visible from Kconfig, it would be much nicer to avoid select altogether. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 14:19 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 14:19 UTC (permalink / raw) To: linux-arm-kernel HI, On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > > > On 15-05-14 05:52 PM, Felipe Balbi wrote: > >Hi, > > > >On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>is only recommended when the config is not visible, GENERIC_PHY is changed > >>an invisible option. To maintain consistency, all phy providers are changed > >>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>dependency, so it is left as "select". > >> > >>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>--- > >> drivers/ata/Kconfig | 1 - > >> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >> drivers/phy/Kconfig | 4 ++-- > >> drivers/usb/host/Kconfig | 4 ++-- > >> drivers/video/fbdev/exynos/Kconfig | 2 +- > >> 5 files changed, 6 insertions(+), 7 deletions(-) > >> > >>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>index 5f60155..6d2e881 100644 > >>--- a/drivers/ata/Kconfig > >>+++ b/drivers/ata/Kconfig > >>@@ -301,7 +301,6 @@ config SATA_MV > >> tristate "Marvell SATA support" > >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>- select GENERIC_PHY > >> help > >> This option enables support for the Marvell Serial ATA family. > >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>index b7b2e47..b6f3eaa 100644 > >>--- a/drivers/media/platform/exynos4-is/Kconfig > >>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >> config VIDEO_S5P_MIPI_CSIS > >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >> depends on REGULATOR > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > >> help > >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >> receiver (MIPI-CSIS) devices. > >>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>index 2962de2..edecdb1 100644 > >>--- a/drivers/phy/Kconfig > >>+++ b/drivers/phy/Kconfig > >>@@ -5,7 +5,7 @@ > >> menu "PHY Subsystem" > >> > >> config GENERIC_PHY > >>- bool "PHY Core" > >>+ bool > >> help > >> Generic PHY support. > >> > >>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >> config PHY_RCAR_GEN2 > >> tristate "Renesas R-Car generation 2 USB PHY driver" > >> depends on ARCH_SHMOBILE > >>- depends on GENERIC_PHY > >>+ select GENERIC_PHY > > > >so some you changed from depends to select... > > > >> help > >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >> > >>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>index 5ad60e4..e2197e2 100644 > >>--- a/drivers/usb/host/Kconfig > >>+++ b/drivers/usb/host/Kconfig > >>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >> config USB_EHCI_HCD_STI > >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >> depends on ARCH_STI && OF > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > > > >while others you changed from select to depends. > > > >NAK. > > > Felipe, I dont understand your concern, could you please explain it more > detail? The logic behind the changes is that in cases where there was an > explicit dependency, I changed it to "depends on" and in other cases I > changed it to "selects". Thanks Since GENERIC_PHY is visible from Kconfig, it would be much nicer to avoid select altogether. -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150526/6b216a7c/attachment.sig> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 14:19 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 14:19 UTC (permalink / raw) To: linux-arm-kernel [-- Attachment #1: Type: text/plain, Size: 3766 bytes --] HI, On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > > > On 15-05-14 05:52 PM, Felipe Balbi wrote: > >Hi, > > > >On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>is only recommended when the config is not visible, GENERIC_PHY is changed > >>an invisible option. To maintain consistency, all phy providers are changed > >>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>dependency, so it is left as "select". > >> > >>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>--- > >> drivers/ata/Kconfig | 1 - > >> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >> drivers/phy/Kconfig | 4 ++-- > >> drivers/usb/host/Kconfig | 4 ++-- > >> drivers/video/fbdev/exynos/Kconfig | 2 +- > >> 5 files changed, 6 insertions(+), 7 deletions(-) > >> > >>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>index 5f60155..6d2e881 100644 > >>--- a/drivers/ata/Kconfig > >>+++ b/drivers/ata/Kconfig > >>@@ -301,7 +301,6 @@ config SATA_MV > >> tristate "Marvell SATA support" > >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>- select GENERIC_PHY > >> help > >> This option enables support for the Marvell Serial ATA family. > >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>index b7b2e47..b6f3eaa 100644 > >>--- a/drivers/media/platform/exynos4-is/Kconfig > >>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >> config VIDEO_S5P_MIPI_CSIS > >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >> depends on REGULATOR > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > >> help > >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >> receiver (MIPI-CSIS) devices. > >>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>index 2962de2..edecdb1 100644 > >>--- a/drivers/phy/Kconfig > >>+++ b/drivers/phy/Kconfig > >>@@ -5,7 +5,7 @@ > >> menu "PHY Subsystem" > >> > >> config GENERIC_PHY > >>- bool "PHY Core" > >>+ bool > >> help > >> Generic PHY support. > >> > >>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >> config PHY_RCAR_GEN2 > >> tristate "Renesas R-Car generation 2 USB PHY driver" > >> depends on ARCH_SHMOBILE > >>- depends on GENERIC_PHY > >>+ select GENERIC_PHY > > > >so some you changed from depends to select... > > > >> help > >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >> > >>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>index 5ad60e4..e2197e2 100644 > >>--- a/drivers/usb/host/Kconfig > >>+++ b/drivers/usb/host/Kconfig > >>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >> config USB_EHCI_HCD_STI > >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >> depends on ARCH_STI && OF > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > > > >while others you changed from select to depends. > > > >NAK. > > > Felipe, I dont understand your concern, could you please explain it more > detail? The logic behind the changes is that in cases where there was an > explicit dependency, I changed it to "depends on" and in other cases I > changed it to "selects". Thanks Since GENERIC_PHY is visible from Kconfig, it would be much nicer to avoid select altogether. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 14:19 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 14:19 UTC (permalink / raw) To: Arun Ramamurthy Cc: balbi, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list [-- Attachment #1: Type: text/plain, Size: 3766 bytes --] HI, On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > > > On 15-05-14 05:52 PM, Felipe Balbi wrote: > >Hi, > > > >On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>is only recommended when the config is not visible, GENERIC_PHY is changed > >>an invisible option. To maintain consistency, all phy providers are changed > >>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>dependency, so it is left as "select". > >> > >>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>--- > >> drivers/ata/Kconfig | 1 - > >> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >> drivers/phy/Kconfig | 4 ++-- > >> drivers/usb/host/Kconfig | 4 ++-- > >> drivers/video/fbdev/exynos/Kconfig | 2 +- > >> 5 files changed, 6 insertions(+), 7 deletions(-) > >> > >>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>index 5f60155..6d2e881 100644 > >>--- a/drivers/ata/Kconfig > >>+++ b/drivers/ata/Kconfig > >>@@ -301,7 +301,6 @@ config SATA_MV > >> tristate "Marvell SATA support" > >> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>- select GENERIC_PHY > >> help > >> This option enables support for the Marvell Serial ATA family. > >> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>index b7b2e47..b6f3eaa 100644 > >>--- a/drivers/media/platform/exynos4-is/Kconfig > >>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >> config VIDEO_S5P_MIPI_CSIS > >> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >> depends on REGULATOR > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > >> help > >> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >> receiver (MIPI-CSIS) devices. > >>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>index 2962de2..edecdb1 100644 > >>--- a/drivers/phy/Kconfig > >>+++ b/drivers/phy/Kconfig > >>@@ -5,7 +5,7 @@ > >> menu "PHY Subsystem" > >> > >> config GENERIC_PHY > >>- bool "PHY Core" > >>+ bool > >> help > >> Generic PHY support. > >> > >>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >> config PHY_RCAR_GEN2 > >> tristate "Renesas R-Car generation 2 USB PHY driver" > >> depends on ARCH_SHMOBILE > >>- depends on GENERIC_PHY > >>+ select GENERIC_PHY > > > >so some you changed from depends to select... > > > >> help > >> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >> > >>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>index 5ad60e4..e2197e2 100644 > >>--- a/drivers/usb/host/Kconfig > >>+++ b/drivers/usb/host/Kconfig > >>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >> config USB_EHCI_HCD_STI > >> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >> depends on ARCH_STI && OF > >>- select GENERIC_PHY > >>+ depends on GENERIC_PHY > > > >while others you changed from select to depends. > > > >NAK. > > > Felipe, I dont understand your concern, could you please explain it more > detail? The logic behind the changes is that in cases where there was an > explicit dependency, I changed it to "depends on" and in other cases I > changed it to "selects". Thanks Since GENERIC_PHY is visible from Kconfig, it would be much nicer to avoid select altogether. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-26 14:19 ` Felipe Balbi (?) (?) @ 2015-05-26 18:37 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-26 18:37 UTC (permalink / raw) To: balbi Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Hi On 15-05-26 07:19 AM, Felipe Balbi wrote: > HI, > > On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >> >> >> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>> an invisible option. To maintain consistency, all phy providers are changed >>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>> dependency, so it is left as "select". >>>> >>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>> --- >>>> drivers/ata/Kconfig | 1 - >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>> drivers/phy/Kconfig | 4 ++-- >>>> drivers/usb/host/Kconfig | 4 ++-- >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>> >>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>> index 5f60155..6d2e881 100644 >>>> --- a/drivers/ata/Kconfig >>>> +++ b/drivers/ata/Kconfig >>>> @@ -301,7 +301,6 @@ config SATA_MV >>>> tristate "Marvell SATA support" >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>> - select GENERIC_PHY >>>> help >>>> This option enables support for the Marvell Serial ATA family. >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>> index b7b2e47..b6f3eaa 100644 >>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>> config VIDEO_S5P_MIPI_CSIS >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>> depends on REGULATOR >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>>> help >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>> receiver (MIPI-CSIS) devices. >>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>> index 2962de2..edecdb1 100644 >>>> --- a/drivers/phy/Kconfig >>>> +++ b/drivers/phy/Kconfig >>>> @@ -5,7 +5,7 @@ >>>> menu "PHY Subsystem" >>>> >>>> config GENERIC_PHY >>>> - bool "PHY Core" >>>> + bool >>>> help >>>> Generic PHY support. >>>> >>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>> config PHY_RCAR_GEN2 >>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>> depends on ARCH_SHMOBILE >>>> - depends on GENERIC_PHY >>>> + select GENERIC_PHY >>> >>> so some you changed from depends to select... >>> >>>> help >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>> >>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>> index 5ad60e4..e2197e2 100644 >>>> --- a/drivers/usb/host/Kconfig >>>> +++ b/drivers/usb/host/Kconfig >>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>> config USB_EHCI_HCD_STI >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>> depends on ARCH_STI && OF >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>> >>> while others you changed from select to depends. >>> >>> NAK. >>> >> Felipe, I dont understand your concern, could you please explain it more >> detail? The logic behind the changes is that in cases where there was an >> explicit dependency, I changed it to "depends on" and in other cases I >> changed it to "selects". Thanks > > Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > avoid select altogether. > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an invisible option as part of this change. Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:37 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-26 18:37 UTC (permalink / raw) To: linux-arm-kernel Hi On 15-05-26 07:19 AM, Felipe Balbi wrote: > HI, > > On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >> >> >> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>> an invisible option. To maintain consistency, all phy providers are changed >>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>> dependency, so it is left as "select". >>>> >>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>> --- >>>> drivers/ata/Kconfig | 1 - >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>> drivers/phy/Kconfig | 4 ++-- >>>> drivers/usb/host/Kconfig | 4 ++-- >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>> >>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>> index 5f60155..6d2e881 100644 >>>> --- a/drivers/ata/Kconfig >>>> +++ b/drivers/ata/Kconfig >>>> @@ -301,7 +301,6 @@ config SATA_MV >>>> tristate "Marvell SATA support" >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>> - select GENERIC_PHY >>>> help >>>> This option enables support for the Marvell Serial ATA family. >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>> index b7b2e47..b6f3eaa 100644 >>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>> config VIDEO_S5P_MIPI_CSIS >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>> depends on REGULATOR >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>>> help >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>> receiver (MIPI-CSIS) devices. >>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>> index 2962de2..edecdb1 100644 >>>> --- a/drivers/phy/Kconfig >>>> +++ b/drivers/phy/Kconfig >>>> @@ -5,7 +5,7 @@ >>>> menu "PHY Subsystem" >>>> >>>> config GENERIC_PHY >>>> - bool "PHY Core" >>>> + bool >>>> help >>>> Generic PHY support. >>>> >>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>> config PHY_RCAR_GEN2 >>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>> depends on ARCH_SHMOBILE >>>> - depends on GENERIC_PHY >>>> + select GENERIC_PHY >>> >>> so some you changed from depends to select... >>> >>>> help >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>> >>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>> index 5ad60e4..e2197e2 100644 >>>> --- a/drivers/usb/host/Kconfig >>>> +++ b/drivers/usb/host/Kconfig >>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>> config USB_EHCI_HCD_STI >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>> depends on ARCH_STI && OF >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>> >>> while others you changed from select to depends. >>> >>> NAK. >>> >> Felipe, I dont understand your concern, could you please explain it more >> detail? The logic behind the changes is that in cases where there was an >> explicit dependency, I changed it to "depends on" and in other cases I >> changed it to "selects". Thanks > > Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > avoid select altogether. > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an invisible option as part of this change. Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:37 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-26 18:37 UTC (permalink / raw) To: linux-arm-kernel Hi On 15-05-26 07:19 AM, Felipe Balbi wrote: > HI, > > On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >> >> >> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>> an invisible option. To maintain consistency, all phy providers are changed >>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>> dependency, so it is left as "select". >>>> >>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>> --- >>>> drivers/ata/Kconfig | 1 - >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>> drivers/phy/Kconfig | 4 ++-- >>>> drivers/usb/host/Kconfig | 4 ++-- >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>> >>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>> index 5f60155..6d2e881 100644 >>>> --- a/drivers/ata/Kconfig >>>> +++ b/drivers/ata/Kconfig >>>> @@ -301,7 +301,6 @@ config SATA_MV >>>> tristate "Marvell SATA support" >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>> - select GENERIC_PHY >>>> help >>>> This option enables support for the Marvell Serial ATA family. >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>> index b7b2e47..b6f3eaa 100644 >>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>> config VIDEO_S5P_MIPI_CSIS >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>> depends on REGULATOR >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>>> help >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>> receiver (MIPI-CSIS) devices. >>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>> index 2962de2..edecdb1 100644 >>>> --- a/drivers/phy/Kconfig >>>> +++ b/drivers/phy/Kconfig >>>> @@ -5,7 +5,7 @@ >>>> menu "PHY Subsystem" >>>> >>>> config GENERIC_PHY >>>> - bool "PHY Core" >>>> + bool >>>> help >>>> Generic PHY support. >>>> >>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>> config PHY_RCAR_GEN2 >>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>> depends on ARCH_SHMOBILE >>>> - depends on GENERIC_PHY >>>> + select GENERIC_PHY >>> >>> so some you changed from depends to select... >>> >>>> help >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>> >>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>> index 5ad60e4..e2197e2 100644 >>>> --- a/drivers/usb/host/Kconfig >>>> +++ b/drivers/usb/host/Kconfig >>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>> config USB_EHCI_HCD_STI >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>> depends on ARCH_STI && OF >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>> >>> while others you changed from select to depends. >>> >>> NAK. >>> >> Felipe, I dont understand your concern, could you please explain it more >> detail? The logic behind the changes is that in cases where there was an >> explicit dependency, I changed it to "depends on" and in other cases I >> changed it to "selects". Thanks > > Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > avoid select altogether. > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an invisible option as part of this change. Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:37 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-05-26 18:37 UTC (permalink / raw) To: balbi Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi On 15-05-26 07:19 AM, Felipe Balbi wrote: > HI, > > On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >> >> >> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>> an invisible option. To maintain consistency, all phy providers are changed >>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>> dependency, so it is left as "select". >>>> >>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>> --- >>>> drivers/ata/Kconfig | 1 - >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>> drivers/phy/Kconfig | 4 ++-- >>>> drivers/usb/host/Kconfig | 4 ++-- >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>> >>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>> index 5f60155..6d2e881 100644 >>>> --- a/drivers/ata/Kconfig >>>> +++ b/drivers/ata/Kconfig >>>> @@ -301,7 +301,6 @@ config SATA_MV >>>> tristate "Marvell SATA support" >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>> - select GENERIC_PHY >>>> help >>>> This option enables support for the Marvell Serial ATA family. >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>> index b7b2e47..b6f3eaa 100644 >>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>> config VIDEO_S5P_MIPI_CSIS >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>> depends on REGULATOR >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>>> help >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>> receiver (MIPI-CSIS) devices. >>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>> index 2962de2..edecdb1 100644 >>>> --- a/drivers/phy/Kconfig >>>> +++ b/drivers/phy/Kconfig >>>> @@ -5,7 +5,7 @@ >>>> menu "PHY Subsystem" >>>> >>>> config GENERIC_PHY >>>> - bool "PHY Core" >>>> + bool >>>> help >>>> Generic PHY support. >>>> >>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>> config PHY_RCAR_GEN2 >>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>> depends on ARCH_SHMOBILE >>>> - depends on GENERIC_PHY >>>> + select GENERIC_PHY >>> >>> so some you changed from depends to select... >>> >>>> help >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>> >>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>> index 5ad60e4..e2197e2 100644 >>>> --- a/drivers/usb/host/Kconfig >>>> +++ b/drivers/usb/host/Kconfig >>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>> config USB_EHCI_HCD_STI >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>> depends on ARCH_STI && OF >>>> - select GENERIC_PHY >>>> + depends on GENERIC_PHY >>> >>> while others you changed from select to depends. >>> >>> NAK. >>> >> Felipe, I dont understand your concern, could you please explain it more >> detail? The logic behind the changes is that in cases where there was an >> explicit dependency, I changed it to "depends on" and in other cases I >> changed it to "selects". Thanks > > Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > avoid select altogether. > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an invisible option as part of this change. Thanks ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-26 18:37 ` Arun Ramamurthy (?) (?) @ 2015-05-26 18:39 ` Felipe Balbi -1 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 18:39 UTC (permalink / raw) To: Arun Ramamurthy Cc: balbi, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT [-- Attachment #1: Type: text/plain, Size: 4480 bytes --] On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > Hi > > On 15-05-26 07:19 AM, Felipe Balbi wrote: > >HI, > > > >On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >> > >> > >>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>Hi, > >>> > >>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>dependency, so it is left as "select". > >>>> > >>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>--- > >>>> drivers/ata/Kconfig | 1 - > >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>> drivers/phy/Kconfig | 4 ++-- > >>>> drivers/usb/host/Kconfig | 4 ++-- > >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>> > >>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>index 5f60155..6d2e881 100644 > >>>>--- a/drivers/ata/Kconfig > >>>>+++ b/drivers/ata/Kconfig > >>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>> tristate "Marvell SATA support" > >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>- select GENERIC_PHY > >>>> help > >>>> This option enables support for the Marvell Serial ATA family. > >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>index b7b2e47..b6f3eaa 100644 > >>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>> config VIDEO_S5P_MIPI_CSIS > >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>> depends on REGULATOR > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>>> help > >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>> receiver (MIPI-CSIS) devices. > >>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>index 2962de2..edecdb1 100644 > >>>>--- a/drivers/phy/Kconfig > >>>>+++ b/drivers/phy/Kconfig > >>>>@@ -5,7 +5,7 @@ > >>>> menu "PHY Subsystem" > >>>> > >>>> config GENERIC_PHY > >>>>- bool "PHY Core" > >>>>+ bool > >>>> help > >>>> Generic PHY support. > >>>> > >>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>> config PHY_RCAR_GEN2 > >>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>> depends on ARCH_SHMOBILE > >>>>- depends on GENERIC_PHY > >>>>+ select GENERIC_PHY > >>> > >>>so some you changed from depends to select... > >>> > >>>> help > >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>> > >>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>index 5ad60e4..e2197e2 100644 > >>>>--- a/drivers/usb/host/Kconfig > >>>>+++ b/drivers/usb/host/Kconfig > >>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>> config USB_EHCI_HCD_STI > >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>> depends on ARCH_STI && OF > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>> > >>>while others you changed from select to depends. > >>> > >>>NAK. > >>> > >>Felipe, I dont understand your concern, could you please explain it more > >>detail? The logic behind the changes is that in cases where there was an > >>explicit dependency, I changed it to "depends on" and in other cases I > >>changed it to "selects". Thanks > > > >Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >avoid select altogether. > > > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > invisible option as part of this change. Thanks Then, if the option is invisible, how can you "depend" on it ? It can never be selected by poking around in Kconfig. IMO, it's counterintuitive that you need to enable a PHY driver before you can see your EHCI/OHCI/whatever controller listed in Kconfig. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 18:39 UTC (permalink / raw) To: linux-arm-kernel On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > Hi > > On 15-05-26 07:19 AM, Felipe Balbi wrote: > >HI, > > > >On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >> > >> > >>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>Hi, > >>> > >>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>dependency, so it is left as "select". > >>>> > >>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>--- > >>>> drivers/ata/Kconfig | 1 - > >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>> drivers/phy/Kconfig | 4 ++-- > >>>> drivers/usb/host/Kconfig | 4 ++-- > >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>> > >>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>index 5f60155..6d2e881 100644 > >>>>--- a/drivers/ata/Kconfig > >>>>+++ b/drivers/ata/Kconfig > >>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>> tristate "Marvell SATA support" > >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>- select GENERIC_PHY > >>>> help > >>>> This option enables support for the Marvell Serial ATA family. > >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>index b7b2e47..b6f3eaa 100644 > >>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>> config VIDEO_S5P_MIPI_CSIS > >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>> depends on REGULATOR > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>>> help > >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>> receiver (MIPI-CSIS) devices. > >>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>index 2962de2..edecdb1 100644 > >>>>--- a/drivers/phy/Kconfig > >>>>+++ b/drivers/phy/Kconfig > >>>>@@ -5,7 +5,7 @@ > >>>> menu "PHY Subsystem" > >>>> > >>>> config GENERIC_PHY > >>>>- bool "PHY Core" > >>>>+ bool > >>>> help > >>>> Generic PHY support. > >>>> > >>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>> config PHY_RCAR_GEN2 > >>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>> depends on ARCH_SHMOBILE > >>>>- depends on GENERIC_PHY > >>>>+ select GENERIC_PHY > >>> > >>>so some you changed from depends to select... > >>> > >>>> help > >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>> > >>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>index 5ad60e4..e2197e2 100644 > >>>>--- a/drivers/usb/host/Kconfig > >>>>+++ b/drivers/usb/host/Kconfig > >>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>> config USB_EHCI_HCD_STI > >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>> depends on ARCH_STI && OF > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>> > >>>while others you changed from select to depends. > >>> > >>>NAK. > >>> > >>Felipe, I dont understand your concern, could you please explain it more > >>detail? The logic behind the changes is that in cases where there was an > >>explicit dependency, I changed it to "depends on" and in other cases I > >>changed it to "selects". Thanks > > > >Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >avoid select altogether. > > > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > invisible option as part of this change. Thanks Then, if the option is invisible, how can you "depend" on it ? It can never be selected by poking around in Kconfig. IMO, it's counterintuitive that you need to enable a PHY driver before you can see your EHCI/OHCI/whatever controller listed in Kconfig. -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150526/9139baa1/attachment.sig> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 18:39 UTC (permalink / raw) To: linux-arm-kernel [-- Attachment #1: Type: text/plain, Size: 4480 bytes --] On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > Hi > > On 15-05-26 07:19 AM, Felipe Balbi wrote: > >HI, > > > >On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >> > >> > >>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>Hi, > >>> > >>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>dependency, so it is left as "select". > >>>> > >>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>--- > >>>> drivers/ata/Kconfig | 1 - > >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>> drivers/phy/Kconfig | 4 ++-- > >>>> drivers/usb/host/Kconfig | 4 ++-- > >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>> > >>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>index 5f60155..6d2e881 100644 > >>>>--- a/drivers/ata/Kconfig > >>>>+++ b/drivers/ata/Kconfig > >>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>> tristate "Marvell SATA support" > >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>- select GENERIC_PHY > >>>> help > >>>> This option enables support for the Marvell Serial ATA family. > >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>index b7b2e47..b6f3eaa 100644 > >>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>> config VIDEO_S5P_MIPI_CSIS > >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>> depends on REGULATOR > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>>> help > >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>> receiver (MIPI-CSIS) devices. > >>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>index 2962de2..edecdb1 100644 > >>>>--- a/drivers/phy/Kconfig > >>>>+++ b/drivers/phy/Kconfig > >>>>@@ -5,7 +5,7 @@ > >>>> menu "PHY Subsystem" > >>>> > >>>> config GENERIC_PHY > >>>>- bool "PHY Core" > >>>>+ bool > >>>> help > >>>> Generic PHY support. > >>>> > >>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>> config PHY_RCAR_GEN2 > >>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>> depends on ARCH_SHMOBILE > >>>>- depends on GENERIC_PHY > >>>>+ select GENERIC_PHY > >>> > >>>so some you changed from depends to select... > >>> > >>>> help > >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>> > >>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>index 5ad60e4..e2197e2 100644 > >>>>--- a/drivers/usb/host/Kconfig > >>>>+++ b/drivers/usb/host/Kconfig > >>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>> config USB_EHCI_HCD_STI > >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>> depends on ARCH_STI && OF > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>> > >>>while others you changed from select to depends. > >>> > >>>NAK. > >>> > >>Felipe, I dont understand your concern, could you please explain it more > >>detail? The logic behind the changes is that in cases where there was an > >>explicit dependency, I changed it to "depends on" and in other cases I > >>changed it to "selects". Thanks > > > >Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >avoid select altogether. > > > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > invisible option as part of this change. Thanks Then, if the option is invisible, how can you "depend" on it ? It can never be selected by poking around in Kconfig. IMO, it's counterintuitive that you need to enable a PHY driver before you can see your EHCI/OHCI/whatever controller listed in Kconfig. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-26 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-26 18:39 UTC (permalink / raw) To: Arun Ramamurthy Cc: balbi, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list [-- Attachment #1: Type: text/plain, Size: 4480 bytes --] On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > Hi > > On 15-05-26 07:19 AM, Felipe Balbi wrote: > >HI, > > > >On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >> > >> > >>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>Hi, > >>> > >>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>dependency, so it is left as "select". > >>>> > >>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>--- > >>>> drivers/ata/Kconfig | 1 - > >>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>> drivers/phy/Kconfig | 4 ++-- > >>>> drivers/usb/host/Kconfig | 4 ++-- > >>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>> > >>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>index 5f60155..6d2e881 100644 > >>>>--- a/drivers/ata/Kconfig > >>>>+++ b/drivers/ata/Kconfig > >>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>> tristate "Marvell SATA support" > >>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>- select GENERIC_PHY > >>>> help > >>>> This option enables support for the Marvell Serial ATA family. > >>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>index b7b2e47..b6f3eaa 100644 > >>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>> config VIDEO_S5P_MIPI_CSIS > >>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>> depends on REGULATOR > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>>> help > >>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>> receiver (MIPI-CSIS) devices. > >>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>index 2962de2..edecdb1 100644 > >>>>--- a/drivers/phy/Kconfig > >>>>+++ b/drivers/phy/Kconfig > >>>>@@ -5,7 +5,7 @@ > >>>> menu "PHY Subsystem" > >>>> > >>>> config GENERIC_PHY > >>>>- bool "PHY Core" > >>>>+ bool > >>>> help > >>>> Generic PHY support. > >>>> > >>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>> config PHY_RCAR_GEN2 > >>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>> depends on ARCH_SHMOBILE > >>>>- depends on GENERIC_PHY > >>>>+ select GENERIC_PHY > >>> > >>>so some you changed from depends to select... > >>> > >>>> help > >>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>> > >>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>index 5ad60e4..e2197e2 100644 > >>>>--- a/drivers/usb/host/Kconfig > >>>>+++ b/drivers/usb/host/Kconfig > >>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>> config USB_EHCI_HCD_STI > >>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>> depends on ARCH_STI && OF > >>>>- select GENERIC_PHY > >>>>+ depends on GENERIC_PHY > >>> > >>>while others you changed from select to depends. > >>> > >>>NAK. > >>> > >>Felipe, I dont understand your concern, could you please explain it more > >>detail? The logic behind the changes is that in cases where there was an > >>explicit dependency, I changed it to "depends on" and in other cases I > >>changed it to "selects". Thanks > > > >Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >avoid select altogether. > > > Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > invisible option as part of this change. Thanks Then, if the option is invisible, how can you "depend" on it ? It can never be selected by poking around in Kconfig. IMO, it's counterintuitive that you need to enable a PHY driver before you can see your EHCI/OHCI/whatever controller listed in Kconfig. -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-26 18:39 ` Felipe Balbi (?) (?) @ 2015-05-29 11:34 ` Kishon Vijay Abraham I -1 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 11:34 UTC (permalink / raw) To: balbi, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart Hi Felipe, On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >> Hi >> >> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>> HI, >>> >>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>> >>>> >>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>> Hi, >>>>> >>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>> dependency, so it is left as "select". >>>>>> >>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>> --- >>>>>> drivers/ata/Kconfig | 1 - >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>> >>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>> index 5f60155..6d2e881 100644 >>>>>> --- a/drivers/ata/Kconfig >>>>>> +++ b/drivers/ata/Kconfig >>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>> tristate "Marvell SATA support" >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>> - select GENERIC_PHY >>>>>> help >>>>>> This option enables support for the Marvell Serial ATA family. >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>> index b7b2e47..b6f3eaa 100644 >>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>> depends on REGULATOR >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>>> help >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>> receiver (MIPI-CSIS) devices. >>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>> index 2962de2..edecdb1 100644 >>>>>> --- a/drivers/phy/Kconfig >>>>>> +++ b/drivers/phy/Kconfig >>>>>> @@ -5,7 +5,7 @@ >>>>>> menu "PHY Subsystem" >>>>>> >>>>>> config GENERIC_PHY >>>>>> - bool "PHY Core" >>>>>> + bool >>>>>> help >>>>>> Generic PHY support. >>>>>> >>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>> config PHY_RCAR_GEN2 >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>> depends on ARCH_SHMOBILE >>>>>> - depends on GENERIC_PHY >>>>>> + select GENERIC_PHY >>>>> >>>>> so some you changed from depends to select... >>>>> >>>>>> help >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>> >>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>> index 5ad60e4..e2197e2 100644 >>>>>> --- a/drivers/usb/host/Kconfig >>>>>> +++ b/drivers/usb/host/Kconfig >>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>> config USB_EHCI_HCD_STI >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>> depends on ARCH_STI && OF >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>> >>>>> while others you changed from select to depends. >>>>> >>>>> NAK. >>>>> >>>> Felipe, I dont understand your concern, could you please explain it more >>>> detail? The logic behind the changes is that in cases where there was an >>>> explicit dependency, I changed it to "depends on" and in other cases I >>>> changed it to "selects". Thanks >>> >>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>> avoid select altogether. >>> >> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >> invisible option as part of this change. Thanks > > Then, if the option is invisible, how can you "depend" on it ? It can > never be selected by poking around in Kconfig. IMO, it's > counterintuitive that you need to enable a PHY driver before you can see > your EHCI/OHCI/whatever controller listed in Kconfig. If the controller requires PHY for it to be functional, it is okay to make the controller depend on PHY IMHO. We want to try and minimize the usage of 'select' wherever possible or else 'select' is the most intuitive way. The other option is just to leave the 'depends on' and let the user select PHY. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 11:34 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 11:46 UTC (permalink / raw) To: linux-arm-kernel Hi Felipe, On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >> Hi >> >> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>> HI, >>> >>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>> >>>> >>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>> Hi, >>>>> >>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>> dependency, so it is left as "select". >>>>>> >>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>> --- >>>>>> drivers/ata/Kconfig | 1 - >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>> >>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>> index 5f60155..6d2e881 100644 >>>>>> --- a/drivers/ata/Kconfig >>>>>> +++ b/drivers/ata/Kconfig >>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>> tristate "Marvell SATA support" >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>> - select GENERIC_PHY >>>>>> help >>>>>> This option enables support for the Marvell Serial ATA family. >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>> index b7b2e47..b6f3eaa 100644 >>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>> depends on REGULATOR >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>>> help >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>> receiver (MIPI-CSIS) devices. >>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>> index 2962de2..edecdb1 100644 >>>>>> --- a/drivers/phy/Kconfig >>>>>> +++ b/drivers/phy/Kconfig >>>>>> @@ -5,7 +5,7 @@ >>>>>> menu "PHY Subsystem" >>>>>> >>>>>> config GENERIC_PHY >>>>>> - bool "PHY Core" >>>>>> + bool >>>>>> help >>>>>> Generic PHY support. >>>>>> >>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>> config PHY_RCAR_GEN2 >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>> depends on ARCH_SHMOBILE >>>>>> - depends on GENERIC_PHY >>>>>> + select GENERIC_PHY >>>>> >>>>> so some you changed from depends to select... >>>>> >>>>>> help >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>> >>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>> index 5ad60e4..e2197e2 100644 >>>>>> --- a/drivers/usb/host/Kconfig >>>>>> +++ b/drivers/usb/host/Kconfig >>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>> config USB_EHCI_HCD_STI >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>> depends on ARCH_STI && OF >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>> >>>>> while others you changed from select to depends. >>>>> >>>>> NAK. >>>>> >>>> Felipe, I dont understand your concern, could you please explain it more >>>> detail? The logic behind the changes is that in cases where there was an >>>> explicit dependency, I changed it to "depends on" and in other cases I >>>> changed it to "selects". Thanks >>> >>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>> avoid select altogether. >>> >> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >> invisible option as part of this change. Thanks > > Then, if the option is invisible, how can you "depend" on it ? It can > never be selected by poking around in Kconfig. IMO, it's > counterintuitive that you need to enable a PHY driver before you can see > your EHCI/OHCI/whatever controller listed in Kconfig. If the controller requires PHY for it to be functional, it is okay to make the controller depend on PHY IMHO. We want to try and minimize the usage of 'select' wherever possible or else 'select' is the most intuitive way. The other option is just to leave the 'depends on' and let the user select PHY. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 11:34 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 11:34 UTC (permalink / raw) To: linux-arm-kernel Hi Felipe, On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >> Hi >> >> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>> HI, >>> >>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>> >>>> >>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>> Hi, >>>>> >>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>> dependency, so it is left as "select". >>>>>> >>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>> --- >>>>>> drivers/ata/Kconfig | 1 - >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>> >>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>> index 5f60155..6d2e881 100644 >>>>>> --- a/drivers/ata/Kconfig >>>>>> +++ b/drivers/ata/Kconfig >>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>> tristate "Marvell SATA support" >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>> - select GENERIC_PHY >>>>>> help >>>>>> This option enables support for the Marvell Serial ATA family. >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>> index b7b2e47..b6f3eaa 100644 >>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>> depends on REGULATOR >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>>> help >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>> receiver (MIPI-CSIS) devices. >>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>> index 2962de2..edecdb1 100644 >>>>>> --- a/drivers/phy/Kconfig >>>>>> +++ b/drivers/phy/Kconfig >>>>>> @@ -5,7 +5,7 @@ >>>>>> menu "PHY Subsystem" >>>>>> >>>>>> config GENERIC_PHY >>>>>> - bool "PHY Core" >>>>>> + bool >>>>>> help >>>>>> Generic PHY support. >>>>>> >>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>> config PHY_RCAR_GEN2 >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>> depends on ARCH_SHMOBILE >>>>>> - depends on GENERIC_PHY >>>>>> + select GENERIC_PHY >>>>> >>>>> so some you changed from depends to select... >>>>> >>>>>> help >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>> >>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>> index 5ad60e4..e2197e2 100644 >>>>>> --- a/drivers/usb/host/Kconfig >>>>>> +++ b/drivers/usb/host/Kconfig >>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>> config USB_EHCI_HCD_STI >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>> depends on ARCH_STI && OF >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>> >>>>> while others you changed from select to depends. >>>>> >>>>> NAK. >>>>> >>>> Felipe, I dont understand your concern, could you please explain it more >>>> detail? The logic behind the changes is that in cases where there was an >>>> explicit dependency, I changed it to "depends on" and in other cases I >>>> changed it to "selects". Thanks >>> >>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>> avoid select altogether. >>> >> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >> invisible option as part of this change. Thanks > > Then, if the option is invisible, how can you "depend" on it ? It can > never be selected by poking around in Kconfig. IMO, it's > counterintuitive that you need to enable a PHY driver before you can see > your EHCI/OHCI/whatever controller listed in Kconfig. If the controller requires PHY for it to be functional, it is okay to make the controller depend on PHY IMHO. We want to try and minimize the usage of 'select' wherever possible or else 'select' is the most intuitive way. The other option is just to leave the 'depends on' and let the user select PHY. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 11:34 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 11:34 UTC (permalink / raw) To: balbi, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi Felipe, On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >> Hi >> >> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>> HI, >>> >>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>> >>>> >>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>> Hi, >>>>> >>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>> dependency, so it is left as "select". >>>>>> >>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>> --- >>>>>> drivers/ata/Kconfig | 1 - >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>> >>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>> index 5f60155..6d2e881 100644 >>>>>> --- a/drivers/ata/Kconfig >>>>>> +++ b/drivers/ata/Kconfig >>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>> tristate "Marvell SATA support" >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>> - select GENERIC_PHY >>>>>> help >>>>>> This option enables support for the Marvell Serial ATA family. >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>> index b7b2e47..b6f3eaa 100644 >>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>> depends on REGULATOR >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>>> help >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>> receiver (MIPI-CSIS) devices. >>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>> index 2962de2..edecdb1 100644 >>>>>> --- a/drivers/phy/Kconfig >>>>>> +++ b/drivers/phy/Kconfig >>>>>> @@ -5,7 +5,7 @@ >>>>>> menu "PHY Subsystem" >>>>>> >>>>>> config GENERIC_PHY >>>>>> - bool "PHY Core" >>>>>> + bool >>>>>> help >>>>>> Generic PHY support. >>>>>> >>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>> config PHY_RCAR_GEN2 >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>> depends on ARCH_SHMOBILE >>>>>> - depends on GENERIC_PHY >>>>>> + select GENERIC_PHY >>>>> >>>>> so some you changed from depends to select... >>>>> >>>>>> help >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>> >>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>> index 5ad60e4..e2197e2 100644 >>>>>> --- a/drivers/usb/host/Kconfig >>>>>> +++ b/drivers/usb/host/Kconfig >>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>> config USB_EHCI_HCD_STI >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>> depends on ARCH_STI && OF >>>>>> - select GENERIC_PHY >>>>>> + depends on GENERIC_PHY >>>>> >>>>> while others you changed from select to depends. >>>>> >>>>> NAK. >>>>> >>>> Felipe, I dont understand your concern, could you please explain it more >>>> detail? The logic behind the changes is that in cases where there was an >>>> explicit dependency, I changed it to "depends on" and in other cases I >>>> changed it to "selects". Thanks >>> >>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>> avoid select altogether. >>> >> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >> invisible option as part of this change. Thanks > > Then, if the option is invisible, how can you "depend" on it ? It can > never be selected by poking around in Kconfig. IMO, it's > counterintuitive that you need to enable a PHY driver before you can see > your EHCI/OHCI/whatever controller listed in Kconfig. If the controller requires PHY for it to be functional, it is okay to make the controller depend on PHY IMHO. We want to try and minimize the usage of 'select' wherever possible or else 'select' is the most intuitive way. The other option is just to leave the 'depends on' and let the user select PHY. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-29 11:34 ` Kishon Vijay Abraham I (?) (?) @ 2015-05-29 15:04 ` Felipe Balbi -1 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-29 15:04 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: balbi, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT [-- Attachment #1: Type: text/plain, Size: 5275 bytes --] Hi, On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > Hi Felipe, > > On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>Hi > >> > >>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>HI, > >>> > >>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>> > >>>> > >>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>Hi, > >>>>> > >>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>dependency, so it is left as "select". > >>>>>> > >>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>--- > >>>>>> drivers/ata/Kconfig | 1 - > >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>> > >>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>index 5f60155..6d2e881 100644 > >>>>>>--- a/drivers/ata/Kconfig > >>>>>>+++ b/drivers/ata/Kconfig > >>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>> tristate "Marvell SATA support" > >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>- select GENERIC_PHY > >>>>>> help > >>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>> depends on REGULATOR > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>>> help > >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>> receiver (MIPI-CSIS) devices. > >>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>index 2962de2..edecdb1 100644 > >>>>>>--- a/drivers/phy/Kconfig > >>>>>>+++ b/drivers/phy/Kconfig > >>>>>>@@ -5,7 +5,7 @@ > >>>>>> menu "PHY Subsystem" > >>>>>> > >>>>>> config GENERIC_PHY > >>>>>>- bool "PHY Core" > >>>>>>+ bool > >>>>>> help > >>>>>> Generic PHY support. > >>>>>> > >>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>> config PHY_RCAR_GEN2 > >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>> depends on ARCH_SHMOBILE > >>>>>>- depends on GENERIC_PHY > >>>>>>+ select GENERIC_PHY > >>>>> > >>>>>so some you changed from depends to select... > >>>>> > >>>>>> help > >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>> > >>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>> config USB_EHCI_HCD_STI > >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>> depends on ARCH_STI && OF > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>> > >>>>>while others you changed from select to depends. > >>>>> > >>>>>NAK. > >>>>> > >>>>Felipe, I dont understand your concern, could you please explain it more > >>>>detail? The logic behind the changes is that in cases where there was an > >>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>changed it to "selects". Thanks > >>> > >>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>avoid select altogether. > >>> > >>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>invisible option as part of this change. Thanks > > > >Then, if the option is invisible, how can you "depend" on it ? It can > >never be selected by poking around in Kconfig. IMO, it's > >counterintuitive that you need to enable a PHY driver before you can see > >your EHCI/OHCI/whatever controller listed in Kconfig. > > If the controller requires PHY for it to be functional, it is okay to make > the controller depend on PHY IMHO. We want to try and minimize the usage of > 'select' wherever possible or else 'select' is the most intuitive way. The > other option is just to leave the 'depends on' and let the user select PHY. How can you 'depend' on something that the user can't select by navigating through Kconfig ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 15:04 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-29 15:04 UTC (permalink / raw) To: linux-arm-kernel Hi, On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > Hi Felipe, > > On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>Hi > >> > >>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>HI, > >>> > >>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>> > >>>> > >>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>Hi, > >>>>> > >>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>dependency, so it is left as "select". > >>>>>> > >>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>--- > >>>>>> drivers/ata/Kconfig | 1 - > >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>> > >>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>index 5f60155..6d2e881 100644 > >>>>>>--- a/drivers/ata/Kconfig > >>>>>>+++ b/drivers/ata/Kconfig > >>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>> tristate "Marvell SATA support" > >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>- select GENERIC_PHY > >>>>>> help > >>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>> depends on REGULATOR > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>>> help > >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>> receiver (MIPI-CSIS) devices. > >>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>index 2962de2..edecdb1 100644 > >>>>>>--- a/drivers/phy/Kconfig > >>>>>>+++ b/drivers/phy/Kconfig > >>>>>>@@ -5,7 +5,7 @@ > >>>>>> menu "PHY Subsystem" > >>>>>> > >>>>>> config GENERIC_PHY > >>>>>>- bool "PHY Core" > >>>>>>+ bool > >>>>>> help > >>>>>> Generic PHY support. > >>>>>> > >>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>> config PHY_RCAR_GEN2 > >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>> depends on ARCH_SHMOBILE > >>>>>>- depends on GENERIC_PHY > >>>>>>+ select GENERIC_PHY > >>>>> > >>>>>so some you changed from depends to select... > >>>>> > >>>>>> help > >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>> > >>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>> config USB_EHCI_HCD_STI > >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>> depends on ARCH_STI && OF > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>> > >>>>>while others you changed from select to depends. > >>>>> > >>>>>NAK. > >>>>> > >>>>Felipe, I dont understand your concern, could you please explain it more > >>>>detail? The logic behind the changes is that in cases where there was an > >>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>changed it to "selects". Thanks > >>> > >>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>avoid select altogether. > >>> > >>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>invisible option as part of this change. Thanks > > > >Then, if the option is invisible, how can you "depend" on it ? It can > >never be selected by poking around in Kconfig. IMO, it's > >counterintuitive that you need to enable a PHY driver before you can see > >your EHCI/OHCI/whatever controller listed in Kconfig. > > If the controller requires PHY for it to be functional, it is okay to make > the controller depend on PHY IMHO. We want to try and minimize the usage of > 'select' wherever possible or else 'select' is the most intuitive way. The > other option is just to leave the 'depends on' and let the user select PHY. How can you 'depend' on something that the user can't select by navigating through Kconfig ? -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150529/6c491985/attachment-0001.sig> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 15:04 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-29 15:04 UTC (permalink / raw) To: linux-arm-kernel [-- Attachment #1: Type: text/plain, Size: 5275 bytes --] Hi, On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > Hi Felipe, > > On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>Hi > >> > >>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>HI, > >>> > >>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>> > >>>> > >>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>Hi, > >>>>> > >>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>dependency, so it is left as "select". > >>>>>> > >>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>--- > >>>>>> drivers/ata/Kconfig | 1 - > >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>> > >>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>index 5f60155..6d2e881 100644 > >>>>>>--- a/drivers/ata/Kconfig > >>>>>>+++ b/drivers/ata/Kconfig > >>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>> tristate "Marvell SATA support" > >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>- select GENERIC_PHY > >>>>>> help > >>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>> depends on REGULATOR > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>>> help > >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>> receiver (MIPI-CSIS) devices. > >>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>index 2962de2..edecdb1 100644 > >>>>>>--- a/drivers/phy/Kconfig > >>>>>>+++ b/drivers/phy/Kconfig > >>>>>>@@ -5,7 +5,7 @@ > >>>>>> menu "PHY Subsystem" > >>>>>> > >>>>>> config GENERIC_PHY > >>>>>>- bool "PHY Core" > >>>>>>+ bool > >>>>>> help > >>>>>> Generic PHY support. > >>>>>> > >>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>> config PHY_RCAR_GEN2 > >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>> depends on ARCH_SHMOBILE > >>>>>>- depends on GENERIC_PHY > >>>>>>+ select GENERIC_PHY > >>>>> > >>>>>so some you changed from depends to select... > >>>>> > >>>>>> help > >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>> > >>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>> config USB_EHCI_HCD_STI > >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>> depends on ARCH_STI && OF > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>> > >>>>>while others you changed from select to depends. > >>>>> > >>>>>NAK. > >>>>> > >>>>Felipe, I dont understand your concern, could you please explain it more > >>>>detail? The logic behind the changes is that in cases where there was an > >>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>changed it to "selects". Thanks > >>> > >>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>avoid select altogether. > >>> > >>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>invisible option as part of this change. Thanks > > > >Then, if the option is invisible, how can you "depend" on it ? It can > >never be selected by poking around in Kconfig. IMO, it's > >counterintuitive that you need to enable a PHY driver before you can see > >your EHCI/OHCI/whatever controller listed in Kconfig. > > If the controller requires PHY for it to be functional, it is okay to make > the controller depend on PHY IMHO. We want to try and minimize the usage of > 'select' wherever possible or else 'select' is the most intuitive way. The > other option is just to leave the 'depends on' and let the user select PHY. How can you 'depend' on something that the user can't select by navigating through Kconfig ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 15:04 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-05-29 15:04 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: balbi, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list [-- Attachment #1: Type: text/plain, Size: 5275 bytes --] Hi, On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > Hi Felipe, > > On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>Hi > >> > >>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>HI, > >>> > >>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>> > >>>> > >>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>Hi, > >>>>> > >>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>dependency, so it is left as "select". > >>>>>> > >>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>--- > >>>>>> drivers/ata/Kconfig | 1 - > >>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>> > >>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>index 5f60155..6d2e881 100644 > >>>>>>--- a/drivers/ata/Kconfig > >>>>>>+++ b/drivers/ata/Kconfig > >>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>> tristate "Marvell SATA support" > >>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>- select GENERIC_PHY > >>>>>> help > >>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>> depends on REGULATOR > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>>> help > >>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>> receiver (MIPI-CSIS) devices. > >>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>index 2962de2..edecdb1 100644 > >>>>>>--- a/drivers/phy/Kconfig > >>>>>>+++ b/drivers/phy/Kconfig > >>>>>>@@ -5,7 +5,7 @@ > >>>>>> menu "PHY Subsystem" > >>>>>> > >>>>>> config GENERIC_PHY > >>>>>>- bool "PHY Core" > >>>>>>+ bool > >>>>>> help > >>>>>> Generic PHY support. > >>>>>> > >>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>> config PHY_RCAR_GEN2 > >>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>> depends on ARCH_SHMOBILE > >>>>>>- depends on GENERIC_PHY > >>>>>>+ select GENERIC_PHY > >>>>> > >>>>>so some you changed from depends to select... > >>>>> > >>>>>> help > >>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>> > >>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>> config USB_EHCI_HCD_STI > >>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>> depends on ARCH_STI && OF > >>>>>>- select GENERIC_PHY > >>>>>>+ depends on GENERIC_PHY > >>>>> > >>>>>while others you changed from select to depends. > >>>>> > >>>>>NAK. > >>>>> > >>>>Felipe, I dont understand your concern, could you please explain it more > >>>>detail? The logic behind the changes is that in cases where there was an > >>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>changed it to "selects". Thanks > >>> > >>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>avoid select altogether. > >>> > >>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>invisible option as part of this change. Thanks > > > >Then, if the option is invisible, how can you "depend" on it ? It can > >never be selected by poking around in Kconfig. IMO, it's > >counterintuitive that you need to enable a PHY driver before you can see > >your EHCI/OHCI/whatever controller listed in Kconfig. > > If the controller requires PHY for it to be functional, it is okay to make > the controller depend on PHY IMHO. We want to try and minimize the usage of > 'select' wherever possible or else 'select' is the most intuitive way. The > other option is just to leave the 'depends on' and let the user select PHY. How can you 'depend' on something that the user can't select by navigating through Kconfig ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-29 15:04 ` Felipe Balbi (?) (?) @ 2015-06-01 12:52 ` Kishon Vijay Abraham I -1 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-06-01 12:52 UTC (permalink / raw) To: balbi Cc: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Hi, On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > Hi, > > On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: >> Hi Felipe, >> >> On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: >>> On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >>>> Hi >>>> >>>> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>>>> HI, >>>>> >>>>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>>>> >>>>>> >>>>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>>>> Hi, >>>>>>> >>>>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>>>> dependency, so it is left as "select". >>>>>>>> >>>>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>>>> --- >>>>>>>> drivers/ata/Kconfig | 1 - >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>>>> >>>>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>>>> index 5f60155..6d2e881 100644 >>>>>>>> --- a/drivers/ata/Kconfig >>>>>>>> +++ b/drivers/ata/Kconfig >>>>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>>>> tristate "Marvell SATA support" >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>>>> - select GENERIC_PHY >>>>>>>> help >>>>>>>> This option enables support for the Marvell Serial ATA family. >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> index b7b2e47..b6f3eaa 100644 >>>>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>>>> depends on REGULATOR >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>>> help >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>>>> receiver (MIPI-CSIS) devices. >>>>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>>>> index 2962de2..edecdb1 100644 >>>>>>>> --- a/drivers/phy/Kconfig >>>>>>>> +++ b/drivers/phy/Kconfig >>>>>>>> @@ -5,7 +5,7 @@ >>>>>>>> menu "PHY Subsystem" >>>>>>>> >>>>>>>> config GENERIC_PHY >>>>>>>> - bool "PHY Core" >>>>>>>> + bool >>>>>>>> help >>>>>>>> Generic PHY support. >>>>>>>> >>>>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>>>> config PHY_RCAR_GEN2 >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>>>> depends on ARCH_SHMOBILE >>>>>>>> - depends on GENERIC_PHY >>>>>>>> + select GENERIC_PHY >>>>>>> >>>>>>> so some you changed from depends to select... >>>>>>> >>>>>>>> help >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>>>> >>>>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>>>> index 5ad60e4..e2197e2 100644 >>>>>>>> --- a/drivers/usb/host/Kconfig >>>>>>>> +++ b/drivers/usb/host/Kconfig >>>>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>>>> config USB_EHCI_HCD_STI >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>>>> depends on ARCH_STI && OF >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>> >>>>>>> while others you changed from select to depends. >>>>>>> >>>>>>> NAK. >>>>>>> >>>>>> Felipe, I dont understand your concern, could you please explain it more >>>>>> detail? The logic behind the changes is that in cases where there was an >>>>>> explicit dependency, I changed it to "depends on" and in other cases I >>>>>> changed it to "selects". Thanks >>>>> >>>>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>>>> avoid select altogether. >>>>> >>>> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >>>> invisible option as part of this change. Thanks >>> >>> Then, if the option is invisible, how can you "depend" on it ? It can >>> never be selected by poking around in Kconfig. IMO, it's >>> counterintuitive that you need to enable a PHY driver before you can see >>> your EHCI/OHCI/whatever controller listed in Kconfig. >> >> If the controller requires PHY for it to be functional, it is okay to make >> the controller depend on PHY IMHO. We want to try and minimize the usage of >> 'select' wherever possible or else 'select' is the most intuitive way. The >> other option is just to leave the 'depends on' and let the user select PHY. > > How can you 'depend' on something that the user can't select by > navigating through Kconfig ? hmm... Actually it's selected when the user selects the PHY driver. Maybe we should directly depend on the PHY driver instead of Generic PHY? Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 12:52 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-06-01 12:54 UTC (permalink / raw) To: linux-arm-kernel Hi, On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > Hi, > > On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: >> Hi Felipe, >> >> On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: >>> On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >>>> Hi >>>> >>>> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>>>> HI, >>>>> >>>>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>>>> >>>>>> >>>>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>>>> Hi, >>>>>>> >>>>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>>>> dependency, so it is left as "select". >>>>>>>> >>>>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>>>> --- >>>>>>>> drivers/ata/Kconfig | 1 - >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>>>> >>>>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>>>> index 5f60155..6d2e881 100644 >>>>>>>> --- a/drivers/ata/Kconfig >>>>>>>> +++ b/drivers/ata/Kconfig >>>>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>>>> tristate "Marvell SATA support" >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>>>> - select GENERIC_PHY >>>>>>>> help >>>>>>>> This option enables support for the Marvell Serial ATA family. >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> index b7b2e47..b6f3eaa 100644 >>>>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>>>> depends on REGULATOR >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>>> help >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>>>> receiver (MIPI-CSIS) devices. >>>>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>>>> index 2962de2..edecdb1 100644 >>>>>>>> --- a/drivers/phy/Kconfig >>>>>>>> +++ b/drivers/phy/Kconfig >>>>>>>> @@ -5,7 +5,7 @@ >>>>>>>> menu "PHY Subsystem" >>>>>>>> >>>>>>>> config GENERIC_PHY >>>>>>>> - bool "PHY Core" >>>>>>>> + bool >>>>>>>> help >>>>>>>> Generic PHY support. >>>>>>>> >>>>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>>>> config PHY_RCAR_GEN2 >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>>>> depends on ARCH_SHMOBILE >>>>>>>> - depends on GENERIC_PHY >>>>>>>> + select GENERIC_PHY >>>>>>> >>>>>>> so some you changed from depends to select... >>>>>>> >>>>>>>> help >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>>>> >>>>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>>>> index 5ad60e4..e2197e2 100644 >>>>>>>> --- a/drivers/usb/host/Kconfig >>>>>>>> +++ b/drivers/usb/host/Kconfig >>>>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>>>> config USB_EHCI_HCD_STI >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>>>> depends on ARCH_STI && OF >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>> >>>>>>> while others you changed from select to depends. >>>>>>> >>>>>>> NAK. >>>>>>> >>>>>> Felipe, I dont understand your concern, could you please explain it more >>>>>> detail? The logic behind the changes is that in cases where there was an >>>>>> explicit dependency, I changed it to "depends on" and in other cases I >>>>>> changed it to "selects". Thanks >>>>> >>>>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>>>> avoid select altogether. >>>>> >>>> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >>>> invisible option as part of this change. Thanks >>> >>> Then, if the option is invisible, how can you "depend" on it ? It can >>> never be selected by poking around in Kconfig. IMO, it's >>> counterintuitive that you need to enable a PHY driver before you can see >>> your EHCI/OHCI/whatever controller listed in Kconfig. >> >> If the controller requires PHY for it to be functional, it is okay to make >> the controller depend on PHY IMHO. We want to try and minimize the usage of >> 'select' wherever possible or else 'select' is the most intuitive way. The >> other option is just to leave the 'depends on' and let the user select PHY. > > How can you 'depend' on something that the user can't select by > navigating through Kconfig ? hmm... Actually it's selected when the user selects the PHY driver. Maybe we should directly depend on the PHY driver instead of Generic PHY? Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 12:52 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-06-01 12:52 UTC (permalink / raw) To: linux-arm-kernel Hi, On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > Hi, > > On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: >> Hi Felipe, >> >> On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: >>> On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >>>> Hi >>>> >>>> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>>>> HI, >>>>> >>>>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>>>> >>>>>> >>>>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>>>> Hi, >>>>>>> >>>>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>>>> dependency, so it is left as "select". >>>>>>>> >>>>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>>>> --- >>>>>>>> drivers/ata/Kconfig | 1 - >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>>>> >>>>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>>>> index 5f60155..6d2e881 100644 >>>>>>>> --- a/drivers/ata/Kconfig >>>>>>>> +++ b/drivers/ata/Kconfig >>>>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>>>> tristate "Marvell SATA support" >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>>>> - select GENERIC_PHY >>>>>>>> help >>>>>>>> This option enables support for the Marvell Serial ATA family. >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> index b7b2e47..b6f3eaa 100644 >>>>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>>>> depends on REGULATOR >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>>> help >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>>>> receiver (MIPI-CSIS) devices. >>>>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>>>> index 2962de2..edecdb1 100644 >>>>>>>> --- a/drivers/phy/Kconfig >>>>>>>> +++ b/drivers/phy/Kconfig >>>>>>>> @@ -5,7 +5,7 @@ >>>>>>>> menu "PHY Subsystem" >>>>>>>> >>>>>>>> config GENERIC_PHY >>>>>>>> - bool "PHY Core" >>>>>>>> + bool >>>>>>>> help >>>>>>>> Generic PHY support. >>>>>>>> >>>>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>>>> config PHY_RCAR_GEN2 >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>>>> depends on ARCH_SHMOBILE >>>>>>>> - depends on GENERIC_PHY >>>>>>>> + select GENERIC_PHY >>>>>>> >>>>>>> so some you changed from depends to select... >>>>>>> >>>>>>>> help >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>>>> >>>>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>>>> index 5ad60e4..e2197e2 100644 >>>>>>>> --- a/drivers/usb/host/Kconfig >>>>>>>> +++ b/drivers/usb/host/Kconfig >>>>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>>>> config USB_EHCI_HCD_STI >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>>>> depends on ARCH_STI && OF >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>> >>>>>>> while others you changed from select to depends. >>>>>>> >>>>>>> NAK. >>>>>>> >>>>>> Felipe, I dont understand your concern, could you please explain it more >>>>>> detail? The logic behind the changes is that in cases where there was an >>>>>> explicit dependency, I changed it to "depends on" and in other cases I >>>>>> changed it to "selects". Thanks >>>>> >>>>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>>>> avoid select altogether. >>>>> >>>> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >>>> invisible option as part of this change. Thanks >>> >>> Then, if the option is invisible, how can you "depend" on it ? It can >>> never be selected by poking around in Kconfig. IMO, it's >>> counterintuitive that you need to enable a PHY driver before you can see >>> your EHCI/OHCI/whatever controller listed in Kconfig. >> >> If the controller requires PHY for it to be functional, it is okay to make >> the controller depend on PHY IMHO. We want to try and minimize the usage of >> 'select' wherever possible or else 'select' is the most intuitive way. The >> other option is just to leave the 'depends on' and let the user select PHY. > > How can you 'depend' on something that the user can't select by > navigating through Kconfig ? hmm... Actually it's selected when the user selects the PHY driver. Maybe we should directly depend on the PHY driver instead of Generic PHY? Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 12:52 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-06-01 12:52 UTC (permalink / raw) To: balbi Cc: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > Hi, > > On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: >> Hi Felipe, >> >> On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: >>> On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: >>>> Hi >>>> >>>> On 15-05-26 07:19 AM, Felipe Balbi wrote: >>>>> HI, >>>>> >>>>> On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: >>>>>> >>>>>> >>>>>> On 15-05-14 05:52 PM, Felipe Balbi wrote: >>>>>>> Hi, >>>>>>> >>>>>>> On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: >>>>>>>> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >>>>>>>> is only recommended when the config is not visible, GENERIC_PHY is changed >>>>>>>> an invisible option. To maintain consistency, all phy providers are changed >>>>>>>> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >>>>>>>> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >>>>>>>> dependency, so it is left as "select". >>>>>>>> >>>>>>>> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> >>>>>>>> --- >>>>>>>> drivers/ata/Kconfig | 1 - >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- >>>>>>>> drivers/phy/Kconfig | 4 ++-- >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) >>>>>>>> >>>>>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>>>>> index 5f60155..6d2e881 100644 >>>>>>>> --- a/drivers/ata/Kconfig >>>>>>>> +++ b/drivers/ata/Kconfig >>>>>>>> @@ -301,7 +301,6 @@ config SATA_MV >>>>>>>> tristate "Marvell SATA support" >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST >>>>>>>> - select GENERIC_PHY >>>>>>>> help >>>>>>>> This option enables support for the Marvell Serial ATA family. >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, >>>>>>>> diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> index b7b2e47..b6f3eaa 100644 >>>>>>>> --- a/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> +++ b/drivers/media/platform/exynos4-is/Kconfig >>>>>>>> @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC >>>>>>>> config VIDEO_S5P_MIPI_CSIS >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" >>>>>>>> depends on REGULATOR >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>>> help >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 >>>>>>>> receiver (MIPI-CSIS) devices. >>>>>>>> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig >>>>>>>> index 2962de2..edecdb1 100644 >>>>>>>> --- a/drivers/phy/Kconfig >>>>>>>> +++ b/drivers/phy/Kconfig >>>>>>>> @@ -5,7 +5,7 @@ >>>>>>>> menu "PHY Subsystem" >>>>>>>> >>>>>>>> config GENERIC_PHY >>>>>>>> - bool "PHY Core" >>>>>>>> + bool >>>>>>>> help >>>>>>>> Generic PHY support. >>>>>>>> >>>>>>>> @@ -72,7 +72,7 @@ config PHY_MIPHY365X >>>>>>>> config PHY_RCAR_GEN2 >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" >>>>>>>> depends on ARCH_SHMOBILE >>>>>>>> - depends on GENERIC_PHY >>>>>>>> + select GENERIC_PHY >>>>>>> >>>>>>> so some you changed from depends to select... >>>>>>> >>>>>>>> help >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. >>>>>>>> >>>>>>>> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >>>>>>>> index 5ad60e4..e2197e2 100644 >>>>>>>> --- a/drivers/usb/host/Kconfig >>>>>>>> +++ b/drivers/usb/host/Kconfig >>>>>>>> @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR >>>>>>>> config USB_EHCI_HCD_STI >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" >>>>>>>> depends on ARCH_STI && OF >>>>>>>> - select GENERIC_PHY >>>>>>>> + depends on GENERIC_PHY >>>>>>> >>>>>>> while others you changed from select to depends. >>>>>>> >>>>>>> NAK. >>>>>>> >>>>>> Felipe, I dont understand your concern, could you please explain it more >>>>>> detail? The logic behind the changes is that in cases where there was an >>>>>> explicit dependency, I changed it to "depends on" and in other cases I >>>>>> changed it to "selects". Thanks >>>>> >>>>> Since GENERIC_PHY is visible from Kconfig, it would be much nicer to >>>>> avoid select altogether. >>>>> >>>> Felipe, after discussion with the maintainers, I have made GENERIC_PHY an >>>> invisible option as part of this change. Thanks >>> >>> Then, if the option is invisible, how can you "depend" on it ? It can >>> never be selected by poking around in Kconfig. IMO, it's >>> counterintuitive that you need to enable a PHY driver before you can see >>> your EHCI/OHCI/whatever controller listed in Kconfig. >> >> If the controller requires PHY for it to be functional, it is okay to make >> the controller depend on PHY IMHO. We want to try and minimize the usage of >> 'select' wherever possible or else 'select' is the most intuitive way. The >> other option is just to leave the 'depends on' and let the user select PHY. > > How can you 'depend' on something that the user can't select by > navigating through Kconfig ? hmm... Actually it's selected when the user selects the PHY driver. Maybe we should directly depend on the PHY driver instead of Generic PHY? Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-06-01 12:52 ` Kishon Vijay Abraham I (?) (?) @ 2015-06-01 18:39 ` Felipe Balbi -1 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-06-01 18:39 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: balbi, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT [-- Attachment #1: Type: text/plain, Size: 5984 bytes --] On Mon, Jun 01, 2015 at 06:22:41PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > >>Hi Felipe, > >> > >>On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >>>On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>>>Hi > >>>> > >>>>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>>>HI, > >>>>> > >>>>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>>>> > >>>>>> > >>>>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>>>Hi, > >>>>>>> > >>>>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>>>dependency, so it is left as "select". > >>>>>>>> > >>>>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>>>--- > >>>>>>>> drivers/ata/Kconfig | 1 - > >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>>>> > >>>>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>>>index 5f60155..6d2e881 100644 > >>>>>>>>--- a/drivers/ata/Kconfig > >>>>>>>>+++ b/drivers/ata/Kconfig > >>>>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>>>> tristate "Marvell SATA support" > >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>>>- select GENERIC_PHY > >>>>>>>> help > >>>>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>>>> depends on REGULATOR > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>>> help > >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>>>> receiver (MIPI-CSIS) devices. > >>>>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>>>index 2962de2..edecdb1 100644 > >>>>>>>>--- a/drivers/phy/Kconfig > >>>>>>>>+++ b/drivers/phy/Kconfig > >>>>>>>>@@ -5,7 +5,7 @@ > >>>>>>>> menu "PHY Subsystem" > >>>>>>>> > >>>>>>>> config GENERIC_PHY > >>>>>>>>- bool "PHY Core" > >>>>>>>>+ bool > >>>>>>>> help > >>>>>>>> Generic PHY support. > >>>>>>>> > >>>>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>>>> config PHY_RCAR_GEN2 > >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>>>> depends on ARCH_SHMOBILE > >>>>>>>>- depends on GENERIC_PHY > >>>>>>>>+ select GENERIC_PHY > >>>>>>> > >>>>>>>so some you changed from depends to select... > >>>>>>> > >>>>>>>> help > >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>>>> > >>>>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>>>> config USB_EHCI_HCD_STI > >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>>>> depends on ARCH_STI && OF > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>> > >>>>>>>while others you changed from select to depends. > >>>>>>> > >>>>>>>NAK. > >>>>>>> > >>>>>>Felipe, I dont understand your concern, could you please explain it more > >>>>>>detail? The logic behind the changes is that in cases where there was an > >>>>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>>>changed it to "selects". Thanks > >>>>> > >>>>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>>>avoid select altogether. > >>>>> > >>>>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>>>invisible option as part of this change. Thanks > >>> > >>>Then, if the option is invisible, how can you "depend" on it ? It can > >>>never be selected by poking around in Kconfig. IMO, it's > >>>counterintuitive that you need to enable a PHY driver before you can see > >>>your EHCI/OHCI/whatever controller listed in Kconfig. > >> > >>If the controller requires PHY for it to be functional, it is okay to make > >>the controller depend on PHY IMHO. We want to try and minimize the usage of > >>'select' wherever possible or else 'select' is the most intuitive way. The > >>other option is just to leave the 'depends on' and let the user select PHY. > > > >How can you 'depend' on something that the user can't select by > >navigating through Kconfig ? > > hmm... Actually it's selected when the user selects the PHY driver. that's my point, don't you think it's a little counter-intuitive ? > Maybe we should directly depend on the PHY driver instead of Generic > PHY? maybe... But then what do you do when you have different boards using different PHYs ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-06-01 18:39 UTC (permalink / raw) To: linux-arm-kernel On Mon, Jun 01, 2015 at 06:22:41PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > >>Hi Felipe, > >> > >>On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >>>On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>>>Hi > >>>> > >>>>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>>>HI, > >>>>> > >>>>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>>>> > >>>>>> > >>>>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>>>Hi, > >>>>>>> > >>>>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>>>dependency, so it is left as "select". > >>>>>>>> > >>>>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>>>--- > >>>>>>>> drivers/ata/Kconfig | 1 - > >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>>>> > >>>>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>>>index 5f60155..6d2e881 100644 > >>>>>>>>--- a/drivers/ata/Kconfig > >>>>>>>>+++ b/drivers/ata/Kconfig > >>>>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>>>> tristate "Marvell SATA support" > >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>>>- select GENERIC_PHY > >>>>>>>> help > >>>>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>>>> depends on REGULATOR > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>>> help > >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>>>> receiver (MIPI-CSIS) devices. > >>>>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>>>index 2962de2..edecdb1 100644 > >>>>>>>>--- a/drivers/phy/Kconfig > >>>>>>>>+++ b/drivers/phy/Kconfig > >>>>>>>>@@ -5,7 +5,7 @@ > >>>>>>>> menu "PHY Subsystem" > >>>>>>>> > >>>>>>>> config GENERIC_PHY > >>>>>>>>- bool "PHY Core" > >>>>>>>>+ bool > >>>>>>>> help > >>>>>>>> Generic PHY support. > >>>>>>>> > >>>>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>>>> config PHY_RCAR_GEN2 > >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>>>> depends on ARCH_SHMOBILE > >>>>>>>>- depends on GENERIC_PHY > >>>>>>>>+ select GENERIC_PHY > >>>>>>> > >>>>>>>so some you changed from depends to select... > >>>>>>> > >>>>>>>> help > >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>>>> > >>>>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>>>> config USB_EHCI_HCD_STI > >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>>>> depends on ARCH_STI && OF > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>> > >>>>>>>while others you changed from select to depends. > >>>>>>> > >>>>>>>NAK. > >>>>>>> > >>>>>>Felipe, I dont understand your concern, could you please explain it more > >>>>>>detail? The logic behind the changes is that in cases where there was an > >>>>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>>>changed it to "selects". Thanks > >>>>> > >>>>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>>>avoid select altogether. > >>>>> > >>>>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>>>invisible option as part of this change. Thanks > >>> > >>>Then, if the option is invisible, how can you "depend" on it ? It can > >>>never be selected by poking around in Kconfig. IMO, it's > >>>counterintuitive that you need to enable a PHY driver before you can see > >>>your EHCI/OHCI/whatever controller listed in Kconfig. > >> > >>If the controller requires PHY for it to be functional, it is okay to make > >>the controller depend on PHY IMHO. We want to try and minimize the usage of > >>'select' wherever possible or else 'select' is the most intuitive way. The > >>other option is just to leave the 'depends on' and let the user select PHY. > > > >How can you 'depend' on something that the user can't select by > >navigating through Kconfig ? > > hmm... Actually it's selected when the user selects the PHY driver. that's my point, don't you think it's a little counter-intuitive ? > Maybe we should directly depend on the PHY driver instead of Generic > PHY? maybe... But then what do you do when you have different boards using different PHYs ? -- balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150601/3c03471f/attachment.sig> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-06-01 18:39 UTC (permalink / raw) To: linux-arm-kernel [-- Attachment #1: Type: text/plain, Size: 5984 bytes --] On Mon, Jun 01, 2015 at 06:22:41PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > >>Hi Felipe, > >> > >>On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >>>On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>>>Hi > >>>> > >>>>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>>>HI, > >>>>> > >>>>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>>>> > >>>>>> > >>>>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>>>Hi, > >>>>>>> > >>>>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>>>dependency, so it is left as "select". > >>>>>>>> > >>>>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>>>--- > >>>>>>>> drivers/ata/Kconfig | 1 - > >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>>>> > >>>>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>>>index 5f60155..6d2e881 100644 > >>>>>>>>--- a/drivers/ata/Kconfig > >>>>>>>>+++ b/drivers/ata/Kconfig > >>>>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>>>> tristate "Marvell SATA support" > >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>>>- select GENERIC_PHY > >>>>>>>> help > >>>>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>>>> depends on REGULATOR > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>>> help > >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>>>> receiver (MIPI-CSIS) devices. > >>>>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>>>index 2962de2..edecdb1 100644 > >>>>>>>>--- a/drivers/phy/Kconfig > >>>>>>>>+++ b/drivers/phy/Kconfig > >>>>>>>>@@ -5,7 +5,7 @@ > >>>>>>>> menu "PHY Subsystem" > >>>>>>>> > >>>>>>>> config GENERIC_PHY > >>>>>>>>- bool "PHY Core" > >>>>>>>>+ bool > >>>>>>>> help > >>>>>>>> Generic PHY support. > >>>>>>>> > >>>>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>>>> config PHY_RCAR_GEN2 > >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>>>> depends on ARCH_SHMOBILE > >>>>>>>>- depends on GENERIC_PHY > >>>>>>>>+ select GENERIC_PHY > >>>>>>> > >>>>>>>so some you changed from depends to select... > >>>>>>> > >>>>>>>> help > >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>>>> > >>>>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>>>> config USB_EHCI_HCD_STI > >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>>>> depends on ARCH_STI && OF > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>> > >>>>>>>while others you changed from select to depends. > >>>>>>> > >>>>>>>NAK. > >>>>>>> > >>>>>>Felipe, I dont understand your concern, could you please explain it more > >>>>>>detail? The logic behind the changes is that in cases where there was an > >>>>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>>>changed it to "selects". Thanks > >>>>> > >>>>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>>>avoid select altogether. > >>>>> > >>>>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>>>invisible option as part of this change. Thanks > >>> > >>>Then, if the option is invisible, how can you "depend" on it ? It can > >>>never be selected by poking around in Kconfig. IMO, it's > >>>counterintuitive that you need to enable a PHY driver before you can see > >>>your EHCI/OHCI/whatever controller listed in Kconfig. > >> > >>If the controller requires PHY for it to be functional, it is okay to make > >>the controller depend on PHY IMHO. We want to try and minimize the usage of > >>'select' wherever possible or else 'select' is the most intuitive way. The > >>other option is just to leave the 'depends on' and let the user select PHY. > > > >How can you 'depend' on something that the user can't select by > >navigating through Kconfig ? > > hmm... Actually it's selected when the user selects the PHY driver. that's my point, don't you think it's a little counter-intuitive ? > Maybe we should directly depend on the PHY driver instead of Generic > PHY? maybe... But then what do you do when you have different boards using different PHYs ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-06-01 18:39 ` Felipe Balbi 0 siblings, 0 replies; 92+ messages in thread From: Felipe Balbi @ 2015-06-01 18:39 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: balbi, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list [-- Attachment #1: Type: text/plain, Size: 5984 bytes --] On Mon, Jun 01, 2015 at 06:22:41PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 29 May 2015 08:34 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, May 29, 2015 at 05:04:38PM +0530, Kishon Vijay Abraham I wrote: > >>Hi Felipe, > >> > >>On Wednesday 27 May 2015 12:09 AM, Felipe Balbi wrote: > >>>On Tue, May 26, 2015 at 11:37:17AM -0700, Arun Ramamurthy wrote: > >>>>Hi > >>>> > >>>>On 15-05-26 07:19 AM, Felipe Balbi wrote: > >>>>>HI, > >>>>> > >>>>>On Mon, May 25, 2015 at 02:19:58PM -0700, Arun Ramamurthy wrote: > >>>>>> > >>>>>> > >>>>>>On 15-05-14 05:52 PM, Felipe Balbi wrote: > >>>>>>>Hi, > >>>>>>> > >>>>>>>On Wed, Apr 22, 2015 at 04:04:10PM -0700, Arun Ramamurthy wrote: > >>>>>>>>Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >>>>>>>>is only recommended when the config is not visible, GENERIC_PHY is changed > >>>>>>>>an invisible option. To maintain consistency, all phy providers are changed > >>>>>>>>to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >>>>>>>>phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >>>>>>>>dependency, so it is left as "select". > >>>>>>>> > >>>>>>>>Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > >>>>>>>>--- > >>>>>>>> drivers/ata/Kconfig | 1 - > >>>>>>>> drivers/media/platform/exynos4-is/Kconfig | 2 +- > >>>>>>>> drivers/phy/Kconfig | 4 ++-- > >>>>>>>> drivers/usb/host/Kconfig | 4 ++-- > >>>>>>>> drivers/video/fbdev/exynos/Kconfig | 2 +- > >>>>>>>> 5 files changed, 6 insertions(+), 7 deletions(-) > >>>>>>>> > >>>>>>>>diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >>>>>>>>index 5f60155..6d2e881 100644 > >>>>>>>>--- a/drivers/ata/Kconfig > >>>>>>>>+++ b/drivers/ata/Kconfig > >>>>>>>>@@ -301,7 +301,6 @@ config SATA_MV > >>>>>>>> tristate "Marvell SATA support" > >>>>>>>> depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > >>>>>>>> ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > >>>>>>>>- select GENERIC_PHY > >>>>>>>> help > >>>>>>>> This option enables support for the Marvell Serial ATA family. > >>>>>>>> Currently supports 88SX[56]0[48][01] PCI(-X) chips, > >>>>>>>>diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>index b7b2e47..b6f3eaa 100644 > >>>>>>>>--- a/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>+++ b/drivers/media/platform/exynos4-is/Kconfig > >>>>>>>>@@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > >>>>>>>> config VIDEO_S5P_MIPI_CSIS > >>>>>>>> tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > >>>>>>>> depends on REGULATOR > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>>> help > >>>>>>>> This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > >>>>>>>> receiver (MIPI-CSIS) devices. > >>>>>>>>diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > >>>>>>>>index 2962de2..edecdb1 100644 > >>>>>>>>--- a/drivers/phy/Kconfig > >>>>>>>>+++ b/drivers/phy/Kconfig > >>>>>>>>@@ -5,7 +5,7 @@ > >>>>>>>> menu "PHY Subsystem" > >>>>>>>> > >>>>>>>> config GENERIC_PHY > >>>>>>>>- bool "PHY Core" > >>>>>>>>+ bool > >>>>>>>> help > >>>>>>>> Generic PHY support. > >>>>>>>> > >>>>>>>>@@ -72,7 +72,7 @@ config PHY_MIPHY365X > >>>>>>>> config PHY_RCAR_GEN2 > >>>>>>>> tristate "Renesas R-Car generation 2 USB PHY driver" > >>>>>>>> depends on ARCH_SHMOBILE > >>>>>>>>- depends on GENERIC_PHY > >>>>>>>>+ select GENERIC_PHY > >>>>>>> > >>>>>>>so some you changed from depends to select... > >>>>>>> > >>>>>>>> help > >>>>>>>> Support for USB PHY found on Renesas R-Car generation 2 SoCs. > >>>>>>>> > >>>>>>>>diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > >>>>>>>>index 5ad60e4..e2197e2 100644 > >>>>>>>>--- a/drivers/usb/host/Kconfig > >>>>>>>>+++ b/drivers/usb/host/Kconfig > >>>>>>>>@@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > >>>>>>>> config USB_EHCI_HCD_STI > >>>>>>>> tristate "Support for ST STiHxxx on-chip EHCI USB controller" > >>>>>>>> depends on ARCH_STI && OF > >>>>>>>>- select GENERIC_PHY > >>>>>>>>+ depends on GENERIC_PHY > >>>>>>> > >>>>>>>while others you changed from select to depends. > >>>>>>> > >>>>>>>NAK. > >>>>>>> > >>>>>>Felipe, I dont understand your concern, could you please explain it more > >>>>>>detail? The logic behind the changes is that in cases where there was an > >>>>>>explicit dependency, I changed it to "depends on" and in other cases I > >>>>>>changed it to "selects". Thanks > >>>>> > >>>>>Since GENERIC_PHY is visible from Kconfig, it would be much nicer to > >>>>>avoid select altogether. > >>>>> > >>>>Felipe, after discussion with the maintainers, I have made GENERIC_PHY an > >>>>invisible option as part of this change. Thanks > >>> > >>>Then, if the option is invisible, how can you "depend" on it ? It can > >>>never be selected by poking around in Kconfig. IMO, it's > >>>counterintuitive that you need to enable a PHY driver before you can see > >>>your EHCI/OHCI/whatever controller listed in Kconfig. > >> > >>If the controller requires PHY for it to be functional, it is okay to make > >>the controller depend on PHY IMHO. We want to try and minimize the usage of > >>'select' wherever possible or else 'select' is the most intuitive way. The > >>other option is just to leave the 'depends on' and let the user select PHY. > > > >How can you 'depend' on something that the user can't select by > >navigating through Kconfig ? > > hmm... Actually it's selected when the user selects the PHY driver. that's my point, don't you think it's a little counter-intuitive ? > Maybe we should directly depend on the PHY driver instead of Generic > PHY? maybe... But then what do you do when you have different boards using different PHYs ? -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-05-29 12:37 ` Kishon Vijay Abraham I -1 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 12:37 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, maxime.coquelin, Sylwester Nawrocki, kyungmin.park Tejun, Maxime, Sylwester, Kyungmin On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Need your ACK for this patch. Thanks Kishon > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:37 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 12:49 UTC (permalink / raw) To: linux-arm-kernel Tejun, Maxime, Sylwester, Kyungmin On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Need your ACK for this patch. Thanks Kishon > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > > ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:37 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 12:37 UTC (permalink / raw) To: linux-arm-kernel Tejun, Maxime, Sylwester, Kyungmin On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Need your ACK for this patch. Thanks Kishon > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:37 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-29 12:37 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, maxime.coquelin, Sylwester Nawrocki, kyungmin.park Tejun, Maxime, Sylwester, Kyungmin On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Most of the phy providers use "select" to enable GENERIC_PHY. Since select > is only recommended when the config is not visible, GENERIC_PHY is changed > an invisible option. To maintain consistency, all phy providers are changed > to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > dependency, so it is left as "select". > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Need your ACK for this patch. Thanks Kishon > --- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 ++-- > drivers/usb/host/Kconfig | 4 ++-- > drivers/video/fbdev/exynos/Kconfig | 2 +- > 5 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > index 5f60155..6d2e881 100644 > --- a/drivers/ata/Kconfig > +++ b/drivers/ata/Kconfig > @@ -301,7 +301,6 @@ config SATA_MV > tristate "Marvell SATA support" > depends on PCI || ARCH_DOVE || ARCH_MV78XX0 || \ > ARCH_MVEBU || ARCH_ORION5X || COMPILE_TEST > - select GENERIC_PHY > help > This option enables support for the Marvell Serial ATA family. > Currently supports 88SX[56]0[48][01] PCI(-X) chips, > diff --git a/drivers/media/platform/exynos4-is/Kconfig b/drivers/media/platform/exynos4-is/Kconfig > index b7b2e47..b6f3eaa 100644 > --- a/drivers/media/platform/exynos4-is/Kconfig > +++ b/drivers/media/platform/exynos4-is/Kconfig > @@ -31,7 +31,7 @@ config VIDEO_S5P_FIMC > config VIDEO_S5P_MIPI_CSIS > tristate "S5P/EXYNOS MIPI-CSI2 receiver (MIPI-CSIS) driver" > depends on REGULATOR > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This is a V4L2 driver for Samsung S5P and EXYNOS4 SoC MIPI-CSI2 > receiver (MIPI-CSIS) devices. > diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig > index 2962de2..edecdb1 100644 > --- a/drivers/phy/Kconfig > +++ b/drivers/phy/Kconfig > @@ -5,7 +5,7 @@ > menu "PHY Subsystem" > > config GENERIC_PHY > - bool "PHY Core" > + bool > help > Generic PHY support. > > @@ -72,7 +72,7 @@ config PHY_MIPHY365X > config PHY_RCAR_GEN2 > tristate "Renesas R-Car generation 2 USB PHY driver" > depends on ARCH_SHMOBILE > - depends on GENERIC_PHY > + select GENERIC_PHY > help > Support for USB PHY found on Renesas R-Car generation 2 SoCs. > > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index 5ad60e4..e2197e2 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -182,7 +182,7 @@ config USB_EHCI_HCD_SPEAR > config USB_EHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip EHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_EHCI_HCD_PLATFORM > help > Enable support for the on-chip EHCI controller found on > @@ -409,7 +409,7 @@ config USB_OHCI_HCD_SPEAR > config USB_OHCI_HCD_STI > tristate "Support for ST STiHxxx on-chip OHCI USB controller" > depends on ARCH_STI && OF > - select GENERIC_PHY > + depends on GENERIC_PHY > select USB_OHCI_HCD_PLATFORM > help > Enable support for the on-chip OHCI controller found on > diff --git a/drivers/video/fbdev/exynos/Kconfig b/drivers/video/fbdev/exynos/Kconfig > index 1f16b46..6c53894 100644 > --- a/drivers/video/fbdev/exynos/Kconfig > +++ b/drivers/video/fbdev/exynos/Kconfig > @@ -16,7 +16,7 @@ if EXYNOS_VIDEO > > config EXYNOS_MIPI_DSI > bool "EXYNOS MIPI DSI driver support." > - select GENERIC_PHY > + depends on GENERIC_PHY > help > This enables support for MIPI-DSI device. > > ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-29 12:37 ` Kishon Vijay Abraham I (?) (?) @ 2015-05-29 12:59 ` Maxime Coquelin -1 siblings, 0 replies; 92+ messages in thread From: Maxime Coquelin @ 2015-05-29 12:59 UTC (permalink / raw) To: Kishon Vijay Abraham I, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi Kishon, Arun, On 05/29/2015 02:37 PM, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since >> select >> is only recommended when the config is not visible, GENERIC_PHY is >> changed >> an invisible option. To maintain consistency, all phy providers are >> changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when >> the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. > For the STi part, you can add my: Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Regards, Maxime ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:59 ` Maxime Coquelin 0 siblings, 0 replies; 92+ messages in thread From: Maxime Coquelin @ 2015-05-29 12:59 UTC (permalink / raw) To: linux-arm-kernel Hi Kishon, Arun, On 05/29/2015 02:37 PM, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since >> select >> is only recommended when the config is not visible, GENERIC_PHY is >> changed >> an invisible option. To maintain consistency, all phy providers are >> changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when >> the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. > For the STi part, you can add my: Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Regards, Maxime ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:59 ` Maxime Coquelin 0 siblings, 0 replies; 92+ messages in thread From: Maxime Coquelin @ 2015-05-29 12:59 UTC (permalink / raw) To: linux-arm-kernel Hi Kishon, Arun, On 05/29/2015 02:37 PM, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since >> select >> is only recommended when the config is not visible, GENERIC_PHY is >> changed >> an invisible option. To maintain consistency, all phy providers are >> changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when >> the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. > For the STi part, you can add my: Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Regards, Maxime ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 12:59 ` Maxime Coquelin 0 siblings, 0 replies; 92+ messages in thread From: Maxime Coquelin @ 2015-05-29 12:59 UTC (permalink / raw) To: Kishon Vijay Abraham I, Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi Kishon, Arun, On 05/29/2015 02:37 PM, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since >> select >> is only recommended when the config is not visible, GENERIC_PHY is >> changed >> an invisible option. To maintain consistency, all phy providers are >> changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when >> the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. > For the STi part, you can add my: Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Regards, Maxime ^ permalink raw reply [flat|nested] 92+ messages in thread
[parent not found: <55685D7E.9000700-l0cyMroinI0@public.gmane.org>]
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-29 12:37 ` Kishon Vijay Abraham I (?) (?) @ 2015-05-29 13:09 ` Tejun Heo -1 siblings, 0 replies; 92+ messages in thread From: Tejun Heo @ 2015-05-29 13:09 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: Arun Ramamurthy, Jonathan Corbet, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT On Fri, May 29, 2015 at 06:07:18PM +0530, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > >Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >is only recommended when the config is not visible, GENERIC_PHY is changed > >an invisible option. To maintain consistency, all phy providers are changed > >to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >dependency, so it is left as "select". > > > >Signed-off-by: Arun Ramamurthy <arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> > > Need your ACK for this patch. For ATA part, Acked-by: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:09 ` Tejun Heo 0 siblings, 0 replies; 92+ messages in thread From: Tejun Heo @ 2015-05-29 13:09 UTC (permalink / raw) To: linux-arm-kernel On Fri, May 29, 2015 at 06:07:18PM +0530, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > >Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >is only recommended when the config is not visible, GENERIC_PHY is changed > >an invisible option. To maintain consistency, all phy providers are changed > >to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >dependency, so it is left as "select". > > > >Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For ATA part, Acked-by: Tejun Heo <tj@kernel.org> Thanks. -- tejun ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:09 ` Tejun Heo 0 siblings, 0 replies; 92+ messages in thread From: Tejun Heo @ 2015-05-29 13:09 UTC (permalink / raw) To: linux-arm-kernel On Fri, May 29, 2015 at 06:07:18PM +0530, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > >Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >is only recommended when the config is not visible, GENERIC_PHY is changed > >an invisible option. To maintain consistency, all phy providers are changed > >to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >dependency, so it is left as "select". > > > >Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For ATA part, Acked-by: Tejun Heo <tj@kernel.org> Thanks. -- tejun ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:09 ` Tejun Heo 0 siblings, 0 replies; 92+ messages in thread From: Tejun Heo @ 2015-05-29 13:09 UTC (permalink / raw) To: Kishon Vijay Abraham I Cc: Arun Ramamurthy, Jonathan Corbet, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, maxime.coquelin On Fri, May 29, 2015 at 06:07:18PM +0530, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > >Most of the phy providers use "select" to enable GENERIC_PHY. Since select > >is only recommended when the config is not visible, GENERIC_PHY is changed > >an invisible option. To maintain consistency, all phy providers are changed > >to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the > >phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic > >dependency, so it is left as "select". > > > >Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For ATA part, Acked-by: Tejun Heo <tj@kernel.org> Thanks. -- tejun ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option 2015-05-29 12:37 ` Kishon Vijay Abraham I (?) (?) @ 2015-05-29 13:13 ` Sylwester Nawrocki -1 siblings, 0 replies; 92+ messages in thread From: Sylwester Nawrocki @ 2015-05-29 13:13 UTC (permalink / raw) To: Kishon Vijay Abraham I, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin On 29/05/15 14:37, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For drivers/media/platform/exynos4-is/Kconfig drivers/video/fbdev/exynos/Kconfig Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> -- Thanks, Sylwester ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:13 ` Sylwester Nawrocki 0 siblings, 0 replies; 92+ messages in thread From: Sylwester Nawrocki @ 2015-05-29 13:13 UTC (permalink / raw) To: linux-arm-kernel On 29/05/15 14:37, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For drivers/media/platform/exynos4-is/Kconfig drivers/video/fbdev/exynos/Kconfig Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> -- Thanks, Sylwester ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:13 ` Sylwester Nawrocki 0 siblings, 0 replies; 92+ messages in thread From: Sylwester Nawrocki @ 2015-05-29 13:13 UTC (permalink / raw) To: linux-arm-kernel On 29/05/15 14:37, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For drivers/media/platform/exynos4-is/Kconfig drivers/video/fbdev/exynos/Kconfig Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> -- Thanks, Sylwester ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option @ 2015-05-29 13:13 ` Sylwester Nawrocki 0 siblings, 0 replies; 92+ messages in thread From: Sylwester Nawrocki @ 2015-05-29 13:13 UTC (permalink / raw) To: Kishon Vijay Abraham I, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, maxime.coquelin On 29/05/15 14:37, Kishon Vijay Abraham I wrote: > Tejun, Maxime, Sylwester, Kyungmin > > On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: >> Most of the phy providers use "select" to enable GENERIC_PHY. Since select >> is only recommended when the config is not visible, GENERIC_PHY is changed >> an invisible option. To maintain consistency, all phy providers are changed >> to "select" GENERIC_PHY and all non-phy drivers use "depends on" when the >> phy framework is explicity required. USB_MUSB_OMAP2PLUS has a cyclic >> dependency, so it is left as "select". >> >> Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > > Need your ACK for this patch. For drivers/media/platform/exynos4-is/Kconfig drivers/video/fbdev/exynos/Kconfig Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> -- Thanks, Sylwester ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 4/4] usb: ohci-platform: Use devm_of_phy_get_by_index 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-22 23:04 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ohci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 185ceee..c2669f18 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -57,15 +57,13 @@ static int ohci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -73,10 +71,8 @@ static int ohci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -92,10 +88,8 @@ static void ohci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = OHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -123,7 +117,6 @@ static int ohci_platform_probe(struct platform_device *dev) struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); struct ohci_platform_priv *priv; struct ohci_hcd *ohci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -174,36 +167,22 @@ static int ohci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err == -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < OHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 4/4] usb: ohci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ohci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 185ceee..c2669f18 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -57,15 +57,13 @@ static int ohci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -73,10 +71,8 @@ static int ohci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -92,10 +88,8 @@ static void ohci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = OHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -123,7 +117,6 @@ static int ohci_platform_probe(struct platform_device *dev) struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); struct ohci_platform_priv *priv; struct ohci_hcd *ohci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -174,36 +167,22 @@ static int ohci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err == -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < OHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 4/4] usb: ohci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ohci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 185ceee..c2669f18 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -57,15 +57,13 @@ static int ohci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -73,10 +71,8 @@ static int ohci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -92,10 +88,8 @@ static void ohci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = OHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -123,7 +117,6 @@ static int ohci_platform_probe(struct platform_device *dev) struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); struct ohci_platform_priv *priv; struct ohci_hcd *ohci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -174,36 +167,22 @@ static int ohci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err = -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < OHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 4/4] usb: ohci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ohci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 185ceee..c2669f18 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -57,15 +57,13 @@ static int ohci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -73,10 +71,8 @@ static int ohci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -92,10 +88,8 @@ static void ohci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = OHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -123,7 +117,6 @@ static int ohci_platform_probe(struct platform_device *dev) struct usb_ohci_pdata *pdata = dev_get_platdata(&dev->dev); struct ohci_platform_priv *priv; struct ohci_hcd *ohci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -174,36 +167,22 @@ static int ohci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err == -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < OHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-23 7:42 ` Hans de Goede -1 siblings, 0 replies; 92+ messages in thread From: Hans de Goede @ 2015-04-23 7:42 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On 23-04-15 01:04, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index > > Documentation/phy.txt | 7 +++- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 +- > drivers/phy/phy-core.c | 32 ++++++++++++++ > drivers/usb/host/Kconfig | 4 +- > drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- > drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- > drivers/video/fbdev/exynos/Kconfig | 2 +- > include/linux/phy/phy.h | 8 ++++ > 10 files changed, 100 insertions(+), 98 deletions(-) > Patch set looks good to me: Acked-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 7:42 ` Hans de Goede 0 siblings, 0 replies; 92+ messages in thread From: Hans de Goede @ 2015-04-23 7:42 UTC (permalink / raw) To: linux-arm-kernel Hi, On 23-04-15 01:04, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index > > Documentation/phy.txt | 7 +++- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 +- > drivers/phy/phy-core.c | 32 ++++++++++++++ > drivers/usb/host/Kconfig | 4 +- > drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- > drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- > drivers/video/fbdev/exynos/Kconfig | 2 +- > include/linux/phy/phy.h | 8 ++++ > 10 files changed, 100 insertions(+), 98 deletions(-) > Patch set looks good to me: Acked-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 7:42 ` Hans de Goede 0 siblings, 0 replies; 92+ messages in thread From: Hans de Goede @ 2015-04-23 7:42 UTC (permalink / raw) To: linux-arm-kernel Hi, On 23-04-15 01:04, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index > > Documentation/phy.txt | 7 +++- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 +- > drivers/phy/phy-core.c | 32 ++++++++++++++ > drivers/usb/host/Kconfig | 4 +- > drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- > drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- > drivers/video/fbdev/exynos/Kconfig | 2 +- > include/linux/phy/phy.h | 8 ++++ > 10 files changed, 100 insertions(+), 98 deletions(-) > Patch set looks good to me: Acked-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 7:42 ` Hans de Goede 0 siblings, 0 replies; 92+ messages in thread From: Hans de Goede @ 2015-04-23 7:42 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On 23-04-15 01:04, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index > > Documentation/phy.txt | 7 +++- > drivers/ata/Kconfig | 1 - > drivers/media/platform/exynos4-is/Kconfig | 2 +- > drivers/phy/Kconfig | 4 +- > drivers/phy/phy-core.c | 32 ++++++++++++++ > drivers/usb/host/Kconfig | 4 +- > drivers/usb/host/ehci-platform.c | 69 +++++++++++-------------------- > drivers/usb/host/ohci-platform.c | 69 +++++++++++-------------------- > drivers/video/fbdev/exynos/Kconfig | 2 +- > include/linux/phy/phy.h | 8 ++++ > 10 files changed, 100 insertions(+), 98 deletions(-) > Patch set looks good to me: Acked-by: Hans de Goede <hdegoede@redhat.com> Regards, Hans ^ permalink raw reply [flat|nested] 92+ messages in thread
[parent not found: <1429743853-10254-1-git-send-email-arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>]
* [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-22 23:04 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-ide-u79uwXL29TY76Z2rM5mHXA, linux-media-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w, Arun Ramamurthy Some generic drivers, such as ehci, may use multiple phys and for such drivers referencing phy(s) by name(s) does not make sense. Instead of inventing new naming schemes and using custom code to iterate through them, such drivers are better of using nameless phy bindings and using this newly introduced API to iterate through them. Signed-off-by: Arun Ramamurthy <arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> Reviewed-by: Ray Jui <rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> Reviewed-by: Scott Branden <sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> --- Documentation/phy.txt | 7 ++++++- drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ include/linux/phy/phy.h | 8 ++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Documentation/phy.txt b/Documentation/phy.txt index 371361c..b388c5a 100644 --- a/Documentation/phy.txt +++ b/Documentation/phy.txt @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); struct phy *phy_optional_get(struct device *dev, const char *string); struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can be used to get the PHY. In the case of dt boot, the string arguments @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on the the devres data and devres data is freed. phy_optional_get and devm_phy_optional_get should be used when the phy is optional. These two functions will never return -ENODEV, but instead returns NULL when -the phy cannot be found. +the phy cannot be found.Some generic drivers, such as ehci, may use multiple +phys and for such drivers referencing phy(s) by name(s) does not make sense. In +this case, devm_of_phy_get_by_index can be used to get a phy reference based on +the index. It should be noted that NULL is a valid phy reference. All phy consumer calls on the NULL phy become NOPs. That is the release calls, diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 3791838..964a84d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, EXPORT_SYMBOL_GPL(devm_of_phy_get); /** + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. + * @dev: device that requests this phy + * @np: node containing the phy + * @index: index of the phy + * + * Gets the phy using _of_phy_get(), and associates a device with it using + * devres. On driver detach, release function is invoked on the devres data, + * then, devres data is freed. + * + */ +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index) +{ + struct phy **ptr, *phy; + + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); + if (!ptr) + return ERR_PTR(-ENOMEM); + + phy = _of_phy_get(np, index); + if (!IS_ERR(phy)) { + *ptr = phy; + devres_add(dev, ptr); + } else { + devres_free(ptr); + } + + return phy; +} +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); + +/** * phy_create() - create a new phy * @dev: device that is creating the new phy * @node: device node of the phy diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index a0197fa..978d5af 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, const char *con_id); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); void phy_put(struct phy *phy); void devm_phy_put(struct device *dev, struct phy *phy); struct phy *of_phy_get(struct device_node *np, const char *con_id); @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, return ERR_PTR(-ENOSYS); } +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); +{ + return ERR_PTR(-ENOSYS); +} + static inline void phy_put(struct phy *phy) { } -- 2.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Some generic drivers, such as ehci, may use multiple phys and for such drivers referencing phy(s) by name(s) does not make sense. Instead of inventing new naming schemes and using custom code to iterate through them, such drivers are better of using nameless phy bindings and using this newly introduced API to iterate through them. Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- Documentation/phy.txt | 7 ++++++- drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ include/linux/phy/phy.h | 8 ++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Documentation/phy.txt b/Documentation/phy.txt index 371361c..b388c5a 100644 --- a/Documentation/phy.txt +++ b/Documentation/phy.txt @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); struct phy *phy_optional_get(struct device *dev, const char *string); struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can be used to get the PHY. In the case of dt boot, the string arguments @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on the the devres data and devres data is freed. phy_optional_get and devm_phy_optional_get should be used when the phy is optional. These two functions will never return -ENODEV, but instead returns NULL when -the phy cannot be found. +the phy cannot be found.Some generic drivers, such as ehci, may use multiple +phys and for such drivers referencing phy(s) by name(s) does not make sense. In +this case, devm_of_phy_get_by_index can be used to get a phy reference based on +the index. It should be noted that NULL is a valid phy reference. All phy consumer calls on the NULL phy become NOPs. That is the release calls, diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 3791838..964a84d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, EXPORT_SYMBOL_GPL(devm_of_phy_get); /** + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. + * @dev: device that requests this phy + * @np: node containing the phy + * @index: index of the phy + * + * Gets the phy using _of_phy_get(), and associates a device with it using + * devres. On driver detach, release function is invoked on the devres data, + * then, devres data is freed. + * + */ +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index) +{ + struct phy **ptr, *phy; + + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); + if (!ptr) + return ERR_PTR(-ENOMEM); + + phy = _of_phy_get(np, index); + if (!IS_ERR(phy)) { + *ptr = phy; + devres_add(dev, ptr); + } else { + devres_free(ptr); + } + + return phy; +} +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); + +/** * phy_create() - create a new phy * @dev: device that is creating the new phy * @node: device node of the phy diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index a0197fa..978d5af 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, const char *con_id); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); void phy_put(struct phy *phy); void devm_phy_put(struct device *dev, struct phy *phy); struct phy *of_phy_get(struct device_node *np, const char *con_id); @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, return ERR_PTR(-ENOSYS); } +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); +{ + return ERR_PTR(-ENOSYS); +} + static inline void phy_put(struct phy *phy) { } -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Some generic drivers, such as ehci, may use multiple phys and for such drivers referencing phy(s) by name(s) does not make sense. Instead of inventing new naming schemes and using custom code to iterate through them, such drivers are better of using nameless phy bindings and using this newly introduced API to iterate through them. Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- Documentation/phy.txt | 7 ++++++- drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ include/linux/phy/phy.h | 8 ++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Documentation/phy.txt b/Documentation/phy.txt index 371361c..b388c5a 100644 --- a/Documentation/phy.txt +++ b/Documentation/phy.txt @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); struct phy *phy_optional_get(struct device *dev, const char *string); struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can be used to get the PHY. In the case of dt boot, the string arguments @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on the the devres data and devres data is freed. phy_optional_get and devm_phy_optional_get should be used when the phy is optional. These two functions will never return -ENODEV, but instead returns NULL when -the phy cannot be found. +the phy cannot be found.Some generic drivers, such as ehci, may use multiple +phys and for such drivers referencing phy(s) by name(s) does not make sense. In +this case, devm_of_phy_get_by_index can be used to get a phy reference based on +the index. It should be noted that NULL is a valid phy reference. All phy consumer calls on the NULL phy become NOPs. That is the release calls, diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 3791838..964a84d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, EXPORT_SYMBOL_GPL(devm_of_phy_get); /** + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. + * @dev: device that requests this phy + * @np: node containing the phy + * @index: index of the phy + * + * Gets the phy using _of_phy_get(), and associates a device with it using + * devres. On driver detach, release function is invoked on the devres data, + * then, devres data is freed. + * + */ +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index) +{ + struct phy **ptr, *phy; + + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); + if (!ptr) + return ERR_PTR(-ENOMEM); + + phy = _of_phy_get(np, index); + if (!IS_ERR(phy)) { + *ptr = phy; + devres_add(dev, ptr); + } else { + devres_free(ptr); + } + + return phy; +} +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); + +/** * phy_create() - create a new phy * @dev: device that is creating the new phy * @node: device node of the phy diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index a0197fa..978d5af 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, const char *con_id); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); void phy_put(struct phy *phy); void devm_phy_put(struct device *dev, struct phy *phy); struct phy *of_phy_get(struct device_node *np, const char *con_id); @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, return ERR_PTR(-ENOSYS); } +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); +{ + return ERR_PTR(-ENOSYS); +} + static inline void phy_put(struct phy *phy) { } -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Some generic drivers, such as ehci, may use multiple phys and for such drivers referencing phy(s) by name(s) does not make sense. Instead of inventing new naming schemes and using custom code to iterate through them, such drivers are better of using nameless phy bindings and using this newly introduced API to iterate through them. Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- Documentation/phy.txt | 7 ++++++- drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ include/linux/phy/phy.h | 8 ++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Documentation/phy.txt b/Documentation/phy.txt index 371361c..b388c5a 100644 --- a/Documentation/phy.txt +++ b/Documentation/phy.txt @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); struct phy *phy_optional_get(struct device *dev, const char *string); struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can be used to get the PHY. In the case of dt boot, the string arguments @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on the the devres data and devres data is freed. phy_optional_get and devm_phy_optional_get should be used when the phy is optional. These two functions will never return -ENODEV, but instead returns NULL when -the phy cannot be found. +the phy cannot be found.Some generic drivers, such as ehci, may use multiple +phys and for such drivers referencing phy(s) by name(s) does not make sense. In +this case, devm_of_phy_get_by_index can be used to get a phy reference based on +the index. It should be noted that NULL is a valid phy reference. All phy consumer calls on the NULL phy become NOPs. That is the release calls, diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 3791838..964a84d 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, EXPORT_SYMBOL_GPL(devm_of_phy_get); /** + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. + * @dev: device that requests this phy + * @np: node containing the phy + * @index: index of the phy + * + * Gets the phy using _of_phy_get(), and associates a device with it using + * devres. On driver detach, release function is invoked on the devres data, + * then, devres data is freed. + * + */ +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index) +{ + struct phy **ptr, *phy; + + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); + if (!ptr) + return ERR_PTR(-ENOMEM); + + phy = _of_phy_get(np, index); + if (!IS_ERR(phy)) { + *ptr = phy; + devres_add(dev, ptr); + } else { + devres_free(ptr); + } + + return phy; +} +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); + +/** * phy_create() - create a new phy * @dev: device that is creating the new phy * @node: device node of the phy diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index a0197fa..978d5af 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); struct phy *devm_phy_optional_get(struct device *dev, const char *string); struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, const char *con_id); +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); void phy_put(struct phy *phy); void devm_phy_put(struct device *dev, struct phy *phy); struct phy *of_phy_get(struct device_node *np, const char *con_id); @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, return ERR_PTR(-ENOSYS); } +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, + int index); +{ + return ERR_PTR(-ENOSYS); +} + static inline void phy_put(struct phy *phy) { } -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* Re: [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-05-11 15:09 ` Kishon Vijay Abraham I -1 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 15:09 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Some generic drivers, such as ehci, may use multiple phys and for such > drivers referencing phy(s) by name(s) does not make sense. Instead of > inventing new naming schemes and using custom code to iterate through them, > such drivers are better of using nameless phy bindings and using this newly > introduced API to iterate through them. > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > Reviewed-by: Ray Jui <rjui@broadcom.com> > Reviewed-by: Scott Branden <sbranden@broadcom.com> > --- > Documentation/phy.txt | 7 ++++++- > drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ > include/linux/phy/phy.h | 8 ++++++++ > 3 files changed, 46 insertions(+), 1 deletion(-) > > diff --git a/Documentation/phy.txt b/Documentation/phy.txt > index 371361c..b388c5a 100644 > --- a/Documentation/phy.txt > +++ b/Documentation/phy.txt > @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); > struct phy *phy_optional_get(struct device *dev, const char *string); > struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > > phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can > be used to get the PHY. In the case of dt boot, the string arguments > @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on > the the devres data and devres data is freed. phy_optional_get and > devm_phy_optional_get should be used when the phy is optional. These > two functions will never return -ENODEV, but instead returns NULL when > -the phy cannot be found. > +the phy cannot be found.Some generic drivers, such as ehci, may use multiple > +phys and for such drivers referencing phy(s) by name(s) does not make sense. In > +this case, devm_of_phy_get_by_index can be used to get a phy reference based on > +the index. > > It should be noted that NULL is a valid phy reference. All phy > consumer calls on the NULL phy become NOPs. That is the release calls, > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > index 3791838..964a84d 100644 > --- a/drivers/phy/phy-core.c > +++ b/drivers/phy/phy-core.c > @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > EXPORT_SYMBOL_GPL(devm_of_phy_get); > > /** > + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. > + * @dev: device that requests this phy > + * @np: node containing the phy > + * @index: index of the phy > + * > + * Gets the phy using _of_phy_get(), and associates a device with it using > + * devres. On driver detach, release function is invoked on the devres data, > + * then, devres data is freed. > + * > + */ > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index) > +{ > + struct phy **ptr, *phy; > + > + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); > + if (!ptr) > + return ERR_PTR(-ENOMEM); > + > + phy = _of_phy_get(np, index); > + if (!IS_ERR(phy)) { > + *ptr = phy; > + devres_add(dev, ptr); > + } else { > + devres_free(ptr); > + } > + > + return phy; > +} > +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); > + > +/** > * phy_create() - create a new phy > * @dev: device that is creating the new phy > * @node: device node of the phy > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index a0197fa..978d5af 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > const char *con_id); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > void phy_put(struct phy *phy); > void devm_phy_put(struct device *dev, struct phy *phy); > struct phy *of_phy_get(struct device_node *np, const char *con_id); > @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, > return ERR_PTR(-ENOSYS); > } > > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); Fixed the compilation error because of the ';' in the end and merged it to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-05-11 15:09 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 15:21 UTC (permalink / raw) To: linux-arm-kernel Hi, On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Some generic drivers, such as ehci, may use multiple phys and for such > drivers referencing phy(s) by name(s) does not make sense. Instead of > inventing new naming schemes and using custom code to iterate through them, > such drivers are better of using nameless phy bindings and using this newly > introduced API to iterate through them. > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > Reviewed-by: Ray Jui <rjui@broadcom.com> > Reviewed-by: Scott Branden <sbranden@broadcom.com> > --- > Documentation/phy.txt | 7 ++++++- > drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ > include/linux/phy/phy.h | 8 ++++++++ > 3 files changed, 46 insertions(+), 1 deletion(-) > > diff --git a/Documentation/phy.txt b/Documentation/phy.txt > index 371361c..b388c5a 100644 > --- a/Documentation/phy.txt > +++ b/Documentation/phy.txt > @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); > struct phy *phy_optional_get(struct device *dev, const char *string); > struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > > phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can > be used to get the PHY. In the case of dt boot, the string arguments > @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on > the the devres data and devres data is freed. phy_optional_get and > devm_phy_optional_get should be used when the phy is optional. These > two functions will never return -ENODEV, but instead returns NULL when > -the phy cannot be found. > +the phy cannot be found.Some generic drivers, such as ehci, may use multiple > +phys and for such drivers referencing phy(s) by name(s) does not make sense. In > +this case, devm_of_phy_get_by_index can be used to get a phy reference based on > +the index. > > It should be noted that NULL is a valid phy reference. All phy > consumer calls on the NULL phy become NOPs. That is the release calls, > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > index 3791838..964a84d 100644 > --- a/drivers/phy/phy-core.c > +++ b/drivers/phy/phy-core.c > @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > EXPORT_SYMBOL_GPL(devm_of_phy_get); > > /** > + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. > + * @dev: device that requests this phy > + * @np: node containing the phy > + * @index: index of the phy > + * > + * Gets the phy using _of_phy_get(), and associates a device with it using > + * devres. On driver detach, release function is invoked on the devres data, > + * then, devres data is freed. > + * > + */ > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index) > +{ > + struct phy **ptr, *phy; > + > + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); > + if (!ptr) > + return ERR_PTR(-ENOMEM); > + > + phy = _of_phy_get(np, index); > + if (!IS_ERR(phy)) { > + *ptr = phy; > + devres_add(dev, ptr); > + } else { > + devres_free(ptr); > + } > + > + return phy; > +} > +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); > + > +/** > * phy_create() - create a new phy > * @dev: device that is creating the new phy > * @node: device node of the phy > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index a0197fa..978d5af 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > const char *con_id); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > void phy_put(struct phy *phy); > void devm_phy_put(struct device *dev, struct phy *phy); > struct phy *of_phy_get(struct device_node *np, const char *con_id); > @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, > return ERR_PTR(-ENOSYS); > } > > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); Fixed the compilation error because of the ';' in the end and merged it to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-05-11 15:09 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 15:09 UTC (permalink / raw) To: linux-arm-kernel Hi, On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Some generic drivers, such as ehci, may use multiple phys and for such > drivers referencing phy(s) by name(s) does not make sense. Instead of > inventing new naming schemes and using custom code to iterate through them, > such drivers are better of using nameless phy bindings and using this newly > introduced API to iterate through them. > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > Reviewed-by: Ray Jui <rjui@broadcom.com> > Reviewed-by: Scott Branden <sbranden@broadcom.com> > --- > Documentation/phy.txt | 7 ++++++- > drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ > include/linux/phy/phy.h | 8 ++++++++ > 3 files changed, 46 insertions(+), 1 deletion(-) > > diff --git a/Documentation/phy.txt b/Documentation/phy.txt > index 371361c..b388c5a 100644 > --- a/Documentation/phy.txt > +++ b/Documentation/phy.txt > @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); > struct phy *phy_optional_get(struct device *dev, const char *string); > struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > > phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can > be used to get the PHY. In the case of dt boot, the string arguments > @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on > the the devres data and devres data is freed. phy_optional_get and > devm_phy_optional_get should be used when the phy is optional. These > two functions will never return -ENODEV, but instead returns NULL when > -the phy cannot be found. > +the phy cannot be found.Some generic drivers, such as ehci, may use multiple > +phys and for such drivers referencing phy(s) by name(s) does not make sense. In > +this case, devm_of_phy_get_by_index can be used to get a phy reference based on > +the index. > > It should be noted that NULL is a valid phy reference. All phy > consumer calls on the NULL phy become NOPs. That is the release calls, > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > index 3791838..964a84d 100644 > --- a/drivers/phy/phy-core.c > +++ b/drivers/phy/phy-core.c > @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > EXPORT_SYMBOL_GPL(devm_of_phy_get); > > /** > + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. > + * @dev: device that requests this phy > + * @np: node containing the phy > + * @index: index of the phy > + * > + * Gets the phy using _of_phy_get(), and associates a device with it using > + * devres. On driver detach, release function is invoked on the devres data, > + * then, devres data is freed. > + * > + */ > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index) > +{ > + struct phy **ptr, *phy; > + > + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); > + if (!ptr) > + return ERR_PTR(-ENOMEM); > + > + phy = _of_phy_get(np, index); > + if (!IS_ERR(phy)) { > + *ptr = phy; > + devres_add(dev, ptr); > + } else { > + devres_free(ptr); > + } > + > + return phy; > +} > +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); > + > +/** > * phy_create() - create a new phy > * @dev: device that is creating the new phy > * @node: device node of the phy > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index a0197fa..978d5af 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > const char *con_id); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > void phy_put(struct phy *phy); > void devm_phy_put(struct device *dev, struct phy *phy); > struct phy *of_phy_get(struct device_node *np, const char *con_id); > @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, > return ERR_PTR(-ENOSYS); > } > > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); Fixed the compilation error because of the ';' in the end and merged it to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core @ 2015-05-11 15:09 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 15:09 UTC (permalink / raw) To: Arun Ramamurthy, Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On Thursday 23 April 2015 04:34 AM, Arun Ramamurthy wrote: > Some generic drivers, such as ehci, may use multiple phys and for such > drivers referencing phy(s) by name(s) does not make sense. Instead of > inventing new naming schemes and using custom code to iterate through them, > such drivers are better of using nameless phy bindings and using this newly > introduced API to iterate through them. > > Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> > Reviewed-by: Ray Jui <rjui@broadcom.com> > Reviewed-by: Scott Branden <sbranden@broadcom.com> > --- > Documentation/phy.txt | 7 ++++++- > drivers/phy/phy-core.c | 32 ++++++++++++++++++++++++++++++++ > include/linux/phy/phy.h | 8 ++++++++ > 3 files changed, 46 insertions(+), 1 deletion(-) > > diff --git a/Documentation/phy.txt b/Documentation/phy.txt > index 371361c..b388c5a 100644 > --- a/Documentation/phy.txt > +++ b/Documentation/phy.txt > @@ -76,6 +76,8 @@ struct phy *phy_get(struct device *dev, const char *string); > struct phy *phy_optional_get(struct device *dev, const char *string); > struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > > phy_get, phy_optional_get, devm_phy_get and devm_phy_optional_get can > be used to get the PHY. In the case of dt boot, the string arguments > @@ -86,7 +88,10 @@ successful PHY get. On driver detach, release function is invoked on > the the devres data and devres data is freed. phy_optional_get and > devm_phy_optional_get should be used when the phy is optional. These > two functions will never return -ENODEV, but instead returns NULL when > -the phy cannot be found. > +the phy cannot be found.Some generic drivers, such as ehci, may use multiple > +phys and for such drivers referencing phy(s) by name(s) does not make sense. In > +this case, devm_of_phy_get_by_index can be used to get a phy reference based on > +the index. > > It should be noted that NULL is a valid phy reference. All phy > consumer calls on the NULL phy become NOPs. That is the release calls, > diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c > index 3791838..964a84d 100644 > --- a/drivers/phy/phy-core.c > +++ b/drivers/phy/phy-core.c > @@ -623,6 +623,38 @@ struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > EXPORT_SYMBOL_GPL(devm_of_phy_get); > > /** > + * devm_of_phy_get_by_index() - lookup and obtain a reference to a phy by index. > + * @dev: device that requests this phy > + * @np: node containing the phy > + * @index: index of the phy > + * > + * Gets the phy using _of_phy_get(), and associates a device with it using > + * devres. On driver detach, release function is invoked on the devres data, > + * then, devres data is freed. > + * > + */ > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index) > +{ > + struct phy **ptr, *phy; > + > + ptr = devres_alloc(devm_phy_release, sizeof(*ptr), GFP_KERNEL); > + if (!ptr) > + return ERR_PTR(-ENOMEM); > + > + phy = _of_phy_get(np, index); > + if (!IS_ERR(phy)) { > + *ptr = phy; > + devres_add(dev, ptr); > + } else { > + devres_free(ptr); > + } > + > + return phy; > +} > +EXPORT_SYMBOL_GPL(devm_of_phy_get_by_index); > + > +/** > * phy_create() - create a new phy > * @dev: device that is creating the new phy > * @node: device node of the phy > diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h > index a0197fa..978d5af 100644 > --- a/include/linux/phy/phy.h > +++ b/include/linux/phy/phy.h > @@ -133,6 +133,8 @@ struct phy *devm_phy_get(struct device *dev, const char *string); > struct phy *devm_phy_optional_get(struct device *dev, const char *string); > struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, > const char *con_id); > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); > void phy_put(struct phy *phy); > void devm_phy_put(struct device *dev, struct phy *phy); > struct phy *of_phy_get(struct device_node *np, const char *con_id); > @@ -261,6 +263,12 @@ static inline struct phy *devm_of_phy_get(struct device *dev, > return ERR_PTR(-ENOSYS); > } > > +struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, > + int index); Fixed the compilation error because of the ';' in the end and merged it to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 3/4] usb: ehci-platform: Use devm_of_phy_get_by_index 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-22 23:04 ` Arun Ramamurthy -1 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-ide-u79uwXL29TY76Z2rM5mHXA, linux-media-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-fbdev-u79uwXL29TY76Z2rM5mHXA, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w, Arun Ramamurthy Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> Reviewed-by: Ray Jui <rjui-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> Reviewed-by: Scott Branden <sbranden-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> --- drivers/usb/host/ehci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index d8a75a5..145bf19 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -88,15 +88,13 @@ static int ehci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -104,10 +102,8 @@ static int ehci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -123,10 +119,8 @@ static void ehci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = EHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -154,7 +148,6 @@ static int ehci_platform_probe(struct platform_device *dev) struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); struct ehci_platform_priv *priv; struct ehci_hcd *ehci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -204,36 +197,22 @@ static int ehci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 3/4] usb: ehci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ehci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index d8a75a5..145bf19 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -88,15 +88,13 @@ static int ehci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -104,10 +102,8 @@ static int ehci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -123,10 +119,8 @@ static void ehci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = EHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -154,7 +148,6 @@ static int ehci_platform_probe(struct platform_device *dev) struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); struct ehci_platform_priv *priv; struct ehci_hcd *ehci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -204,36 +197,22 @@ static int ehci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err == -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < EHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 3/4] usb: ehci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: linux-arm-kernel Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ehci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index d8a75a5..145bf19 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -88,15 +88,13 @@ static int ehci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -104,10 +102,8 @@ static int ehci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -123,10 +119,8 @@ static void ehci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = EHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -154,7 +148,6 @@ static int ehci_platform_probe(struct platform_device *dev) struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); struct ehci_platform_priv *priv; struct ehci_hcd *ehci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -204,36 +197,22 @@ static int ehci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err = -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < EHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* [PATCHv3 3/4] usb: ehci-platform: Use devm_of_phy_get_by_index @ 2015-04-22 23:04 ` Arun Ramamurthy 0 siblings, 0 replies; 92+ messages in thread From: Arun Ramamurthy @ 2015-04-22 23:04 UTC (permalink / raw) To: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Alan Stern, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare Cc: linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list, Arun Ramamurthy Getting phys by index instead of phy names so that we do not have to create a naming scheme when multiple phys are present Signed-off-by: Arun Ramamurthy <arun.ramamurthy@broadcom.com> Reviewed-by: Ray Jui <rjui@broadcom.com> Reviewed-by: Scott Branden <sbranden@broadcom.com> --- drivers/usb/host/ehci-platform.c | 69 ++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 45 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index d8a75a5..145bf19 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -88,15 +88,13 @@ static int ehci_platform_power_on(struct platform_device *dev) } for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - ret = phy_init(priv->phys[phy_num]); - if (ret) - goto err_exit_phy; - ret = phy_power_on(priv->phys[phy_num]); - if (ret) { - phy_exit(priv->phys[phy_num]); - goto err_exit_phy; - } + ret = phy_init(priv->phys[phy_num]); + if (ret) + goto err_exit_phy; + ret = phy_power_on(priv->phys[phy_num]); + if (ret) { + phy_exit(priv->phys[phy_num]); + goto err_exit_phy; } } @@ -104,10 +102,8 @@ static int ehci_platform_power_on(struct platform_device *dev) err_exit_phy: while (--phy_num >= 0) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } err_disable_clks: while (--clk >= 0) @@ -123,10 +119,8 @@ static void ehci_platform_power_off(struct platform_device *dev) int clk, phy_num; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - if (priv->phys[phy_num]) { - phy_power_off(priv->phys[phy_num]); - phy_exit(priv->phys[phy_num]); - } + phy_power_off(priv->phys[phy_num]); + phy_exit(priv->phys[phy_num]); } for (clk = EHCI_MAX_CLKS - 1; clk >= 0; clk--) @@ -154,7 +148,6 @@ static int ehci_platform_probe(struct platform_device *dev) struct usb_ehci_pdata *pdata = dev_get_platdata(&dev->dev); struct ehci_platform_priv *priv; struct ehci_hcd *ehci; - const char *phy_name; int err, irq, phy_num, clk = 0; if (usb_disabled()) @@ -204,36 +197,22 @@ static int ehci_platform_probe(struct platform_device *dev) priv->num_phys = of_count_phandle_with_args(dev->dev.of_node, "phys", "#phy-cells"); - priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1; - priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, - sizeof(struct phy *), GFP_KERNEL); - if (!priv->phys) - return -ENOMEM; + if (priv->num_phys > 0) { + priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, + sizeof(struct phy *), GFP_KERNEL); + if (!priv->phys) + return -ENOMEM; + } else + priv->num_phys = 0; for (phy_num = 0; phy_num < priv->num_phys; phy_num++) { - err = of_property_read_string_index( - dev->dev.of_node, - "phy-names", phy_num, - &phy_name); - - if (err < 0) { - if (priv->num_phys > 1) { - dev_err(&dev->dev, "phy-names not provided"); - goto err_put_hcd; - } else - phy_name = "usb"; - } - - priv->phys[phy_num] = devm_phy_get(&dev->dev, - phy_name); - if (IS_ERR(priv->phys[phy_num])) { - err = PTR_ERR(priv->phys[phy_num]); - if ((priv->num_phys > 1) || - (err == -EPROBE_DEFER)) - goto err_put_hcd; - priv->phys[phy_num] = NULL; - } + priv->phys[phy_num] = devm_of_phy_get_by_index( + &dev->dev, dev->dev.of_node, phy_num); + if (IS_ERR(priv->phys[phy_num])) { + err = PTR_ERR(priv->phys[phy_num]); + goto err_put_hcd; + } } for (clk = 0; clk < EHCI_MAX_CLKS; clk++) { -- 2.3.4 ^ permalink raw reply related [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers 2015-04-22 23:04 ` Arun Ramamurthy (?) (?) @ 2015-04-23 14:31 ` Alan Stern -1 siblings, 0 replies; 92+ messages in thread From: Alan Stern @ 2015-04-23 14:31 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index For patches 3 and 4: Acked-by: Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 14:31 ` Alan Stern 0 siblings, 0 replies; 92+ messages in thread From: Alan Stern @ 2015-04-23 14:31 UTC (permalink / raw) To: linux-arm-kernel On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index For patches 3 and 4: Acked-by: Alan Stern <stern@rowland.harvard.edu> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 14:31 ` Alan Stern 0 siblings, 0 replies; 92+ messages in thread From: Alan Stern @ 2015-04-23 14:31 UTC (permalink / raw) To: linux-arm-kernel On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index For patches 3 and 4: Acked-by: Alan Stern <stern@rowland.harvard.edu> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-04-23 14:31 ` Alan Stern 0 siblings, 0 replies; 92+ messages in thread From: Alan Stern @ 2015-04-23 14:31 UTC (permalink / raw) To: Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Kishon Vijay Abraham I, Greg Kroah-Hartman, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > This patch set adds a new API to get phy by index when multiple > phys are present. This patch is based on discussion with Arnd Bergmann > about dt bindings for multiple phys. > > History: > v1: > - Removed null pointers on Dmitry's suggestion > - Improved documentation in commit messages > - Exported new phy api > v2: > - EHCI and OHCI platform Kconfigs select Generic Phy > to fix build errors in certain configs. > v3: > - Made GENERIC_PHY an invisible option so > that other configs can select it > - Added stubs for devm_of_phy_get_by_index > - Reformated code > > Arun Ramamurthy (4): > phy: phy-core: Make GENERIC_PHY an invisible option > phy: core: Add devm_of_phy_get_by_index to phy-core > usb: ehci-platform: Use devm_of_phy_get_by_index > usb: ohci-platform: Use devm_of_phy_get_by_index For patches 3 and 4: Acked-by: Alan Stern <stern@rowland.harvard.edu> ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers 2015-04-23 14:31 ` Alan Stern (?) (?) @ 2015-05-11 13:44 ` Kishon Vijay Abraham I -1 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 13:44 UTC (permalink / raw) To: Alan Stern, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart Hi, On Thursday 23 April 2015 08:01 PM, Alan Stern wrote: > On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > >> This patch set adds a new API to get phy by index when multiple >> phys are present. This patch is based on discussion with Arnd Bergmann >> about dt bindings for multiple phys. >> >> History: >> v1: >> - Removed null pointers on Dmitry's suggestion >> - Improved documentation in commit messages >> - Exported new phy api >> v2: >> - EHCI and OHCI platform Kconfigs select Generic Phy >> to fix build errors in certain configs. >> v3: >> - Made GENERIC_PHY an invisible option so >> that other configs can select it >> - Added stubs for devm_of_phy_get_by_index >> - Reformated code >> >> Arun Ramamurthy (4): >> phy: phy-core: Make GENERIC_PHY an invisible option >> phy: core: Add devm_of_phy_get_by_index to phy-core >> usb: ehci-platform: Use devm_of_phy_get_by_index >> usb: ohci-platform: Use devm_of_phy_get_by_index > > For patches 3 and 4: > > Acked-by: Alan Stern <stern@rowland.harvard.edu> merged this to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-05-11 13:44 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 13:56 UTC (permalink / raw) To: linux-arm-kernel Hi, On Thursday 23 April 2015 08:01 PM, Alan Stern wrote: > On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > >> This patch set adds a new API to get phy by index when multiple >> phys are present. This patch is based on discussion with Arnd Bergmann >> about dt bindings for multiple phys. >> >> History: >> v1: >> - Removed null pointers on Dmitry's suggestion >> - Improved documentation in commit messages >> - Exported new phy api >> v2: >> - EHCI and OHCI platform Kconfigs select Generic Phy >> to fix build errors in certain configs. >> v3: >> - Made GENERIC_PHY an invisible option so >> that other configs can select it >> - Added stubs for devm_of_phy_get_by_index >> - Reformated code >> >> Arun Ramamurthy (4): >> phy: phy-core: Make GENERIC_PHY an invisible option >> phy: core: Add devm_of_phy_get_by_index to phy-core >> usb: ehci-platform: Use devm_of_phy_get_by_index >> usb: ohci-platform: Use devm_of_phy_get_by_index > > For patches 3 and 4: > > Acked-by: Alan Stern <stern@rowland.harvard.edu> merged this to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-05-11 13:44 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 13:44 UTC (permalink / raw) To: linux-arm-kernel Hi, On Thursday 23 April 2015 08:01 PM, Alan Stern wrote: > On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > >> This patch set adds a new API to get phy by index when multiple >> phys are present. This patch is based on discussion with Arnd Bergmann >> about dt bindings for multiple phys. >> >> History: >> v1: >> - Removed null pointers on Dmitry's suggestion >> - Improved documentation in commit messages >> - Exported new phy api >> v2: >> - EHCI and OHCI platform Kconfigs select Generic Phy >> to fix build errors in certain configs. >> v3: >> - Made GENERIC_PHY an invisible option so >> that other configs can select it >> - Added stubs for devm_of_phy_get_by_index >> - Reformated code >> >> Arun Ramamurthy (4): >> phy: phy-core: Make GENERIC_PHY an invisible option >> phy: core: Add devm_of_phy_get_by_index to phy-core >> usb: ehci-platform: Use devm_of_phy_get_by_index >> usb: ohci-platform: Use devm_of_phy_get_by_index > > For patches 3 and 4: > > Acked-by: Alan Stern <stern@rowland.harvard.edu> merged this to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
* Re: [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers @ 2015-05-11 13:44 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 92+ messages in thread From: Kishon Vijay Abraham I @ 2015-05-11 13:44 UTC (permalink / raw) To: Alan Stern, Arun Ramamurthy Cc: Jonathan Corbet, Tejun Heo, Kyungmin Park, Sylwester Nawrocki, Mauro Carvalho Chehab, Kukjin Kim, Greg Kroah-Hartman, Tony Prisk, Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Arnd Bergmann, Felipe Balbi, Mathias Nyman, Paul Bolle, Thomas Pugliese, Srinivas Kandagatla, Masanari Iida, David Mosberger, Peter Griffin, Gregory CLEMENT, Laurent Pinchart, Kevin Hao, Jean Delvare, linux-doc, linux-kernel, linux-ide, linux-media, linux-arm-kernel, linux-samsung-soc, linux-usb, linux-fbdev, Dmitry Torokhov, Anatol Pomazau, Jonathan Richardson, Scott Branden, Ray Jui, bcm-kernel-feedback-list Hi, On Thursday 23 April 2015 08:01 PM, Alan Stern wrote: > On Wed, 22 Apr 2015, Arun Ramamurthy wrote: > >> This patch set adds a new API to get phy by index when multiple >> phys are present. This patch is based on discussion with Arnd Bergmann >> about dt bindings for multiple phys. >> >> History: >> v1: >> - Removed null pointers on Dmitry's suggestion >> - Improved documentation in commit messages >> - Exported new phy api >> v2: >> - EHCI and OHCI platform Kconfigs select Generic Phy >> to fix build errors in certain configs. >> v3: >> - Made GENERIC_PHY an invisible option so >> that other configs can select it >> - Added stubs for devm_of_phy_get_by_index >> - Reformated code >> >> Arun Ramamurthy (4): >> phy: phy-core: Make GENERIC_PHY an invisible option >> phy: core: Add devm_of_phy_get_by_index to phy-core >> usb: ehci-platform: Use devm_of_phy_get_by_index >> usb: ohci-platform: Use devm_of_phy_get_by_index > > For patches 3 and 4: > > Acked-by: Alan Stern <stern@rowland.harvard.edu> merged this to linux-phy. Thanks Kishon ^ permalink raw reply [flat|nested] 92+ messages in thread
end of thread, other threads:[~2015-06-01 18:42 UTC | newest] Thread overview: 92+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-04-22 23:04 [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` [PATCHv3 1/4] phy: phy-core: Make GENERIC_PHY an invisible option Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-05-14 21:57 ` Mauro Carvalho Chehab 2015-05-14 21:57 ` Mauro Carvalho Chehab 2015-05-14 21:57 ` Mauro Carvalho Chehab 2015-05-14 21:57 ` Mauro Carvalho Chehab 2015-05-15 0:52 ` Felipe Balbi 2015-05-15 0:52 ` Felipe Balbi 2015-05-15 0:52 ` Felipe Balbi 2015-05-15 0:52 ` Felipe Balbi 2015-05-25 21:19 ` Arun Ramamurthy 2015-05-25 21:19 ` Arun Ramamurthy 2015-05-25 21:19 ` Arun Ramamurthy 2015-05-25 21:19 ` Arun Ramamurthy 2015-05-26 14:19 ` Felipe Balbi 2015-05-26 14:19 ` Felipe Balbi 2015-05-26 14:19 ` Felipe Balbi 2015-05-26 14:19 ` Felipe Balbi 2015-05-26 18:37 ` Arun Ramamurthy 2015-05-26 18:37 ` Arun Ramamurthy 2015-05-26 18:37 ` Arun Ramamurthy 2015-05-26 18:37 ` Arun Ramamurthy 2015-05-26 18:39 ` Felipe Balbi 2015-05-26 18:39 ` Felipe Balbi 2015-05-26 18:39 ` Felipe Balbi 2015-05-26 18:39 ` Felipe Balbi 2015-05-29 11:34 ` Kishon Vijay Abraham I 2015-05-29 11:46 ` Kishon Vijay Abraham I 2015-05-29 11:34 ` Kishon Vijay Abraham I 2015-05-29 11:34 ` Kishon Vijay Abraham I 2015-05-29 15:04 ` Felipe Balbi 2015-05-29 15:04 ` Felipe Balbi 2015-05-29 15:04 ` Felipe Balbi 2015-05-29 15:04 ` Felipe Balbi 2015-06-01 12:52 ` Kishon Vijay Abraham I 2015-06-01 12:54 ` Kishon Vijay Abraham I 2015-06-01 12:52 ` Kishon Vijay Abraham I 2015-06-01 12:52 ` Kishon Vijay Abraham I 2015-06-01 18:39 ` Felipe Balbi 2015-06-01 18:39 ` Felipe Balbi 2015-06-01 18:39 ` Felipe Balbi 2015-06-01 18:39 ` Felipe Balbi 2015-05-29 12:37 ` Kishon Vijay Abraham I 2015-05-29 12:49 ` Kishon Vijay Abraham I 2015-05-29 12:37 ` Kishon Vijay Abraham I 2015-05-29 12:37 ` Kishon Vijay Abraham I 2015-05-29 12:59 ` Maxime Coquelin 2015-05-29 12:59 ` Maxime Coquelin 2015-05-29 12:59 ` Maxime Coquelin 2015-05-29 12:59 ` Maxime Coquelin [not found] ` <55685D7E.9000700-l0cyMroinI0@public.gmane.org> 2015-05-29 13:09 ` Tejun Heo 2015-05-29 13:09 ` Tejun Heo 2015-05-29 13:09 ` Tejun Heo 2015-05-29 13:09 ` Tejun Heo 2015-05-29 13:13 ` Sylwester Nawrocki 2015-05-29 13:13 ` Sylwester Nawrocki 2015-05-29 13:13 ` Sylwester Nawrocki 2015-05-29 13:13 ` Sylwester Nawrocki 2015-04-22 23:04 ` [PATCHv3 4/4] usb: ohci-platform: Use devm_of_phy_get_by_index Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-23 7:42 ` [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers Hans de Goede 2015-04-23 7:42 ` Hans de Goede 2015-04-23 7:42 ` Hans de Goede 2015-04-23 7:42 ` Hans de Goede [not found] ` <1429743853-10254-1-git-send-email-arun.ramamurthy-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> 2015-04-22 23:04 ` [PATCHv3 2/4] phy: core: Add devm_of_phy_get_by_index to phy-core Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-05-11 15:09 ` Kishon Vijay Abraham I 2015-05-11 15:21 ` Kishon Vijay Abraham I 2015-05-11 15:09 ` Kishon Vijay Abraham I 2015-05-11 15:09 ` Kishon Vijay Abraham I 2015-04-22 23:04 ` [PATCHv3 3/4] usb: ehci-platform: Use devm_of_phy_get_by_index Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-22 23:04 ` Arun Ramamurthy 2015-04-23 14:31 ` [PATCHv3 0/4] add devm_of_phy_get_by_index and update platform drivers Alan Stern 2015-04-23 14:31 ` Alan Stern 2015-04-23 14:31 ` Alan Stern 2015-04-23 14:31 ` Alan Stern 2015-05-11 13:44 ` Kishon Vijay Abraham I 2015-05-11 13:56 ` Kishon Vijay Abraham I 2015-05-11 13:44 ` Kishon Vijay Abraham I 2015-05-11 13:44 ` Kishon Vijay Abraham I
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.