Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1213832ybk; Thu, 14 May 2020 03:26:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtuHLR1+YXUjxGIOVBKK6sZ0xZHkL1Wh97rQKoyu5K5Yd5MGm3oPwpS7fK91MM5l8Eoq9Y X-Received: by 2002:a05:6402:1cb6:: with SMTP id cz22mr3125533edb.86.1589451970443; Thu, 14 May 2020 03:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589451970; cv=none; d=google.com; s=arc-20160816; b=vAcwkTr7cFqcaO6B+I0usNoe69NhWw2TBtamBD4ZFsLuRBzRYt+W/DLASzP7+NM8nW lYnozH8o7D/wkmN3U15ZjdE/WUYYIWImly3XVgdpD2u4BHVpoJlQKxHyUW8OrZKCUiQ0 7/BQVjCaX99mNc/xi+xmvi4qWhaieZ3Zsrm4tmR5oNPMK/ABFSC/fVh3ZillroVursRA DhzYQSgeF0yTEs6Nvp8xcVWD6ZAHZlvnfjpS1mNwesDP6IJjVGy7QGNPNTn6Q1Cy9AcQ k26+tbypps9hNu2YXBpejENUquBAhaPaej6AcHOMZm1oJDA86+nMHT/EU6SAAfrgMXie PHRA== 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:cc:to:from:dkim-signature; bh=on2D6elu53pZj4wNtYf7fZ0iGgEMC4vnCrij0e0GY3Y=; b=YZE63HsbRwG3ZkIDvLmFqeeHb4xv+eK4LWG0Ldc3CaeImNFZdBJNu/BG+UbwYNmP6e 7ZlqZhCF+YoBxG1JLe9ImmR6z3F1GyEWBe+GZ27Cjmz75K3TFtGlaSyNfQbIyjKD55b8 SWmEiYQIRqOhmQkPbKuhSpKUP0G0YQMEW3o+pNayZIOViMk4v9AaLupt59iB1FPWPLHg Mc+MwhYdxHfT/9MpBCg/UXqIm2Rvy/GJcR1Zy4aLAvGiKWeNGL/n4zfTfGX/Ku5nSDbm gG49gPm/AaxDwvEPk596yrhyaTpDEIKvSG8iDWDEjnXJjc/mtZGP7PL1dDeH/kLesZkh Vslg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YWwJnh34; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si1435311edp.87.2020.05.14.03.25.47; Thu, 14 May 2020 03:26:10 -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=fail header.i=@gmail.com header.s=20161025 header.b=YWwJnh34; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726215AbgENKXS (ORCPT + 99 others); Thu, 14 May 2020 06:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbgENKXS (ORCPT ); Thu, 14 May 2020 06:23:18 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E47FC061A0C; Thu, 14 May 2020 03:23:17 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id d22so2131667lfm.11; Thu, 14 May 2020 03:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=on2D6elu53pZj4wNtYf7fZ0iGgEMC4vnCrij0e0GY3Y=; b=YWwJnh346DomNcO4odW5tj0MMLVzr9cRxcJo6n+Dt9fuMb4qneEfKEKUJHDnEy4yuN 9cqWkmlSN93BhIYrTXcpa3kA/EtXoX8ZUxllaYJG2VuYBBbRA9Sab18ErkYrm5p02GXG KuTLvxrKQOAgsQJ7k3ip3Zz2n2cK/aCqUjj+FRR97mP/BhNETq1YUnciIbbHPU2Fclq6 P0OJUdtkQMtwoWuV6zDzf6VUTxJlUEXBEwVROI/mQj5BQxuhH/dBkw/PrXszJn+a9ize l0mbAGcNZXhgwGywmoULZ8LhWBH+iz0dxAP2/gXPR4N43j6OYq0flMpdSl4iyCvLetSb wf7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=on2D6elu53pZj4wNtYf7fZ0iGgEMC4vnCrij0e0GY3Y=; b=IBpeCbM+Y8eoDYVlEtWfRBFunBTDS42PRdlal6AUBa1o8FyQ5k8J68o0pnJfSlvrR7 pYFmLq4HeT8l29RVCkP4XZEv+CjtEAfQxs6LNK4zyFCOV8bsDWDcUuMQU/cd2v/2suf2 NXjhMBDfMj7EsRN11FaP363uvtUjp2ohPI+BpCQa4MOXq+d5301DAYLdwOKmGx4fJfSh 1A5ZxMcwsja7KgT2AGtaY/CUw09JiuHThCGtDVq9VWchhQRLNljjW8844eCpmKrl10A4 iffuKA5KtuIcL+1QXMihaoawc6Agxw56lXGesbTqETJs/ZLkxsy+89MkNKjTQuc8iYA1 298Q== X-Gm-Message-State: AOAM533pN5Xz/3wSHSY3FpK04TiQRNiSR3ai069XXbEgygBlCvYbQ9wn vL+uEPPV/A9Bi2qAEPD5W7DXf5ugdOia5Q== X-Received: by 2002:a19:e041:: with SMTP id g1mr2742299lfj.70.1589451795238; Thu, 14 May 2020 03:23:15 -0700 (PDT) Received: from saruman (91-155-214-58.elisa-laajakaista.fi. [91.155.214.58]) by smtp.gmail.com with ESMTPSA id k9sm1231222lja.52.2020.05.14.03.23.13 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 May 2020 03:23:14 -0700 (PDT) From: Felipe Balbi To: Neil Armstrong , kishon@ti.com, khilman@baylibre.com, martin.blumenstingl@googlemail.com Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/13] usb: dwc3: meson: add OTG support for GXL/GXM In-Reply-To: <87369rfo7l.fsf@kernel.org> References: <20200324102030.31000-1-narmstrong@baylibre.com> <87369rfo7l.fsf@kernel.org> Date: Thu, 14 May 2020 13:23:09 +0300 Message-ID: <87r1vm4xyq.fsf@kernel.org> 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 Felipe Balbi writes: > Neil Armstrong writes: > >> The USB support was initialy done with a set of PHYs and dwc3-of-simple >> because the architecture of the USB complex was not understood correctly >> 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 architecture, >> with minor differences and looks we can share most of the USB DWC3 glue >> driver. >> >> This patchset refactors and adds callbacks to handle the architecture >> difference while keeping the main code shared. >> >> The main difference is that on GXL/GXM the USB2 PHY control registers >> 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 switc= hed >> to peripheral when the DWC2 controlle probes. For now it's handled 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 switch), = 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, but we= can't >> recover the Host functionnality unless resetting the DWC3 controller. >> This bit is set when only manual switch is done, and a warning is prin= ted >> on manual switching. >> >> The patches 1-8 should be applied first, then either waiting the next re= lease >> or if the usb maintainer can provide us a stable tag, we can use it to m= erge >> 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? =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEElLzh7wn96CXwjh2IzL64meEamQYFAl69HA4ACgkQzL64meEa mQY4DhAAtHTcNLDu5ri1XuAeABlYEcezvODzuPM7Xg0my7l1TAURKXzAe0LV/LSB 9FU5hFcfAPUD7JSDmyGey9foVoFKo0ZxOvXLTXCW7AFHq5UyphcWAa5dW7kjtrI7 uqJ9VYc6gdQ6a/lEJXTdEuq8lLBt88hJkU8OPjzedp82in9fGXZg0mmwDePj3yVE 6KAnwJG+9qKZ/t06kNY2POoQpyFGnjOruj+9K4kG1R/RXGrU1YV1Cq6+GZp/DNoj Z81nw30hMBIFmKrxMl9bx+/hXAQUPV0C01txbCkdCGVTtp/L7GB3RXWgEljIyPPw KiE2yF12BFeuOB2egjAIWVztPxlzh0W19f/2bAQPEhlHrfcu83SJDAdEfMx/pe+w aFVJhdTZz+GeJ7K1Oame/ddtzbuPTyUbZFo4c0qASictw1dXGir88hOBeRrzpjJ0 d7cmNieizTfV8EoF0/FKN1NuwIie/k/dZiejZ28lukE8pZ2RUXxuBrrncmHk+Hrp iHTOjXsXTYJgVU4OxXFk9Q+B0YYgvpiAtrAS3Hpn3UQMX+KYd1RMELFSYtBLUGCG TZ9WJPGijn2G7rmvDy0sJtxhLsRoE9tx7tvr6HG5btz2fMdZmTnK6cW1nyIoP8kP ijmeyb1OUfQTkFoBIZUIPi5pTkuuqScPtsu7LAF+nP7HjD/+VYk= =8p6e -----END PGP SIGNATURE----- --=-=-=--