From patchwork Tue Jun 28 09:27:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 70984 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1484434qgy; Tue, 28 Jun 2016 02:26:52 -0700 (PDT) X-Received: by 10.98.22.198 with SMTP id 189mr159359pfw.74.1467106012933; Tue, 28 Jun 2016 02:26:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c184si32691769pfa.95.2016.06.28.02.26.52; Tue, 28 Jun 2016 02:26:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752245AbcF1J0v (ORCPT + 5 others); Tue, 28 Jun 2016 05:26:51 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38358 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074AbcF1J0t (ORCPT ); Tue, 28 Jun 2016 05:26:49 -0400 Received: by mail-wm0-f45.google.com with SMTP id r201so18248835wme.1 for ; Tue, 28 Jun 2016 02:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wSSOZ+fQYXPCl47JOJ2H1kyh8Lybh7Xpui2AQjDVk70=; b=CLqutfazu9kmO4opeFHYyehIDKonOFSN5UuJhIfqEnUfDEfva4EfqQaiEI6dYETcAl 3g9Rpz21R+qQFgDJZrd16wzITwaw97SOPQkByWii+tJY+7DKoSo5ncCfoOHJRPO5nBzL mz3onBMA3zfO3vEqO4dGBIGlaYN5lkHn0dO+k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wSSOZ+fQYXPCl47JOJ2H1kyh8Lybh7Xpui2AQjDVk70=; b=CmEr1aehs1CzD7nl7JK176xVh0YYXDgJ9OIA9jdYAxMGjoj1PEwVbtzYQiIUIdPIIY XnVSdkijCNn4N5qsVrAyJ2f17Oxhp27hVY8cnQsTqZTOZOtzwSZJZx+d2oJVEdg5KuPG f4Yz55EdzVTXBz5mAh20Kp5vdVSiXKx7+/SZYHGT2NihEpLKyx95W/AjId41F8r2VbWc l8IZfFp3wOHEPpzVaZNxGvsfWglxTEDqg0hhh402+yZjlVIbvvk8cb8/LU6vrDx/1v+l ar0KU3GX+3goW6CAyinNjvcv6GPcT0aK+34xO6/Rteg+RgYwkBh2uUgWYw6aXsjSq7bL 73cQ== X-Gm-Message-State: ALyK8tK8+0H5bzgkXYNGB49DtjszRMe/tNkzQvykapr6ACcsbft8iKsLpyqXZZ8qnfC3GzYJ X-Received: by 10.195.11.40 with SMTP id ef8mr1977508wjd.137.1467106008329; Tue, 28 Jun 2016 02:26:48 -0700 (PDT) Received: from dell (host81-129-170-195.range81-129.btcentralplus.com. [81.129.170.195]) by smtp.gmail.com with ESMTPSA id x10sm7124507wjj.14.2016.06.28.02.26.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 02:26:47 -0700 (PDT) Date: Tue, 28 Jun 2016 10:27:40 +0100 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 Subject: [PATCH 1/1] usb: dwc3: st: Inform the reset framework that our reset line may be shared Message-ID: <20160628092740.GP6720@dell> References: <20160606155655.10860-1-lee.jones@linaro.org> <20160606155655.10860-8-lee.jones@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160606155655.10860-8-lee.jones@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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 --- Felipe, I'd like to send this patch (amonst others) to the -rcs today if possible. Would you be kind enough to Ack it, so I can do so please? drivers/usb/dwc3/dwc3-st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 5c0adb9..b204617 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c @@ -237,7 +237,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);