All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Cartwright <joshc@codeaurora.org>
To: "Ivan T. Ivanov" <iivanov@mm-sol.com>
Cc: Peter Chen <Peter.Chen@freescale.com>,
	Grant Likely <grant.likely@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 2/3] usb: chipidea: msm: Add device tree support
Date: Tue, 18 Feb 2014 08:08:54 -0600	[thread overview]
Message-ID: <20140218140854.GC31116@joshc.qualcomm.com> (raw)
In-Reply-To: <1392729681-21022-3-git-send-email-iivanov@mm-sol.com>

Hey Ivan-

Nit below.

On Tue, Feb 18, 2014 at 03:21:20PM +0200, Ivan T. Ivanov wrote:
> From: "Ivan T. Ivanov" <iivanov@mm-sol.com>
> 
> Allows controller to be specified via device tree.
> Pass PHY phandle specified in DT to core driver.
> 
> Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
> ---
>  drivers/usb/chipidea/ci_hdrc_msm.c |   23 ++++++++++++++++++++++-
>  1 file changed, 22 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c
> index 2d51d85..3f67f1f 100644
> --- a/drivers/usb/chipidea/ci_hdrc_msm.c
> +++ b/drivers/usb/chipidea/ci_hdrc_msm.c
> @@ -57,9 +57,21 @@ static struct ci_hdrc_platform_data ci_hdrc_msm_platdata = {
>  static int ci_hdrc_msm_probe(struct platform_device *pdev)
>  {
>  	struct platform_device *plat_ci;
> +	struct usb_phy *phy;
>  
>  	dev_dbg(&pdev->dev, "ci_hdrc_msm_probe\n");
>  
> +	/*
> +	 * OTG(PHY) driver takes care of PHY initialization, clock management,
> +	 * powering up VBUS, mapping of registers address space and power
> +	 * management.
> +	 */
> +	phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0);
> +	if (IS_ERR(phy))
> +		return PTR_ERR(phy);
> +
> +	ci_hdrc_msm_platdata.phy = phy;
> +
>  	plat_ci = ci_hdrc_add_device(&pdev->dev,
>  				pdev->resource, pdev->num_resources,
>  				&ci_hdrc_msm_platdata);
> @@ -86,10 +98,19 @@ static int ci_hdrc_msm_remove(struct platform_device *pdev)
>  	return 0;
>  }
>  
> +static struct of_device_id msm_ci_dt_match[] = {

const?

> +	{ .compatible = "qcom,ci-hdrc", },
> +	{ }
> +};
> +MODULE_DEVICE_TABLE(of, msm_ci_dt_match);

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

  reply	other threads:[~2014-02-18 14:11 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 13:21 [PATCH v2 0/3] usb: chipidea: msm: Clean and fix glue layer driver Ivan T. Ivanov
2014-02-18 13:21 ` Ivan T. Ivanov
2014-02-18 13:21 ` [PATCH v2 1/3] usb: chipidea: msm: Add device tree binding information Ivan T. Ivanov
2014-02-18 16:13   ` Josh Cartwright
2014-02-18 17:27     ` Ivan T. Ivanov
2014-02-18 19:07       ` Josh Cartwright
2014-02-18 21:26   ` Courtney Cavin
2014-02-19 15:43     ` Ivan T. Ivanov
2014-02-19 17:46       ` Courtney Cavin
2014-02-24 10:18         ` Ivan T. Ivanov
2014-02-25  1:57           ` Peter Chen
2014-02-25  1:57             ` Peter Chen
     [not found] ` <1392729681-21022-1-git-send-email-iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org>
2014-02-18 13:21   ` [PATCH v2 2/3] usb: chipidea: msm: Add device tree support Ivan T. Ivanov
2014-02-18 13:21     ` Ivan T. Ivanov
2014-02-18 14:08     ` Josh Cartwright [this message]
2014-02-18 17:14       ` Ivan T. Ivanov
     [not found]     ` <1392729681-21022-3-git-send-email-iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org>
2014-02-18 17:53       ` Sergei Shtylyov
2014-02-18 17:53         ` Sergei Shtylyov
     [not found]         ` <53039E2E.2030503-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-02-18 17:14           ` Ivan T. Ivanov
2014-02-18 17:14             ` Ivan T. Ivanov
2014-02-18 18:31             ` Sergei Shtylyov
     [not found]               ` <5303A71B.7060208-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
2014-02-18 21:34                 ` Courtney Cavin
2014-02-18 21:34                   ` Courtney Cavin
2014-02-18 23:32                   ` Sergei Shtylyov
2014-02-19 15:48                 ` Ivan T. Ivanov
2014-02-19 15:48                   ` Ivan T. Ivanov
2014-02-19 20:24                   ` Sergei Shtylyov
2014-02-19 20:24                     ` Sergei Shtylyov
2014-02-20  9:53                     ` [PATCH RESEND v2 1/3] usb: chipidea: msm: Add device tree binding information Ivan T. Ivanov
2014-02-24  8:15                       ` Peter Chen
2014-02-24 10:09                         ` Ivan T. Ivanov
2014-02-24 10:19                           ` Peter Chen
2014-02-18 13:21 ` [PATCH v2 3/3] usb: chipidea: msm: Initialize offset of the capability registers Ivan T. Ivanov
2014-02-19  6:21 ` [PATCH v2 0/3] usb: chipidea: msm: Clean and fix glue layer driver Tim Bird
2014-02-19 10:32   ` Ivan T. Ivanov
2014-02-19 14:58   ` Ivan T. Ivanov
2014-02-20  4:07     ` Tim Bird
2014-02-20  4:07       ` Tim Bird

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=20140218140854.GC31116@joshc.qualcomm.com \
    --to=joshc@codeaurora.org \
    --cc=Peter.Chen@freescale.com \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=iivanov@mm-sol.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /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 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.