From patchwork Mon Jun 6 17:08:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 69429 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1582661qgf; Mon, 6 Jun 2016 10:10:50 -0700 (PDT) X-Received: by 10.98.98.3 with SMTP id w3mr26479273pfb.127.1465233050055; Mon, 06 Jun 2016 10:10:50 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63si1654203pfy.97.2016.06.06.10.10.49; Mon, 06 Jun 2016 10:10:50 -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 S1752658AbcFFRK2 (ORCPT + 31 others); Mon, 6 Jun 2016 13:10:28 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:35866 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526AbcFFRKY (ORCPT ); Mon, 6 Jun 2016 13:10:24 -0400 Received: by mail-wm0-f45.google.com with SMTP id n184so102200076wmn.1 for ; Mon, 06 Jun 2016 10:10:23 -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=OIChKXlg7Q0FpTol3DkXOYaLQwx0weP92GfP7BaB7hM=; b=Vovh14LUvfOK98jsS9hKg64iU4jzArfafE3/S6aFk0M0Uj3H7Gbnhp79uYaGTibSUf /igs5s0t7QE+3RV3RlY6U4Tzk8ix45BigmyfJ3iFfPxLJPCAwdIzZgc26WhNm2smpf2Z WaglmMeMlA6F/ANi2Zpy1wgW16fll1gFeFyJ4= 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=OIChKXlg7Q0FpTol3DkXOYaLQwx0weP92GfP7BaB7hM=; b=kEu/TKNOoJOak08ZOrkBk3rJgq2x7LI0IaiUqiteGsyPwHBCOdie90+ykyAjLuk1VN 7tKsBfM6eunzhg4IkiomGS8L+yU0hFfb0rL80+fN2aoiDDqch+TYvBFfUJc0pp6pK6h8 A9ZXlxsyzartKU7GL5MNujlSRBf352NgRo7RHnRSof8AYTN4OJ/YvBKUX1zLbTNWTmuU wk4iOFss8jBjK/o351u3QFGxDVegGoqe/WhZnWd0via+OqC9N8Cxd3AlSQCKYnkBeJtO 9mf2Lwi0Lf1OWp8ZMtKatvEbJGVGwY3W8kUzCz7/xYROSV5BHXBo8xoi9nimm4I7YMqB /N0w== X-Gm-Message-State: ALyK8tIejfwyjXlvZ9fxVo9uQHavNHROh/zzGa6Ro2PJTeyi70YgHvKIC0shCfHfzOwftQu1 X-Received: by 10.28.90.65 with SMTP id o62mr12572700wmb.16.1465233023055; Mon, 06 Jun 2016 10:10:23 -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 m5sm17753030wji.16.2016.06.06.10.10.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 10:10:22 -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 8/10] phy: phy-stih407-usb: Inform the reset framework that our reset line may be shared Date: Mon, 6 Jun 2016 18:08:52 +0100 Message-Id: <20160606170854.12407-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160606155655.10860-8-lee.jones@linaro.org> References: <20160606155655.10860-8-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 ports on the Generic PHY share their reset lines with each other. 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-stih407-usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.8.3 Acked-by: Kishon Vijay Abraham I diff --git a/drivers/phy/phy-stih407-usb.c b/drivers/phy/phy-stih407-usb.c index 1d5ae5f..b1f44ab 100644 --- a/drivers/phy/phy-stih407-usb.c +++ b/drivers/phy/phy-stih407-usb.c @@ -105,13 +105,13 @@ static int stih407_usb2_picophy_probe(struct platform_device *pdev) phy_dev->dev = dev; dev_set_drvdata(dev, phy_dev); - phy_dev->rstc = devm_reset_control_get(dev, "global"); + phy_dev->rstc = devm_reset_control_get_shared(dev, "global"); if (IS_ERR(phy_dev->rstc)) { dev_err(dev, "failed to ctrl picoPHY reset\n"); return PTR_ERR(phy_dev->rstc); } - phy_dev->rstport = devm_reset_control_get(dev, "port"); + phy_dev->rstport = devm_reset_control_get_exclusive(dev, "port"); if (IS_ERR(phy_dev->rstport)) { dev_err(dev, "failed to ctrl picoPHY reset\n"); return PTR_ERR(phy_dev->rstport);