Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755397AbcCPNPM (ORCPT ); Wed, 16 Mar 2016 09:15:12 -0400 Received: from mga14.intel.com ([192.55.52.115]:38677 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755293AbcCPNPL (ORCPT ); Wed, 16 Mar 2016 09:15:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,344,1455004800"; d="asc'?scan'208";a="925321322" From: Felipe Balbi To: Roger Quadros Cc: nsekhar@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: Re: [PATCH 1/2] usb: dwc3: core: Introduce dwc3_device_reinit() In-Reply-To: <1458133551-3071-2-git-send-email-rogerq@ti.com> References: <1458133551-3071-1-git-send-email-rogerq@ti.com> <1458133551-3071-2-git-send-email-rogerq@ti.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.0.90.3 (x86_64-pc-linux-gnu) Date: Wed, 16 Mar 2016 15:12:56 +0200 Message-ID: <87r3fah8h3.fsf@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2305 Lines: 63 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Roger Quadros writes: > [ text/plain ] > We will need this function for a workaround. > The function issues a softreset only to the device > controller and performs minimal re-initialization > so that the device controller can be usable. > > As some code is similar to dwc3_core_init() take out > common code into dwc3_get_gctl_quirks(). > > We add a new member (prtcap_mode) to struct dwc3 to > keep track of the current mode in the PRTCAPDIR register. > > Signed-off-by: Roger Quadros I must say, I don't like this at all :-p There's ONE known silicon which needs this because of a poor silicon integration which took an IP with a known erratum where it can't be made to work on lower speeds and STILL was integrated without a superspeed PHY. There's a reason why I never tried to push this upstream myself ;-) I'm really thinking we might be better off adding a quirk flag to skip the metastability workaround and allow this ONE silicon to set the controller to lower speed. John, can you check with your colleagues if we would ever fall into STAR#9000525659 if we set maximum speed to high speed during driver probe and never touch it again ? I would assume we don't really fall into the metastability workaround, right ? We're not doing any sort of PM for dwc3... =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJW6VvYAAoJEIaOsuA1yqRE+CsP/RpFfdtBnYLbdRIK0ZaIpPE3 rW1Tw769OqzbtE38yFlLXXMK6cDSBh15mjkJNgsFCUdHS6BokRd08/jus8QM6E5O IGQ9gTNymacnRA6VkA0ou4ZKlU9wNPsOq70eW3MBxapxjtLQy3EQFGkOLh+ANAoz j1GAVCzcypRQAr5MhPtQHTZt7LCxFkqSnXN+X+/Gtlh+cTsRMQkH/rPgvujKJ+fI 4UMQqLE9T3+LkeHlSf11n3J7rKrsBrdA2nl1UVx4jSHF3EQJ1fjEFKIk99Z13PXN w5Gy/EU8q833NjFveANSiBJgAk+5ZxjB+NsROECBobDnq41NosIJFYcm4BkfwWwN uKa5/ZlmoHO0EIiJdth35OEOsdtKzd6z7fPx7XZehG7cVJ+inTXjqTUURTDJALz8 N+BpJ45oMI88d349Oi/YrNzdygdmGBo5JStg9S73taogyv/EeS6mLPF01dx8+F7P 79QdLdpGCrQOO/atnUBnmPEK81iaiKmw5fTD4PlhEBhSM1VhcvczyjBiEchigPXI F/gQDqaoD1OHaKtrNXgqZDgfh3Dvb3yu/ZH5dV1DAOtIyyAfVOhhGp6VMoZR6Xe2 NGHVJW9qFx107e3UvI+Qvxj+CAqe8FM/YdwF1dGK7a2q8Xlf0T6Nr6kPAjf2hrYW RdDR1j0d1pTKOAn3tCPP =Hz0Q -----END PGP SIGNATURE----- --=-=-=--