From patchwork Sat Nov 12 13:13:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9424129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6157560484 for ; Sat, 12 Nov 2016 13:13:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55FCD296E2 for ; Sat, 12 Nov 2016 13:13:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A624296F1; Sat, 12 Nov 2016 13:13:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0DD5F296DC for ; Sat, 12 Nov 2016 13:13:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c5Y7z-0000Px-LH; Sat, 12 Nov 2016 13:13:51 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c5Y7v-0000Li-BP for linux-amlogic@lists.infradead.org; Sat, 12 Nov 2016 13:13:48 +0000 Received: by mail-wm0-x243.google.com with SMTP id g23so3235320wme.1 for ; Sat, 12 Nov 2016 05:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nhttsAVtJcbwFH7mrB0kD0Gtkrgj3E/JEiym1LkfHkQ=; b=oocP6lnHtgUB4sO53nRwigfQUMw1lyKmfeRT1I4jv+WOo6T1/AG8X1f9Pl7C5eCid2 DHGH08M3F6ZKb3wDIYPS3RFateRqYwcKy5ig+YZdWm3EWiu4vpSSl3VCHQAl6Fa4mP9w sYo1kJ8rGkeGiiFpX6yMsM8LDamYK5trmrTf7Xx+lfMULnma4w2I6ZB3G1/XeyZVD5ed d2ENMm1e/H0XNb/la17Hp7yahmd022IYMha/M9kMeahVAFBgXot9bUzvKPMhUpBLGsOW 2pKXEfuZhiJa4XxZqYmwt0UAPUe0YdygohtqoW8kBU1XND4ViFrKotisRDFZAGUk+GJh FvGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nhttsAVtJcbwFH7mrB0kD0Gtkrgj3E/JEiym1LkfHkQ=; b=bOBJeUIxub5h/kYk+oO76yeU+9xkmKv9qpNxYoaROJTKZIa53IZjaJ5FX7yRVvd1M7 /rPNoZyftFSeQv9rhizTKbPAx2zWN6creyyrEAjrwIz3Cn+4RQhOySnzDtORPTuYOVu/ SHkCO0Jr/sFl28tlpFdDfJBZwTvFDPqwr43bcJ0kc9DCsEy6NGHEoy4x69PLa++OauXx vy+9p9Kdb/GKe18yOTZiDIqzWOMxxihKphEq+c8BtgT4MWR8fvsF0WQmFXaws3X975Us HqPlyIwyjgAqp5aXLI8tZEbTC4klSKBZre81AfKF03r/CMwhTofS7tvuhhOuZ6rz9DNQ LzDg== X-Gm-Message-State: ABUngvd7PnBHAliJDn0HvP7LRnuFZ6ioCOOsy3LYZXFMzj3ggA9TUGSGmcuabOBU3thMpQ== X-Received: by 10.194.87.130 with SMTP id ay2mr12201536wjb.44.1478956405841; Sat, 12 Nov 2016 05:13:25 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3D3DE04CD53CC2510F85EC9.dip0.t-ipconnect.de. [2003:dc:d3d3:de04:cd53:cc25:10f8:5ec9]) by smtp.googlemail.com with ESMTPSA id i2sm13198333wjx.44.2016.11.12.05.13.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Nov 2016 05:13:24 -0800 (PST) From: Martin Blumenstingl To: p.zabel@pengutronix.de, linux-amlogic@lists.infradead.org Subject: [PATCH 2/3] phy: meson8b-usb2: request a shared reset line Date: Sat, 12 Nov 2016 14:13:04 +0100 Message-Id: <20161112131305.26088-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161112131305.26088-1-martin.blumenstingl@googlemail.com> References: <20161001152134.8168-1-martin.blumenstingl@googlemail.com> <20161112131305.26088-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161112_051347_656963_45394DA8 X-CRM114-Status: GOOD ( 10.70 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Martin Blumenstingl , khilman@baylibre.com, will.deacon@arm.com, kishon@ti.com, robh+dt@kernel.org, catalin.marinas@arm.com, carlo@caione.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Both PHYs are sharing one reset line. With recent improvements to the reset framework we can now also use reset_control_reset with shared resets. This allows us to drop some workarounds where the reset was only specified for one PHY but not the other, to make sure that the reset it only executed once (as the reset framework was not able to use reset_control_reset with shared reset lines). Signed-off-by: Martin Blumenstingl --- drivers/phy/phy-meson8b-usb2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/phy-meson8b-usb2.c b/drivers/phy/phy-meson8b-usb2.c index 73bf632..f1ee96a 100644 --- a/drivers/phy/phy-meson8b-usb2.c +++ b/drivers/phy/phy-meson8b-usb2.c @@ -237,8 +237,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev) if (IS_ERR(priv->clk_usb)) return PTR_ERR(priv->clk_usb); - priv->reset = devm_reset_control_get_optional_exclusive(&pdev->dev, - NULL); + priv->reset = devm_reset_control_get_optional_shared(&pdev->dev, NULL); if (PTR_ERR(priv->reset) == -EPROBE_DEFER) return PTR_ERR(priv->reset);