mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kishon Vijay Abraham I <kishon@ti.com>
To: Sachin Kamat <sachin.kamat@samsung.com>, <linux-kernel@vger.kernel.org>
Cc: <linux-samsung-soc@vger.kernel.org>, <dianders@chromium.org>,
	<gautam.vivek@samsung.com>, <spk.linux@gmail.com>,
	<tomasz.figa@gmail.com>, <jg1.han@samsung.com>
Subject: Re: [PATCH v2 1/2] phy: Kconfig: Re-organize Exynos USB 2.0 PHY configs
Date: Mon, 14 Jul 2014 14:26:18 +0530	[thread overview]
Message-ID: <53C39B32.9060001@ti.com> (raw)
In-Reply-To: <1404906569-28026-1-git-send-email-sachin.kamat@samsung.com>

Hi,

On Wednesday 09 July 2014 05:19 PM, Sachin Kamat wrote:
> Since the USB 2.0 PHYs are required with EHCI/OHCI USB drivers and
> USB gadget controller supported by the DWC2 gadget driver, make it
> depend on them and default to ARCH_EXYNOS as they are meant for
> Exynos platforms. Also, make the sub-drivers silent options enabling
> them based on the SoC platforms that they are meant to work with. This
> will make life easier for end users who do not have any way knowing the
> dependencies.

There is a new Exynos PHY in town, Exynos 3250. Can you rebase your patch on
top of that?

Thanks
Kishon
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
> ---
> Changes since v1:
> * Added dependency on DWC2 gadget driver as suggested by Tomasz Figa.
> ---
>  drivers/phy/Kconfig |   35 +++++++++++------------------------
>  1 file changed, 11 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
> index fcdfe7c0e4a7..128f8b92b55c 100644
> --- a/drivers/phy/Kconfig
> +++ b/drivers/phy/Kconfig
> @@ -123,43 +123,30 @@ config PHY_SUN4I_USB
>  config PHY_SAMSUNG_USB2
>  	tristate "Samsung USB 2.0 PHY driver"
>  	depends on HAS_IOMEM
> +	depends on USB_EHCI_EXYNOS || USB_OHCI_EXYNOS || USB_DWC2
>  	select GENERIC_PHY
>  	select MFD_SYSCON
> +	default ARCH_EXYNOS
>  	help
>  	  Enable this to support the Samsung USB 2.0 PHY driver for Samsung
> -	  SoCs. This driver provides the interface for USB 2.0 PHY. Support for
> -	  particular SoCs has to be enabled in addition to this driver. Number
> -	  and type of supported phys depends on the SoC.
> +	  SoCs. This driver provides the interface for USB 2.0 PHY. Support
> +	  for particular PHYs will be enabled based on the SoC type in addition
> +	  to this driver.
>  
>  config PHY_EXYNOS4210_USB2
> -	bool "Support for Exynos 4210"
> +	bool
>  	depends on PHY_SAMSUNG_USB2
> -	depends on CPU_EXYNOS4210
> -	help
> -	  Enable USB PHY support for Exynos 4210. This option requires that
> -	  Samsung USB 2.0 PHY driver is enabled and means that support for this
> -	  particular SoC is compiled in the driver. In case of Exynos 4210 four
> -	  phys are available - device, host, HSIC0 and HSIC1.
> +	default CPU_EXYNOS4210
>  
>  config PHY_EXYNOS4X12_USB2
> -	bool "Support for Exynos 4x12"
> +	bool
>  	depends on PHY_SAMSUNG_USB2
> -	depends on (SOC_EXYNOS4212 || SOC_EXYNOS4412)
> -	help
> -	  Enable USB PHY support for Exynos 4x12. This option requires that
> -	  Samsung USB 2.0 PHY driver is enabled and means that support for this
> -	  particular SoC is compiled in the driver. In case of Exynos 4x12 four
> -	  phys are available - device, host, HSIC0 and HSIC1.
> +	default SOC_EXYNOS4212 || SOC_EXYNOS4412
>  
>  config PHY_EXYNOS5250_USB2
> -	bool "Support for Exynos 5250"
> +	bool
>  	depends on PHY_SAMSUNG_USB2
> -	depends on SOC_EXYNOS5250
> -	help
> -	  Enable USB PHY support for Exynos 5250. This option requires that
> -	  Samsung USB 2.0 PHY driver is enabled and means that support for this
> -	  particular SoC is compiled in the driver. In case of Exynos 5250 four
> -	  phys are available - device, host, HSIC0 and HSIC.
> +	default SOC_EXYNOS5250 || SOC_EXYNOS5420
>  
>  config PHY_EXYNOS5_USBDRD
>  	tristate "Exynos5 SoC series USB DRD PHY driver"
> 

  parent reply	other threads:[~2014-07-14  8:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09 11:49 Sachin Kamat
2014-07-09 11:49 ` [PATCH v2 2/2] phy: Kconfig: Update config for Exynos USB DRD Sachin Kamat
2014-07-10  6:51   ` Jingoo Han
2014-07-10  6:50 ` [PATCH v2 1/2] phy: Kconfig: Re-organize Exynos USB 2.0 PHY configs Jingoo Han
2014-07-14  8:56 ` Kishon Vijay Abraham I [this message]
2014-07-14  8:59   ` Sachin Kamat
2014-07-14  9:02     ` Kishon Vijay Abraham I
2014-07-14  9:06       ` Sachin Kamat
2014-07-14  9:09         ` Kishon Vijay Abraham I
2014-07-14  9:11           ` Sachin Kamat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53C39B32.9060001@ti.com \
    --to=kishon@ti.com \
    --cc=dianders@chromium.org \
    --cc=gautam.vivek@samsung.com \
    --cc=jg1.han@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=sachin.kamat@samsung.com \
    --cc=spk.linux@gmail.com \
    --cc=tomasz.figa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome