On Mon, Jan 11, 2021 at 06:08:32PM +0200, Mikko Perttunen wrote:
Upon a communication error, the interrupt handler can call tegra_i2c_disable_packet_mode. This causes a sleeping poll to happen unless the current transaction was marked atomic. Fix this by making the poll happen atomically if we are in an IRQ.
This matches the behavior prior to the patch mentioned in the Fixes tag.
Fixes: ede2299f7101 ("i2c: tegra: Support atomic transfers") Cc: stable@vger.kernel.org Signed-off-by: Mikko Perttunen mperttunen@nvidia.com
Applied to for-current, thanks!