Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3355522pxj; Mon, 24 May 2021 05:00:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiN67p1XLjh8u0elY4gbCVH8FOGy4Lwhjk8z3rQgL2nrb82JS5wfuw7ouafVfpvu9/MWpQ X-Received: by 2002:a05:6e02:218f:: with SMTP id j15mr15785720ila.249.1621857647464; Mon, 24 May 2021 05:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621857647; cv=none; d=google.com; s=arc-20160816; b=wHila8atpX30h4uqqw6tkwR3e3IJbEs99lgkjxPvmEENdcnlGPT1efwRf4/oTqJTAz 7e4tNBAy++erjujRDiZgB49196EVz6vtB4CxNp0rNH2vMhFufGrA8t2HVKOI8gN7U7CE xJS1BuDLl1bKWZQKXcES2itq6hR9nTud0z/1+ZQDhdrCvIRhu+0IPe0zprASoUO6s091 lTp7RIbYWbxN3NbxMYF0HvN+r0tV7Yhk+rget1q3hVQHirmeV9amN5fbXnmKdI9hDF+8 ErygDx0m1OCEyByJ/5N0Egb760W9RaxiykNgMyqBgcqceocEaUZG4uehom8osB4RMKZi tQ7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=EMJnP4Q9UxIeWBo2UuuYOcg1PqvTS5azhJpoiLIqHIQ=; b=J+PkyuJewMM/UMS4LpEp7gxBD4LpBWPHryTy6JJhJ1b6ps2XvyBtp7f6SO56zZcwzO Gq6b2rB1iA7NAK1VcNi7t5P31xav63CQ56cOQmk1VGqjchLeOAz5yGpyju8Hy/CSj+1T G2HymeGwGlqWdCRNi4Eaee7xBJJ04Grgz1oeJoxEfgBiw/INGcKBN3pc1XWu0TZVYtA3 U/WMtUxJt34jdBBei73xDEVXstthxBRgjntlrQJgvtahwbNVTqBc3Z6GFtlxGdUDjDfb LYPVqryOvq789GGcLrBVvZIV2++kLgajYQwlCHOVeLfvLG0ywsRw+ukAVzQ8WgPUgShK ltOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=OUKRRQHx; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QW+daKax; 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=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si14586910ild.38.2021.05.24.05.00.33; Mon, 24 May 2021 05:00:47 -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=@cerno.tech header.s=fm2 header.b=OUKRRQHx; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=QW+daKax; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232662AbhEXMBU (ORCPT + 99 others); Mon, 24 May 2021 08:01:20 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:34919 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbhEXMBT (ORCPT ); Mon, 24 May 2021 08:01:19 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 5584A582671; Mon, 24 May 2021 07:59:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 24 May 2021 07:59:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=EMJnP4Q9UxIeWBo2UuuYOcg1Pqv TS5azhJpoiLIqHIQ=; b=OUKRRQHx1ILDG0ggPhIpmjzgmg/JTKwM9OXvLkW/J4A gYwwfeI1/LKKRvmJpIWVJvNvfNHPnAYHkqGkri1VF+o4kxP7xFiE8n/V0gUMQFU1 5kEqBz3KoWwTujEqAqOC44vZn1dmxYCyjJljuFFZXrre4zaazOmdneGSZu3n6mEr l7fiMNho9ITq/FQkB7YntIpiN8Ak9M7DosdOYxfj/2weh7sd2CDAfZYSQ1iAzOQH gsITZH28+VN48Pd7zWUGu4hQSbvIWjvykBNx8EbSLoG4m5sKfe1Vj1GBOKkHEMj4 by2YGhtxgjdYXevSOiLgD/9PcbLciAK2Evtgyg6gvNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=EMJnP4 Q9UxIeWBo2UuuYOcg1PqvTS5azhJpoiLIqHIQ=; b=QW+daKaxTYMrEqLcgIuLQ1 x/nJ3FgX44l3zujYpurXNEFfzMTJ3x8/2w8EFid7W+50f/P8Hp04qE1etNhnSO91 I/sImRTaiWE0vVPzJIoOE+2A2b4rOIxTT4onsP5e8H2WIovRdpDa5+k3/r9tEzdv sYHprr8VPpbSKpsk5QSxwSldyCSRk4YZs9FpEW1r6SgfegzW27mvpF+OMLS9Dnv4 xVMUIQWCbzmvR+ZUCI4v9lhKWzEP5PRT/RbapQP2701WF234YOZ3stIa3pZhvH7f 186TyDxWHv6gIegVIUI8ZS4gESf+crLFl/foLJYgo2AEC/yirqZObOYol5F7YHBg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejledggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 May 2021 07:59:47 -0400 (EDT) Date: Mon, 24 May 2021 13:59:46 +0200 From: Maxime Ripard To: Andre Przywara Cc: Chen-Yu Tsai , Jernej Skrabec , Rob Herring , Icenowy Zheng , Samuel Holland , Ondrej Jirman , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , linux-phy@lists.infradead.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v6 12/17] phy: sun4i-usb: Introduce port2 SIDDQ quirk Message-ID: <20210524115946.jwsasjbr3biyixhz@gilmour> References: <20210519104152.21119-1-andre.przywara@arm.com> <20210519104152.21119-13-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yeqfewi7xhvh3dbi" Content-Disposition: inline In-Reply-To: <20210519104152.21119-13-andre.przywara@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yeqfewi7xhvh3dbi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Wed, May 19, 2021 at 11:41:47AM +0100, Andre Przywara wrote: > At least the Allwinner H616 SoC requires a weird quirk to make most > USB PHYs work: Only port2 works out of the box, but all other ports > need some help from this port2 to work correctly: The CLK_BUS_PHY2 and > RST_USB_PHY2 clock and reset need to be enabled, and the SIDDQ bit in > the PMU PHY control register needs to be cleared. For this register to > be accessible, CLK_BUS_ECHI2 needs to be ungated. Don't ask .... >=20 > Instead of disguising this as some generic feature, do exactly that > in our PHY init: > If the quirk bit is set, and we initialise a PHY other than PHY2, ungate > this one special clock, and clear the SIDDQ bit. We can pull in the > other required clocks via the DT. >=20 > Signed-off-by: Andre Przywara What is this SIDDQ bit doing exactly? I guess we could also expose this using a power-domain if it's relevant? Maxime --yeqfewi7xhvh3dbi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYKuVMgAKCRDj7w1vZxhR xSHfAP0dBPqEfgZL7NPChXsRxHByzSmhCZQ+zMbfpCQVADqDNgD7BWogJtW3+sff zXhIKZ/oXdr2tJxXsO8tzCyO/ECdKwE= =5PHW -----END PGP SIGNATURE----- --yeqfewi7xhvh3dbi--