summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-hsdk.c
diff options
context:
space:
mode:
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>2018-10-17 17:05:52 +0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2019-01-07 18:38:26 +0300
commit42f03ab3c75197e8fec2dbd6b50bc699619aab9b (patch)
treec0caed078f74826e2a43306f39757f6f1430963c /drivers/reset/reset-hsdk.c
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
downloadlinux-42f03ab3c75197e8fec2dbd6b50bc699619aab9b.tar.xz
ARC: HSDK: improve reset driver
As for today HSDK reset driver implements only .reset() callback. In case of driver which implements one of standard reset controller usage pattern (call *_deassert() in probe(), call *_assert() in remove()) that leads to inoperability of this reset driver. Improve HSDK reset driver by calling .reset() callback inside of .deassert() callback to avoid each reset controller user adaptation for work with both reset methods (reset() and {.assert() & .deassert()} pair) Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-hsdk.c')
-rw-r--r--drivers/reset/reset-hsdk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c
index 8bce391c6943..4c7b8647b49c 100644
--- a/drivers/reset/reset-hsdk.c
+++ b/drivers/reset/reset-hsdk.c
@@ -86,6 +86,7 @@ static int hsdk_reset_reset(struct reset_controller_dev *rcdev,
static const struct reset_control_ops hsdk_reset_ops = {
.reset = hsdk_reset_reset,
+ .deassert = hsdk_reset_reset,
};
static int hsdk_reset_probe(struct platform_device *pdev)