diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-09-30 00:18:52 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-10-05 22:57:40 +0200 |
commit | 85934909678993827fe538d994d6e3da91f6e046 (patch) | |
tree | 48a776a2bd8d8a277660df7e5502b5fe76ecfc84 /lib/dim/net_dim.c | |
parent | i2c: tegra: Remove error message used for devm_request_irq() failure (diff) | |
download | linux-85934909678993827fe538d994d6e3da91f6e046.tar.xz linux-85934909678993827fe538d994d6e3da91f6e046.zip |
i2c: tegra: Use reset_control_reset()
Use a single reset_control_reset() instead of assert/deasset couple in
order to make code cleaner a tad. Note that the reset_control_reset()
uses 1 microsecond delay instead of 2 that was used previously, but this
shouldn't matter because one microsecond is a default reset time for most
of Tegra peripherals and TRM doesn't mention anything special in regards
to I2C controller's reset propagation time.
In addition don't ignore potential error of the reset control by emitting
a noisy warning if it fails, which will indicate an existence of a severe
problem, while still allow machine to boot up.
Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'lib/dim/net_dim.c')
0 files changed, 0 insertions, 0 deletions