i2c: riic: Call pm_runtime_get_sync() when need to access registers

There is no need to runtime resume the device as long as the IP registers
are not accessed. Calling pm_runtime_get_sync() at the register access
time leads to a simpler error path.

Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
Claudiu Beznea 2024-08-20 13:19:09 +03:00 • committed by Andi Shyti
commit a1ecb04158