public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ramon Fried <ramon.fried@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 09/13] ehci: msm: use init_type in probe
Date: Wed, 19 Sep 2018 21:28:17 +0300	[thread overview]
Message-ID: <20180919182821.19575-10-ramon.fried@gmail.com> (raw)
In-Reply-To: <20180919182821.19575-1-ramon.fried@gmail.com>

Change ehci_usb_probe() function to initialize the
USB according to the init_type provided.

Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
---

 drivers/usb/host/ehci-msm.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index a27a5833dd..00d6bb8231 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -49,6 +49,7 @@ static int ehci_usb_probe(struct udevice *dev)
 {
 	struct msm_ehci_priv *p = dev_get_priv(dev);
 	struct usb_ehci *ehci = p->ehci;
+	struct usb_platdata *plat = dev_get_platdata(dev);
 	struct ehci_hccr *hccr;
 	struct ehci_hcor *hcor;
 	int ret;
@@ -61,11 +62,12 @@ static int ehci_usb_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
-	ret = board_usb_init(0, USB_INIT_HOST);
+	ret = board_usb_init(0, plat->init_type);
 	if (ret < 0)
 		return ret;
 
-	return ehci_register(dev, hccr, hcor, &msm_ehci_ops, 0, USB_INIT_HOST);
+	return ehci_register(dev, hccr, hcor, &msm_ehci_ops, 0,
+			     plat->init_type);
 }
 
 static int ehci_usb_remove(struct udevice *dev)
-- 
2.18.0

  parent reply	other threads:[~2018-09-19 18:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19 18:28 [U-Boot] [PATCH v1 00/13] Introduce fastboot support for dragonboard410c Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 01/13] ehci: Replace board_prepare_usb with board_usb_init Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 02/13] ehci: msm: Add missing platdata Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 03/13] dts: db410c: add alias for USB Ramon Fried
2018-09-19 19:28   ` Peter Robinson
2018-09-19 19:32     ` Ramon Fried
2018-09-19 20:03       ` Peter Robinson
2018-09-19 18:28 ` [U-Boot] [PATCH v1 04/13] db410c: serial# env using msm board serial Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 05/13] phy: db410c: Add MSM USB PHY driver Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 06/13] dts: db410c: Add bindings for MSM USB phy Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 07/13] configs: db410c: Enable USB PHY Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 08/13] ehci: msm: switch to generic PHY uclass Ramon Fried
2018-09-19 18:28 ` Ramon Fried [this message]
2018-09-19 18:28 ` [U-Boot] [PATCH v1 10/13] usb:ci_udc: Introduce init_after_reset phy function Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 11/13] usb: ehci-msm: Add init_after_reset for CI_UDC Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 12/13] DB410c: Enable fastboot support Ramon Fried
2018-09-19 18:28 ` [U-Boot] [PATCH v1 13/13] db410c: automatically launch fastboot Ramon Fried

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=20180919182821.19575-10-ramon.fried@gmail.com \
    --to=ramon.fried@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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