From patchwork Fri Sep 21 10:35:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 973152 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LldcnopA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42Gqsb1t7Kz9s7T for ; Fri, 21 Sep 2018 20:41:55 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 01B77C21E47; Fri, 21 Sep 2018 10:39:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 180C9C21E12; Fri, 21 Sep 2018 10:37:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6603DC21E3A; Fri, 21 Sep 2018 10:36:52 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id 3660AC21E12 for ; Fri, 21 Sep 2018 10:36:45 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id q8-v6so2680292wmq.4 for ; Fri, 21 Sep 2018 03:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1ZHwHoebd9rgK5k/5A+32Jyj5u+Ndg70EvwG5lbr/gA=; b=LldcnopAtTnRG4zalshM8Orf3nyGd714PlJ4iuT9hAN9Js5M0y+j/428Prdf6OfrLC Ihe4UuFbQTvPSuCZt+Rck1E0MsTmyaKIp0mOahcQ1sIefQq22dxcqYzpQQIbWsPTdkI6 taXpmSsU0yh2YdxZr5fx99H8/1pP8mV8GM54oh+XiDINCrt6JVjPYGw4spjKqyqTpcXy yy/Pj/OCkKvHrDjmxR7iHjh+QevqOja4ZCOTQibIO+kRIwbiUMS2L5kAoy/mpIDMqlqx 4sMgJNw0pq1/5Dkglk78zow5Ncq6psmjCvSu0BtgGuG0fL8lib1wmGOcY/TLDrh98KAi 1vXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1ZHwHoebd9rgK5k/5A+32Jyj5u+Ndg70EvwG5lbr/gA=; b=QJFuGhTDYNhNfZ4HI82zwFD5yy5LowF+HVj6221+MCKXzZgWbXYLDvxxf02FDI92Px n+NG4J5r9XzLZx7KwPN1NsPtiaZgww+RUIvPJIWhwHo0sjJoylWYAoTth489F9WjxDQz zWoJJwU18xVfacN+imSxFCC8h3D/tmVRRB0zestJWLO8niL+wHDVmHFTOy2dRFKNcLVy sZzLQT3phoDzg9p5+b8s0NuKWK2sEj3JxMrqtGYfd+UM/j6VoyIwjsX+Jw0P8yEuV/p4 oKo+s6jVTCM1HVdpBcsVh7ATtE0RWrKVynCflBiKytz2/tO18d2UmV8uSW546NZl7jJd GjKw== X-Gm-Message-State: APzg51B2myguX4so/VGk/W9UNB1GyryEvvofS0fq91ojOyIKcxde0K8H bND6iTm3S5FyuwZtTFFRfnpJFYrCNhkl0A== X-Google-Smtp-Source: ANB0VdaVS6ZQSOLJY27QTVgCaDocd2qVkrOuyOHeoQoXn7AoVPI4vMIbULTW3VfUJ/+nm6SuJXAyOg== X-Received: by 2002:a1c:e141:: with SMTP id y62-v6mr2568171wmg.138.1537526204522; Fri, 21 Sep 2018 03:36:44 -0700 (PDT) Received: from localhost.localdomain ([5.102.238.49]) by smtp.gmail.com with ESMTPSA id 204-v6sm6770843wmh.25.2018.09.21.03.36.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 03:36:43 -0700 (PDT) From: Ramon Fried To: u-boot@lists.denx.de Date: Fri, 21 Sep 2018 13:35:51 +0300 Message-Id: <20180921103555.16240-10-ramon.fried@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180921103555.16240-1-ramon.fried@gmail.com> References: <20180921103555.16240-1-ramon.fried@gmail.com> Cc: Marek Vasut Subject: [U-Boot] [PATCH v2 09/14] ehci: msm: use init_type in probe X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Change ehci_usb_probe() function to initialize the USB according to the init_type provided. Signed-off-by: Ramon Fried --- Changes in v2: None 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)