Re: [PATCH 01/11] rockchip: otp: Refactor to use driver data and ops

2023-02-22 Thread Kever Yang
Hi Jonas,     Thanks for your patches. On 2023/2/16 07:48, Jonas Karlman wrote: Refactor the driver to use driver data and ops to simplify handling of SoCs that require a unique read op. Use readl_poll_sleep_timeout instead of a custom poll loop, and add validation of input parameter to main

[PATCH 01/11] rockchip: otp: Refactor to use driver data and ops

2023-02-15 Thread Jonas Karlman
Refactor the driver to use driver data and ops to simplify handling of SoCs that require a unique read op. Use readl_poll_sleep_timeout instead of a custom poll loop, and add validation of input parameter to main read op. Signed-off-by: Jonas Karlman --- drivers/misc/rockchip-otp.c | 83