Skip to content
Snippets Groups Projects
Commit 2efe6053 authored by Grygorii Tertychnyi's avatar Grygorii Tertychnyi Committed by Frieder Schrempf
Browse files

i2c: ocores: set IACK bit after core is enabled


commit 5a724772 upstream.

Setting IACK bit when core is disabled does not clear the "Interrupt Flag"
bit in the status register, and the interrupt remains pending.

Sometimes it causes failure for the very first message transfer, that is
usually a device probe.

Hence, set IACK bit after core is enabled to clear pending interrupt.

Fixes: 18f98b1e ("[PATCH] i2c: New bus driver for the OpenCores I2C controller")
Signed-off-by: default avatarGrygorii Tertychnyi <grygorii.tertychnyi@leica-geosystems.com>
Acked-by: default avatarPeter Korsgaard <peter@korsgaard.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8493850e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment