Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp311938ybk; Fri, 15 May 2020 01:07:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDmOws2rFP2EgHwshza2mHY01aLnhz0jOTXjroWYhKepu8HBUM2VVEhwT2V5AfIeqigQwl X-Received: by 2002:a17:906:4cc3:: with SMTP id q3mr1692188ejt.170.1589530070828; Fri, 15 May 2020 01:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589530070; cv=none; d=google.com; s=arc-20160816; b=oVx2RdUuwlZYu7xFd43azu85d4lbxYkTk64FDcV8VyYjxeU2SUOPWZ5S9lznp0O1yu SdtIQHeu3o9qo5F8ZXoW8YWw5S6VdQIJyyEb0aohq2nQNkqSwsqkLvox9MVAWdZI+KY7 fQEA9qE24L7t6nKktDh8cinf9Zqh5/s8Zn52AeebhJH5refTki40bWY+gKgJKUr4sh3/ tU0+zBF8LtuqfiJnsoA7b9eNlEGDZmvMf8iJ8qfI1UwIcCUunY7ggbrlGsWvxk+3Xokj f3ZnTVNn1/eJsrY7BKY71bNZiWw7dFlnS1Sfc1SoicBY2aFwAKRp8DO7GbeRrQm+WTuF 4TOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=XVSGhIAC2HtlFAdojNxulc+a74d8yyF8HOGROMv5rU8=; b=v3hO1ARDwl7t+G3LzdymOrTWUcZQ8+9pahG9JQaHfIhV+1z+UdbXHr1FAof5RK67bt AWt1pUSKCVEyIJlPQROStzKh/lF/UuqWikPcdPizVqPPctjB7RxmB3Ui1oDGxY4wNMdR XN/toFw9DYNIUTgAjRATcWg8ScNtK2hEgy0t0DvAaeJflPYiw6zG6ldhTqH38yZ+3leG iQFrmgG4W2c4mVwG52TUo+QG0f900iFP2FvefzR4nSXdc3imUJFqJQQ0cnoGuidy5dvG x2ED99B6m7gZ4KJJceHwKMdlYIWvTtt0S8xFanjGkJCwqQoE1M23h10b4QiMSKp9ea2T k3dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tNIE0jPP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si778910ejx.387.2020.05.15.01.07.26; Fri, 15 May 2020 01:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tNIE0jPP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbgEOID2 (ORCPT + 99 others); Fri, 15 May 2020 04:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726708AbgEOID1 (ORCPT ); Fri, 15 May 2020 04:03:27 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0B4C05BD09 for ; Fri, 15 May 2020 01:03:27 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id l11so2451686wru.0 for ; Fri, 15 May 2020 01:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to; bh=XVSGhIAC2HtlFAdojNxulc+a74d8yyF8HOGROMv5rU8=; b=tNIE0jPPEBRRnU5+qUTcyx+V3tk+NrgXIsfXA4Hy0kF9YD/GO0C1p2ucgXNOfSfvOt vzu82p/mtNIo964uZLKN6TxsvMbDVdH2PpcWLPojUo3Vamd0A1cs0eFobsxJtPlpFhj2 vOu/tX2yMF3GhI3TgPiR+bld5Ca55Ge/yBYl6s0PbzDfgptHSbGehDKfrAtRpVoNDAw/ YXocRnmiD25huvgBFcAdU5PEEiTAXnywnHXxWaGSPPOYCT/zRlziQ4TuV02BUWTvYJPm Zy9If7PGQb+RPoENPqFPgb0izfI7gMazpEcGleJsy/N+YD0BgY2+JZZl+Di1YcO7/Glc 9K/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to; bh=XVSGhIAC2HtlFAdojNxulc+a74d8yyF8HOGROMv5rU8=; b=gBB7KL7MisgFl4j+5TWQGFbprBlpsVYbCxxnrw4NbvR+Ap6+M61EsZ7H17DoyVq+ka ontSXLvKR6Zn3Wq19yfoMoJhJEpUAmYooE9mGf6tqSPVXdlw3rJMPEzL2Ue1cL4e7dyQ SKFs28SpkAfpdqdfkdaLJPJKWE8ggFsfv0JQH7pVNvqP08H3TOIhuneJT6135dA5ISx0 je5Vha/u+TrY7UM1AF2uKazD8p2SFpWG23GqgvK6aVj2Xpn/Ll9MrbuJJAXLjkVdhdyZ A4u543X54nG9NOGlFZRNOMF83i7D6GJAJWlVizwcITtCL+V+9CIqkAuCt0ufDa/gpeY4 4Jxg== X-Gm-Message-State: AOAM531q++G0tVFuMSrVa5zXS8PlfTwKgnjmeezJGjk2rI4taxPZvyV0 N5B2dY5mK7x2yQ8xnNeqhn5p/xnWXqAIVw== X-Received: by 2002:a5d:6943:: with SMTP id r3mr2750145wrw.113.1589529805269; Fri, 15 May 2020 01:03:25 -0700 (PDT) Received: from ?IPv6:2a01:e35:2ec0:82b0:4460:3fd3:382:4a71? ([2a01:e35:2ec0:82b0:4460:3fd3:382:4a71]) by smtp.gmail.com with ESMTPSA id i6sm2335992wrw.97.2020.05.15.01.03.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2020 01:03:23 -0700 (PDT) Subject: Re: [PATCH 00/13] usb: dwc3: meson: add OTG support for GXL/GXM To: Felipe Balbi , kishon@ti.com, khilman@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200324102030.31000-1-narmstrong@baylibre.com> <87369rfo7l.fsf@kernel.org> <87r1vm4xyq.fsf@kernel.org> <8404c7a0-fca7-9e28-b65a-312ed09ecdd3@baylibre.com> <87wo5e3c53.fsf@kernel.org> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/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iivmWiwOt490+Ac7ATQRN WQbPAQgAvIoM384ZRFocFXPCOBir5m2J+96R2tI2XxMgMfyDXGJwFilBNs+fpttJlt2995A8 0JwPj8SFdm6FBcxygmxBBCc7i/BVQuY8aC0Z/w9Vzt3Eo561r6pSHr5JGHe8hwBQUcNPd/9l 2ynP57YTSE9XaGJK8gIuTXWo7pzIkTXfN40Wh5jeCCspj4jNsWiYhljjIbrEj300g8RUT2U0 FcEoiV7AjJWWQ5pi8lZJX6nmB0lc69Jw03V6mblgeZ/1oTZmOepkagwy2zLDXxihf0GowUif GphBDeP8elWBNK+ajl5rmpAMNRoKxpN/xR4NzBg62AjyIvigdywa1RehSTfccQARAQABwsBf BBgBAgAJBQJNWQbPAhsMAAoJEBaat7Gkz/iuteIH+wZuRDqK0ysAh+czshtG6JJlLW6eXJJR Vi7dIPpgFic2LcbkSlvB8E25Pcfz/+tW+04Urg4PxxFiTFdFCZO+prfd4Mge7/OvUcwoSub7 ZIPo8726ZF5/xXzajahoIu9/hZ4iywWPAHRvprXaim5E/vKjcTeBMJIqZtS4u/UK3EpAX59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: <075fd5b1-7450-e833-2240-527aadbda2b4@baylibre.com> Date: Fri, 15 May 2020 10:03:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <87wo5e3c53.fsf@kernel.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jRNEr3iGiPmEA24vzS9fn9IRCNYu4AS1w" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jRNEr3iGiPmEA24vzS9fn9IRCNYu4AS1w Content-Type: multipart/mixed; boundary="cYZ4ubkvjNBgnpP51bW7jpdr9CEl6QcJd"; protected-headers="v1" From: Neil Armstrong To: Felipe Balbi , kishon@ti.com, khilman@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-ID: <075fd5b1-7450-e833-2240-527aadbda2b4@baylibre.com> Subject: Re: [PATCH 00/13] usb: dwc3: meson: add OTG support for GXL/GXM References: <20200324102030.31000-1-narmstrong@baylibre.com> <87369rfo7l.fsf@kernel.org> <87r1vm4xyq.fsf@kernel.org> <8404c7a0-fca7-9e28-b65a-312ed09ecdd3@baylibre.com> <87wo5e3c53.fsf@kernel.org> In-Reply-To: <87wo5e3c53.fsf@kernel.org> --cYZ4ubkvjNBgnpP51bW7jpdr9CEl6QcJd Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 14/05/2020 14:59, Felipe Balbi wrote: > Neil Armstrong writes: >=20 >> Hi, >> >> On 14/05/2020 12:23, Felipe Balbi wrote: >>> Felipe Balbi writes: >>> >>>> Neil Armstrong writes: >>>> >>>>> The USB support was initialy done with a set of PHYs and dwc3-of-si= mple >>>>> because the architecture of the USB complex was not understood corr= ectly >>>>> at the time (and proper documentation was missing...). >>>>> >>>>> But with the G12A family, the USB complex was correctly understood = and >>>>> implemented correctly. >>>>> But seems the G12A architecture was derived for the GXL USB archite= cture, >>>>> with minor differences and looks we can share most of the USB DWC3 = glue >>>>> driver. >>>>> >>>>> This patchset refactors and adds callbacks to handle the architectu= re >>>>> difference while keeping the main code shared. >>>>> >>>>> The main difference is that on GXL/GXM the USB2 PHY control registe= rs >>>>> are mixed with the PHY registers (we already handle correctly), and= >>>>> the GLUE registers are allmost (99%) the same as G12A. >>>>> >>>>> But, the GXL/GXM HW is buggy, here are the quirks : >>>>> - for the DWC2 controller to reset correctly, the GLUE mux must be = switched >>>>> to peripheral when the DWC2 controlle probes. For now it's handle= d by simply >>>>> switching to device when probing the subnodes, but it may be not = enough >>>>> - when manually switching from Host to Device when the USB port is = not >>>>> populated (should not happen with proper Micro-USB/USB-C OTG swit= ch), it >>>>> makes the DWC3 to crash. The only way to avoid that is to use the= Host >>>>> Disconnect bit to disconnect the DWC3 controller from the port, b= ut we can't >>>>> recover the Host functionnality unless resetting the DWC3 control= ler. >>>>> This bit is set when only manual switch is done, and a warning is= printed >>>>> on manual switching. >>>>> >>>>> The patches 1-8 should be applied first, then either waiting the ne= xt release >>>>> or if the usb maintainer can provide us a stable tag, we can use it= to merge >>>>> the DT and bindings. >>>> >>>> it's unclear to me if this series is ready to be merged. Can someone= >>>> confirm? If it is, can you resend with all reviewed by tags in place= ? >>> >>> Are we getting a v2 for this? >>> >> >> Yes, even a v3 with reviews on all patches: >> http://lkml.kernel.org/r/20200416121910.12723-1-narmstrong@baylibre.co= m >=20 > In that case, can you check that I have applied everything correctly in= > testing/next? >=20 > cheers >=20 Looks fine, Thanks, Neil --cYZ4ubkvjNBgnpP51bW7jpdr9CEl6QcJd-- --jRNEr3iGiPmEA24vzS9fn9IRCNYu4AS1w Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEPVPGJshWBf4d9CyLd9zb2sjISdEFAl6+TMcACgkQd9zb2sjI SdEv8A//YD813zT/tMcFpTdMmROGnV1YRpi+t3M3BHYKemnko19eLGln54xRg9S5 t/IhrOdS4BHCR/9yFNvUg1V/B6wPER4O35oeuMuQ/LUNwdVSpsr7evPTFC1ok6Ig cXaMLXPQMMHoqifBpMWO0SYpnLFKQlrwUrdJX6b2SBu5aPx12mF+QyeLgZiAAmwk K3QtJwB4PWhNRRAVIlRcSlBVT9S+SA19o2ZNRaiDtLsBPK9NVZplzmWSyXG0usjQ Wh1uavrCPpB9+EkWcx9dzAK8OHt9IvOccmeadINTCyzmRPK95kmFz5FNVuErBAT4 ReFMVFsnxB6cZaevDu5Sa/9pjpft2FfDOFlmqm2EadBp2Fn2BlJmz+XCw+5cAgRW OzVBpW/DDcwJh8XKjbDv+Bh66XatSKb/FPqEJFAn+Eb3g1tInDLPYBBYTjGmH7R+ GmBPYNNcLSoJwZRBgV/kUzLpUJYyfBKbVnsY+YmJ60SlLdDAc1SEuT2mNAWBRyF7 9C9MRkaGm5Q3tXdU6bAwx4NI8xGV3Lx8N11puPzoYrG5VtwAm84seRHQbvu0mVyu YskE2vaJeuD6d+U017Eb43VXJnzfYs/zJlTzxnpKxjek+4N30+K8RUZ/eElU9ytc Wwot2OrSvqRVmTN7lzSvMG5cQI3iWVYJZKRcKhjEQEW1Y+rEsY8= =/b58 -----END PGP SIGNATURE----- --jRNEr3iGiPmEA24vzS9fn9IRCNYu4AS1w--