Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3578196pxj; Tue, 15 Jun 2021 04:10:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5LUwbSxGA6+o8shmoCCx6pa2ZypSVq1oCAIwr0bJd9tWg5hLurBZ/cbbpojk8hmmIUcmN X-Received: by 2002:a05:6602:54:: with SMTP id z20mr18072994ioz.25.1623755450282; Tue, 15 Jun 2021 04:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623755450; cv=none; d=google.com; s=arc-20160816; b=C6hx8eVchvCIMtjmBB2Rw3fqLvpVwQfIK7U2xdFzh+/dIy5JVwnMtE1lAuURIWtdBw HbYSc0LmlNYUYm5poMAPHcJvgNRqg8JwbKbtOGfcooFVqF37B8ujIdX3HJWT80pCERUY Dw09OG16WD0WJWKlRxqM12mbqE/iyjay3zGo+xS+zcy7EGdGdys5Icbsr8cQrg3vNwhB 9TJQkm6s6q8BHhRFQovk2Tx8eBTnH5ggFE9NoDp4PNsjM7oOPoruSfVzDjTThW/OWSgA qvBbCbWuzOqZFb7/VK79Hp/XR5ghGpyM5G1d/ZJNI1TrafzEuQd+6f8erCSYM5QdjDfB ywVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=T199OeuWzUOPej12/uy1V4u10un4dhco7/ls2jGV9Os=; b=aTTPxYNmGLmf6zjGoaLHzf2v9Q1PMxAcn4ZS+a4To46I0AM2oK2XPVV3eSLilV0UIi 2SiFa2Rfj0ODZVde4GSu8FyYco9j9+PHl3afcJE/YINs9/3Jt7VaGR217XtmVBfFYM9/ k2AVBH6K9zSBYxq9jE89HWI7e+Ee8c2e1g9uBgZXfSeRTc7EQbfZyXzUVBfNSv+y6J2m PoTnrVxpO0JddX+BWzr8e5tCtXsooZTMxQgBtTHZZR/qknW0EytVbnzxbFjO3XJ0qSzm fumUneueCzBlSubr+GYe12ye9W5NrWC8wdFQrc32E4CwWYw9B9naSxgoEP/1etm4XP+A zuNQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si20432135jad.123.2021.06.15.04.10.38; Tue, 15 Jun 2021 04:10: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231819AbhFOLKL (ORCPT + 99 others); Tue, 15 Jun 2021 07:10:11 -0400 Received: from foss.arm.com ([217.140.110.172]:60726 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhFOLJf (ORCPT ); Tue, 15 Jun 2021 07:09:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0FBD3143B; Tue, 15 Jun 2021 04:07:31 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AE4A43F719; Tue, 15 Jun 2021 04:07:28 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Rob Herring , Icenowy Zheng , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Ondrej Jirman , Kishon Vijay Abraham I , Vinod Koul , linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, Philipp Zabel Subject: [PATCH v7 13/19] phy: sun4i-usb: Allow reset line to be shared Date: Tue, 15 Jun 2021 12:06:30 +0100 Message-Id: <20210615110636.23403-14-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20210615110636.23403-1-andre.przywara@arm.com> References: <20210615110636.23403-1-andre.przywara@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The USB HCIs (and PHYs?) in Allwinner's newer generation SoCs (H616) rely on the reset line of USB PHY 2 to be de-asserted, even when only one of the other PHYs is actually in use. To make those ports work, we include this reset line in the HCIs' resets property, which requires this line to be shareable. Change the call to allocate the reset line to mark it as shared, to enable the other ports on those SoCs. Signed-off-by: Andre Przywara --- drivers/phy/allwinner/phy-sun4i-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 142f4cafdc78..126ef74d013c 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -788,7 +788,7 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev) } snprintf(name, sizeof(name), "usb%d_reset", i); - phy->reset = devm_reset_control_get(dev, name); + phy->reset = devm_reset_control_get_shared(dev, name); if (IS_ERR(phy->reset)) { dev_err(dev, "failed to get reset %s\n", name); return PTR_ERR(phy->reset); -- 2.17.5