Discussion:
[PATCH 007/102] bus: sunxi-rsb: explicitly request exclusive reset control
Philipp Zabel
2017-07-19 15:25:11 UTC
Permalink
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: Maxime Ripard <***@free-electrons.com>
Cc: Chen-Yu Tsai <***@csie.org>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/bus/sunxi-rsb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c
index 795c9d9c96a6d..c7f585a420d3e 100644
--- a/drivers/bus/sunxi-rsb.c
+++ b/drivers/bus/sunxi-rsb.c
@@ -670,7 +670,7 @@ static int sunxi_rsb_probe(struct platform_device *pdev)

p_clk_freq = clk_get_rate(rsb->clk);

- rsb->rstc = devm_reset_control_get(dev, NULL);
+ rsb->rstc = devm_reset_control_get_exclusive(dev, NULL);
if (IS_ERR(rsb->rstc)) {
ret = PTR_ERR(rsb->rstc);
dev_err(dev, "failed to retrieve reset controller: %d\n", ret);
--
2.11.0
Philipp Zabel
2017-07-19 15:25:54 UTC
Permalink
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: Srinivas Kandagatla <***@linaro.org>
Cc: Joachim Eastwood <***@gmail.com>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/nvmem/lpc18xx_eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/lpc18xx_eeprom.c b/drivers/nvmem/lpc18xx_eeprom.c
index c81ae4c6da74c..6c7e2c424a4e8 100644
--- a/drivers/nvmem/lpc18xx_eeprom.c
+++ b/drivers/nvmem/lpc18xx_eeprom.c
@@ -197,7 +197,7 @@ static int lpc18xx_eeprom_probe(struct platform_device *pdev)
return ret;
}

- rst = devm_reset_control_get(dev, NULL);
+ rst = devm_reset_control_get_exclusive(dev, NULL);
if (IS_ERR(rst)) {
dev_err(dev, "failed to get reset: %ld\n", PTR_ERR(rst));
ret = PTR_ERR(rst);
--
2.11.0
Philipp Zabel
2017-07-19 15:26:05 UTC
Permalink
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: Kishon Vijay Abraham I <***@ti.com>
Cc: Maxime Ripard <***@free-electrons.com>
Cc: Chen-Yu Tsai <***@csie.org>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/phy/allwinner/phy-sun4i-usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c
index bbf06cfe5898c..6b3c76e279c9b 100644
--- a/drivers/phy/allwinner/phy-sun4i-usb.c
+++ b/drivers/phy/allwinner/phy-sun4i-usb.c
@@ -707,7 +707,7 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev)
}

snprintf(name, sizeof(name), "usb%d_reset", i);
- phy->reset = devm_reset_control_get(dev, name);
+ phy->reset = devm_reset_control_get_exclusive(dev, name);
if (IS_ERR(phy->reset)) {
dev_err(dev, "failed to get reset %s\n", name);
return PTR_ERR(phy->reset);
--
2.11.0
Philipp Zabel
2017-07-19 15:25:15 UTC
Permalink
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: Daniel Lezcano <***@linaro.org>
Cc: Thomas Gleixner <***@linutronix.de>
Cc: Maxime Coquelin <***@gmail.com>
Cc: Alexandre Torgue <***@st.com>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/clocksource/timer-stm32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c
index 174d1243ea93a..b0bac14911b11 100644
--- a/drivers/clocksource/timer-stm32.c
+++ b/drivers/clocksource/timer-stm32.c
@@ -122,7 +122,7 @@ static int __init stm32_clockevent_init(struct device_node *np)

rate = clk_get_rate(clk);

- rstc = of_reset_control_get(np, NULL);
+ rstc = of_reset_control_get_exclusive(np, NULL);
if (!IS_ERR(rstc)) {
reset_control_assert(rstc);
reset_control_deassert(rstc);
--
2.11.0
Philipp Zabel
2017-07-19 15:25:16 UTC
Permalink
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: Daniel Lezcano <***@linaro.org>
Cc: Thomas Gleixner <***@linutronix.de>
Cc: Maxime Ripard <***@free-electrons.com>
Cc: Chen-Yu Tsai <***@csie.org>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/clocksource/timer-sun5i.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c
index 2a3fe83ec3377..a75be5bfb8b20 100644
--- a/drivers/clocksource/timer-sun5i.c
+++ b/drivers/clocksource/timer-sun5i.c
@@ -349,7 +349,7 @@ static int __init sun5i_timer_init(struct device_node *node)
return PTR_ERR(clk);
}

- rstc = of_reset_control_get(node, NULL);
+ rstc = of_reset_control_get_exclusive(node, NULL);
if (!IS_ERR(rstc))
reset_control_deassert(rstc);
--
2.11.0
Philipp Zabel
2017-07-19 15:26:06 UTC
Permalink
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: Kishon Vijay Abraham I <***@ti.com>
Cc: Maxime Ripard <***@free-electrons.com>
Cc: Chen-Yu Tsai <***@csie.org>
Cc: linux-arm-***@lists.infradead.org
Signed-off-by: Philipp Zabel <***@pengutronix.de>
---
drivers/phy/allwinner/phy-sun9i-usb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/allwinner/phy-sun9i-usb.c b/drivers/phy/allwinner/phy-sun9i-usb.c
index 28fce4bce638e..a07aa04a88ed8 100644
--- a/drivers/phy/allwinner/phy-sun9i-usb.c
+++ b/drivers/phy/allwinner/phy-sun9i-usb.c
@@ -146,7 +146,7 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(phy->hsic_clk);
}

- phy->reset = devm_reset_control_get(dev, "hsic");
+ phy->reset = devm_reset_control_get_exclusive(dev, "hsic");
if (IS_ERR(phy->reset)) {
dev_err(dev, "failed to get reset control\n");
return PTR_ERR(phy->reset);
@@ -158,7 +158,7 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(phy->clk);
}

- phy->reset = devm_reset_control_get(dev, "phy");
+ phy->reset = devm_reset_control_get_exclusive(dev, "phy");
if (IS_ERR(phy->reset)) {
dev_err(dev, "failed to get reset control\n");
return PTR_ERR(phy->reset);
--
2.11.0
Loading...