From patchwork Sat Oct 1 15:21:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9359307 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 3354A60757 for ; Sat, 1 Oct 2016 15:22:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23CEF28D44 for ; Sat, 1 Oct 2016 15:22:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1826828D49; Sat, 1 Oct 2016 15:22:16 +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 8CC6C28D44 for ; Sat, 1 Oct 2016 15:22:15 +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 1bqM78-0003bd-8I; Sat, 01 Oct 2016 15:22:10 +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 1bqM75-0003Lq-20 for linux-amlogic@lists.infradead.org; Sat, 01 Oct 2016 15:22:08 +0000 Received: by mail-wm0-x243.google.com with SMTP id b201so2436147wmb.1 for ; Sat, 01 Oct 2016 08:21:49 -0700 (PDT) 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=XmBWAeeCyC2n8XhrPueL/1LCQwRh0F7Z3UGEomXitOA=; b=zuIKYl5vjVqT7gGbLhFdU22Nm/l/Y9af3jk4WBmvKpBzQCjx0zzRI3aZQhSHBVdiIn ztLMtAdcUp0V/P3SBXVHPxHpbdWSZnosva+uHM3rgo3/Cc8ARKr9si9lytbYPJA4e+8G ylpYDYGqz0PZLJFyMBckMPNJ8OnaZdYNvNasAifRO6PdYORalgKecxpOfLhSW7oOo6z4 JrCJ2n+jTq8E6/xVMmtOiR3sejAbvUb9jLbD9uan1VZxMjsXfrDBgpnv35BPY8iK77bs kfHeSU5mhD1wZdwbO3895WfoShWVc8ZHOYbFTm5qijUPM/dGRDGYdbqCOXqhbqsl7jxK 40pg== 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=XmBWAeeCyC2n8XhrPueL/1LCQwRh0F7Z3UGEomXitOA=; b=dyKzVVG36iLaUs4dEgMOk0rXb5TmyTR8An1+SpYs6sb4fppu65wJtgbzbR4zgsWaF9 Httk/ekwohAjtjNHQ4mL9TqdMi2pLFWMI96M0x4I/CJ3/ES3IvVIUJkxuAXYdm0vEFzs pTLoI8mxLCGncdgYQ2p9mZqnK4BXWQoQGHU4yycvuTtzyf3X7RthIZc9n9aDpDVtT2l5 jj/McJLtdbGtlYvCOMWEMn1qDdbVzjHqJezFcHz3Yd5DvrhQpE3qIzim7827kpAbiUGv I8b0RzCOciWzQqMVxpfYOjzWRC3oFSg3alcYRSIx3+Bg6pTK4ifyIBfQzo2wHHJ7OKLL CcoA== X-Gm-Message-State: AA6/9RnK3XHDn0SR0d5A2aL1Yp2lAzkEETnCvusarhparx2hFgpeOTpjBGz75FpQC2IXjw== X-Received: by 10.28.154.20 with SMTP id c20mr2829127wme.48.1475335307865; Sat, 01 Oct 2016 08:21:47 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3D31B041155F9C87FD159CD.dip0.t-ipconnect.de. [2003:dc:d3d3:1b04:1155:f9c8:7fd1:59cd]) by smtp.googlemail.com with ESMTPSA id 137sm9643171wmi.16.2016.10.01.08.21.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2016 08:21:47 -0700 (PDT) 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, 1 Oct 2016 17:21:33 +0200 Message-Id: <20161001152134.8168-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161001152134.8168-1-martin.blumenstingl@googlemail.com> References: <20161001152134.8168-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161001_082207_366924_4FF2D1A9 X-CRM114-Status: GOOD ( 10.94 ) 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, catalin.marinas@arm.com, carlo@caione.org, dt@kernel.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);