From patchwork Mon Jun 6 15:56:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 69420 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1551457qgf; Mon, 6 Jun 2016 08:59:24 -0700 (PDT) X-Received: by 10.98.37.70 with SMTP id l67mr26416604pfl.56.1465228764565; Mon, 06 Jun 2016 08:59:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o72si29095582pfj.148.2016.06.06.08.59.23; Mon, 06 Jun 2016 08:59:24 -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 S1752912AbcFFP7B (ORCPT + 31 others); Mon, 6 Jun 2016 11:59:01 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37630 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbcFFP6d (ORCPT ); Mon, 6 Jun 2016 11:58:33 -0400 Received: by mail-wm0-f53.google.com with SMTP id k204so33274332wmk.0 for ; Mon, 06 Jun 2016 08:58:33 -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=7jChA9yyG2knB819qDRq93g+sHh5JCVk4aRZvQMLeQc=; b=jBcsCV0EKzn11M9OGmsXD7GcJOboGHOC2QDip34jzLojRCqRxSke51cdAZIqjo4gfy jTSyoLfobZDqKErOEM6A1TvjsSBc2/xqqrzYAEL27C/4XyYjz2ePfOzGGtAhJk3srhmB lyVtJZNI5phPoA8+jTOHXD5jVJt61DArRNQaM= 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=7jChA9yyG2knB819qDRq93g+sHh5JCVk4aRZvQMLeQc=; b=iSbBFeMxbUTv73WW64e/k79b4nWYaoNcPGlUzczYmyfgljNrBTzCUSU45FJmi6iomX x1unN2ABxXhWmlgMQc5m2xWfqsLQuuiXBhCpWu+ZwY1JhkmZjDgdABvkGqVdEc73W8DZ aO2+n1U2pwA4bqg8hcCp2/C+Ik6CDKoJzb/pjQp6NivyeDqiM8A5l6NNfYYlV73Ld7pt p046RfW3bh20BXAwYSqbqEKxcgfTpGcte6mWf/YvIU0qOooD3CWvlW8HdQu4E2XGG2ar Y7onZfTVvgmRxrlLWHenN7rxKRkvm53jF7o21bnGGgT3HWJEFW3oOsSaZ4klE6qAiZ0s 9AJQ== X-Gm-Message-State: ALyK8tIHMOrxmoUNPlwEP5PgP7lYawZiE5hejH6cp/texxIBDgphoSb8BbIFJce50ZSXa5LM X-Received: by 10.28.61.137 with SMTP id k131mr12221826wma.37.1465228712467; Mon, 06 Jun 2016 08:58:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 08:58:32 -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 7/7] usb: dwc3: st: Inform the reset framework that our reset line may be shared Date: Mon, 6 Jun 2016 16:56:55 +0100 Message-Id: <20160606155655.10860-8-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/usb/dwc3/dwc3-st.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.8.3 Acked-by: Peter Griffin diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 5c0adb9..e77bacb 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c @@ -227,7 +227,8 @@ static int st_dwc3_probe(struct platform_device *pdev) dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n", dwc3_data->glue_base, dwc3_data->syscfg_reg_off); - dwc3_data->rstc_pwrdn = devm_reset_control_get(dev, "powerdown"); + dwc3_data->rstc_pwrdn = + devm_reset_control_get_exclusive(dev, "powerdown"); if (IS_ERR(dwc3_data->rstc_pwrdn)) { dev_err(&pdev->dev, "could not get power controller\n"); ret = PTR_ERR(dwc3_data->rstc_pwrdn); @@ -237,7 +238,8 @@ static int st_dwc3_probe(struct platform_device *pdev) /* Manage PowerDown */ reset_control_deassert(dwc3_data->rstc_pwrdn); - dwc3_data->rstc_rst = devm_reset_control_get(dev, "softreset"); + dwc3_data->rstc_rst = + devm_reset_control_get_shared(dev, "softreset"); if (IS_ERR(dwc3_data->rstc_rst)) { dev_err(&pdev->dev, "could not get reset controller\n"); ret = PTR_ERR(dwc3_data->rstc_rst);