Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1691883

[PATCH 087/102] usb: dwc2: explicitly request exclusive reset control

From Philipp Zabel <p.zabel@pengutronix.de>
Newsgroups linux.kernel
Subject [PATCH 087/102] usb: dwc2: explicitly request exclusive reset control
Date 2017-07-19 17:40 +0200
Message-ID <u4ZeW-222-29@gated-at.bofh.it> (permalink)
References <u4Z5f-1XQ-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.

No functional changes.

Cc: John Youn <johnyoun@synopsys.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
---
 drivers/usb/dwc2/platform.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index daf0d37acb37f..b9ec45b5f85d4 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -211,7 +211,8 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg)
 {
 	int i, ret;
 
-	hsotg->reset = devm_reset_control_get_optional(hsotg->dev, "dwc2");
+	hsotg->reset = devm_reset_control_get_optional_exclusive(hsotg->dev,
+								 "dwc2");
 	if (IS_ERR(hsotg->reset)) {
 		ret = PTR_ERR(hsotg->reset);
 		dev_err(hsotg->dev, "error getting reset control %d\n", ret);
-- 
2.11.0

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 087/102] usb: dwc2: explicitly request exclusive reset control Philipp Zabel <p.zabel@pengutronix.de> - 2017-07-19 17:40 +0200

csiph-web