Re: [PATCH V5 7/7] i2c: tegra: remove BUG, BUG_ON

From: Dmitry Osipenko
Date: Tue Jun 11 2019 - 07:42:59 EST


11.06.2019 13:51, Bitan Biswas ÐÐÑÐÑ:
> Remove redundant BUG_ON calls or replace with WARN_ON_ONCE
> as needed. Remove BUG() and make Rx and Tx case handling
> similar. Add WARN_ON_ONCE check for non-zero rx_fifo_avail
> in tegra_i2c_empty_rx_fifo() and return new error
> I2C_ERR_UNEXPECTED_STATUS.
>
> Signed-off-by: Bitan Biswas <bbiswas@xxxxxxxxxx>
> ---

Please see my answer to v4.