Re: [PATCH v1 00/12] Improvements for Tegra I2C driver

From: Michał Mirosław
Date: Wed Sep 02 2020 - 17:20:32 EST


On Mon, Aug 31, 2020 at 11:22:51PM +0300, Dmitry Osipenko wrote:
> Hello!
>
> This series performs a small refactoring of the Tegra I2C driver code and
> hardens the atomic-transfer mode.
>
> Dmitry Osipenko (12):
> i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer
> i2c: tegra: Add missing newline before returns
> i2c: tegra: Clean up messages in the code
> i2c: tegra: Don't ignore tegra_i2c_flush_fifos() error
> i2c: tegra: Use reset_control_reset()
> i2c: tegra: Improve formatting of function variables
> i2c: tegra: Use dev_err_probe()
> i2c: tegra: Runtime PM always available on Tegra
> i2c: tegra: Clean up probe function
> i2c: tegra: Drop '_timeout' from wait/poll function names
> i2c: tegra: Remove likely/unlikely from the code
> i2c: tegra: Factor out error recovery from tegra_i2c_xfer_msg()

For all, but #3 and #9:
Reviewed-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>

BTW, I wonder if you could expose i2c_in_atomic_xfer_mode() and use it
to differentiate atomic_xfer from normal and get rid of the internal
flag and .master_xfer_atomic callback.

Best Regards,
Michał Mirosław