Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp269053ima; Tue, 5 Feb 2019 22:59:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbXMUNUF3+uPMPjWOy6hZMNJfOJky3OaOGqjGp/MSg5iZyv+kGV64x8jg1+kSYiLR39vvcH X-Received: by 2002:a63:e545:: with SMTP id z5mr8354805pgj.195.1549436372155; Tue, 05 Feb 2019 22:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549436372; cv=none; d=google.com; s=arc-20160816; b=dhuMJgwIf/POfHpx3oap3ma7X4afbGiWCgFZJQxnKwPNJ9SRyZwIrZBiQUeSbmUPFs UArww32ef0GYzkArbbigQ9VgKurC0HhaahhiJpqI03peUNjKQ3YBVTi6V8PwiPjHhyiq YlwRR1al4RyWGg15XRqqJXBbML8rqwcUqaPSR54mLMcrrPh63B4gBOZNg7Rjogi+B5iC AbrEK75Hxqmv3jTIWuxHycbZ+u04Z0e8SXZWXqyRXlZacXBlalY/pEIumUFzeIHP8nZA J85hb48WakDR3uLLdxENQhqi6MgMM6L2BKX1ZFsyrgfemqu06bH4bna/KnOSZzYJvnUM yiTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:to:from; bh=VFot4d2Mk+sPN8/5Rr5XKAyJjSCVkXB18v+GdAZVV/w=; b=psr8Dw8iCzEPds8L0j4VGn7szqsHfiBqTRaS0Bjxm4lXyAGyQTUO4PPsrZQ+1THZXQ zeT8u5rw4h8oWZkV2Q+kiPkQasr8nBwguJ/INysBVDuTeDPKrEelBL/KTDtfVealqJYb yZVDmrUgEduQeiuT/GDgPAdrKgmRh1fro2r5wKs/y2yTgV8NkRt30W0jCT5imOYZFfq7 eykfA79wscRLexM+nO3A/ZQPxFdXS2T6bdIbsxT6OYH/yWR4jX1/Y+BI3HjTISrmvHGf LMeaWnGGjpwEZiH7EeW0WtNlOGSMBuIr2lr+NvPovT1RKREzATFrEM5vV50uR/7JKFm9 /7FA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si4982985pgl.209.2019.02.05.22.58.52; Tue, 05 Feb 2019 22:59:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727418AbfBFGtV (ORCPT + 99 others); Wed, 6 Feb 2019 01:49:21 -0500 Received: from mga04.intel.com ([192.55.52.120]:53878 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfBFGtV (ORCPT ); Wed, 6 Feb 2019 01:49:21 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2019 22:49:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,338,1544515200"; d="asc'?scan'208";a="112747819" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.72.175]) by orsmga007.jf.intel.com with ESMTP; 05 Feb 2019 22:49:17 -0800 From: Felipe Balbi To: Jochen Sprickerhof , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Vivek Gautam , Andrzej Pietrasiewicz , Kishon Vijay Abraham I Subject: Re: [PATCH] usb: dwc3: Enable GBit Ethernet on Odroid XU4 In-Reply-To: <20190121140204.GA2360@vis> References: <20190121140204.GA2360@vis> Date: Wed, 06 Feb 2019 08:49:13 +0200 Message-ID: <87ftt1mmxi.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable hi, Jochen Sprickerhof writes: > Note that it only works with USB_XHCI_PLATFORM=3Dy. Also it needs a hard > reset when coming from an unpatched kernel. > > This was included in the original patch in > https://patchwork.kernel.org/patch/9992809/ but got dropped when > accepted in d8c80bb3b55b phy: exynos5-usbdrd: Calibrate LOS levels for > exynos5420/5800. > > Old behaviour: > > $ lsusb -t > /: Bus 06.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci-hcd/1p, 5000M > /: Bus 05.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci-hcd/1p, 480M > |__ Port 1: Dev 2, If 0, Class=3DVendor Specific Class, Driver=3Dr815= 2, 480M > > New behaviour: > > $ lsusb -t > /: Bus 06.Port 1: Dev 1, Class=3Droot_hub, Driver=3Dxhci-hcd/1p, 5000M > |__ Port 1: Dev 2, If 0, Class=3DVendor Specific Class, Driver=3Dr815= 2, 5000M > > Tested on Debian unstable using u-boot-exynos (2018.11+dfsg-2) and Linux > 4.19.14. > > Signed-off-by: Jochen Sprickerhof > --- > > Hi, > > I'm not sure why this it only works with the driver compiled into the > kernel nor why it needs a hard reset or why it was the line was dropped > when the patch was accepted. Would be great to get some feedback of the > authors. > > Cheers Jochen > > drivers/usb/dwc3/core.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > index a1b126f90261..0008bccc30aa 100644 > --- a/drivers/usb/dwc3/core.c > +++ b/drivers/usb/dwc3/core.c > @@ -1169,7 +1169,8 @@ static int dwc3_core_init_mode(struct dwc3 *dwc) > dev_err(dev, "failed to initialize host\n"); > return ret; > } > - phy_calibrate(dwc->usb2_generic_phy); > + if (dwc->usb2_generic_phy) > + phy_calibrate(dwc->usb2_generic_phy); I can't see why this is necessary. What's really going on? Why is this branch helping? =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAlxag2kACgkQzL64meEa mQarTw/+Ns4rlBwr4YIbrETU1mmX0mMc/THNbHQm8ZyV7LYTN4s5+EhwxI7cvm8i mgH55ePYXst4nac7HhKn+Jk4aRO7tA0n3B4YHQaGxlWkJeqlCjFhUb8B+ZsN5/mY MIyPFmxGaxjeP5bfvNfbMbPnTAH1TaeFbwTAFNVpvfMOJLJAou9n3yR7KeUepyIf RVoVZxQzy328LHODpzCuWNbJLZJ2Cu4VVWpeLuSXKt373+Or5ELvK2svX9e6HzGy XiCVdcZYe0OzQ75DDx7vkjcoNBH1Ao4Rz5ONW92kSj0F8W3abbA4hk1Gz8D3gAnw 5FCtv7ulpGNx5IdLCYoSayEyrY39HzWRiaVw9ZfM2hvvOokkJxyHtGmfZcE/oZMO XG2pcMrWNJjcDp7hnbTQXgkIN9b86IEt3SIUsl45Ng1l/0rEY/c0s/IqiYXa7FSy HbculWcSRBx2h8GrNDCYyamh9kNtF7WwN9R3O8n/L5csdh/NSbjEAP3HYvvnag7Y Bfov2cDeFfKSZBe0stRa2Y3kHxmHc/T+sJoLJlO8993hTdjLraCDY2ByBS8TI0yK dv45wEWLsZm7MhEC5jKqd7WxoM45/I/oCPB380wjNKY6svsGQMV2MkubWWTiDkrh ff2Mu3qrng+kLW3mj/2noNdasN2IdQHUcazwEmaCR2nGxstnjJ8= =USvh -----END PGP SIGNATURE----- --=-=-=--