Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eugeniy Paltsev and committed by
Philipp Zabel
42f03ab3 bfeffd15

+1
+1
drivers/reset/reset-hsdk.c
··· 86 86 87 87 static const struct reset_control_ops hsdk_reset_ops = { 88 88 .reset = hsdk_reset_reset, 89 + .deassert = hsdk_reset_reset, 89 90 }; 90 91 91 92 static int hsdk_reset_probe(struct platform_device *pdev)