i2c: cadence: Implement save restore
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Tue, 13 Jul 2021 07:00:11 +0000 (12:30 +0530)
committerWolfram Sang <wsa@kernel.org>
Wed, 25 Aug 2021 21:07:05 +0000 (23:07 +0200)
commit8b51a8e64443b95fb9fec9f76f1c93777b35310a
tree2d1dfa4e0b23330bfee1c1a101a85eeafda7bc79
parent661e8a88e8317eb9ffe69c69d6cb4876370fe7e2
i2c: cadence: Implement save restore

The zynqmp platform now supports chip-off so the registers can
lose context.
Implement save restore for i2c module.
Since we have only a couple of registers
an unconditional restore is done.

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-cadence.c