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>
This commit is contained in:
Eugeniy Paltsev 2018-10-17 17:05:52 +03:00 committed by Philipp Zabel
parent bfeffd1552
commit 42f03ab3c7
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ static int hsdk_reset_reset(struct reset_controller_dev *rcdev,
static const struct reset_control_ops hsdk_reset_ops = { static const struct reset_control_ops hsdk_reset_ops = {
.reset = hsdk_reset_reset, .reset = hsdk_reset_reset,
.deassert = hsdk_reset_reset,
}; };
static int hsdk_reset_probe(struct platform_device *pdev) static int hsdk_reset_probe(struct platform_device *pdev)