[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140218140854.GC31116@joshc.qualcomm.com>
Date: Tue, 18 Feb 2014 08:08:54 -0600
From: Josh Cartwright <joshc@...eaurora.org>
To: "Ivan T. Ivanov" <iivanov@...sol.com>
Cc: Peter Chen <Peter.Chen@...escale.com>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v2 2/3] usb: chipidea: msm: Add device tree support
Hey Ivan-
Nit below.
On Tue, Feb 18, 2014 at 03:21:20PM +0200, Ivan T. Ivanov wrote:
> From: "Ivan T. Ivanov" <iivanov@...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@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists