From patchwork Mon Jun 6 15:56:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 69419 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1551263qgf; Mon, 6 Jun 2016 08:58:58 -0700 (PDT) X-Received: by 10.107.17.84 with SMTP id z81mr11767204ioi.150.1465228738071; Mon, 06 Jun 2016 08:58:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si27285770pan.36.2016.06.06.08.58.57; Mon, 06 Jun 2016 08:58:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbcFFP6g (ORCPT + 31 others); Mon, 6 Jun 2016 11:58:36 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38571 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752779AbcFFP6c (ORCPT ); Mon, 6 Jun 2016 11:58:32 -0400 Received: by mail-wm0-f45.google.com with SMTP id m124so78479529wme.1 for ; Mon, 06 Jun 2016 08:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=aHAdo4DLykG6yIJ0jP4M/kV5eOmXqMkbBNhFVWbRjRs=; b=U/M3JwGWKflQtdLrFH0zAyuYVWIpk/OobA/uFze31+qtZ64uJwLpbXqceVT9jQuDS2 +W1TAp9nqaWT7/Lhne2xoMThrgp7EPIisjc9RQS/vWuQTMi1SXUqRetBF3TvBMkMe3qY XS8S30o8VmBf2e7F3/IV5VEBUGUHD2uB2X9jY= 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=aHAdo4DLykG6yIJ0jP4M/kV5eOmXqMkbBNhFVWbRjRs=; b=dXY9JO59FMTKir3gDrD0vBytP0e2oDB/UNf9VapmaEQSMbrk/LBxUrMGQ970V6WP5b vLmwRJRUBAv/OZ8hQ1t+w4IebisW0R9m7sg6cW9x6uvCjUksmAOPBQz+/FzTxekmuo16 rouSqjZq2w2vwvFryhYNbGGX+81VNf1npl//n4liY7d4FHQPNWFIEUCn52ATyWb0jYS1 /bewPp6qvQf2z506nKXDjBT1+/ocCL2xOJ1rwFinWkuuhOPYRAVJaofQ+KsROr0dJd7E Z9C+u/G8QESckX1cLItHzZbBQa+utGhEvWlkPTtq6GBKPCLSbrSnd9eLZevyKkhP2+TC UrKA== X-Gm-Message-State: ALyK8tJUDTW3nZpfkf1rbDYlHn4jPjYW/uF9u3/WEfmuwPaM9Z1Qcn49pV/eZaD7/oS2ig0x X-Received: by 10.194.41.35 with SMTP id c3mr8946966wjl.91.1465228711546; Mon, 06 Jun 2016 08:58:31 -0700 (PDT) Received: from localhost.localdomain (host81-129-171-215.range81-129.btcentralplus.com. [81.129.171.215]) by smtp.gmail.com with ESMTPSA id h2sm20926040wjv.15.2016.06.06.08.58.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 08:58:31 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, srinivas.kandagatla@gmail.com, kishon@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, p.zabel@pengutronix.de, linux-usb@vger.kernel.org, Lee Jones Subject: [PATCH 6/7] phy: miphy28lp: Inform the reset framework that our reset line may be shared Date: Mon, 6 Jun 2016 16:56:54 +0100 Message-Id: <20160606155655.10860-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160606155655.10860-1-lee.jones@linaro.org> References: <20160606155655.10860-1-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On the STiH410 B2120 development board the MiPHY28lp shares its reset line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device (DRD). New functionality in the reset subsystems forces consumers to be explicit when requesting shared/exclusive reset lines. Signed-off-by: Lee Jones --- drivers/phy/phy-miphy28lp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.8.3 Acked-by: Peter Griffin Acked-by: Kishon Vijay Abraham I diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c index 3acd2a1..213e2e1 100644 --- a/drivers/phy/phy-miphy28lp.c +++ b/drivers/phy/phy-miphy28lp.c @@ -1143,7 +1143,8 @@ static int miphy28lp_probe_resets(struct device_node *node, struct miphy28lp_dev *miphy_dev = miphy_phy->phydev; int err; - miphy_phy->miphy_rst = of_reset_control_get(node, "miphy-sw-rst"); + miphy_phy->miphy_rst = + of_reset_control_get_shared(node, "miphy-sw-rst"); if (IS_ERR(miphy_phy->miphy_rst)) { dev_err(miphy_dev->dev,