Re: [PATCH 2/4] remoteproc: qcom: q6v5-mss: Improve readability across clk handling

From: Evan Green
Date: Tue Jan 21 2020 - 14:23:12 EST


On Fri, Jan 17, 2020 at 5:51 AM Sibi Sankar <sibis@xxxxxxxxxxxxxx> wrote:
>
> Define CLKEN and CLKOFF for improving readability of Q6SS clock
> handling.
>
> Signed-off-by: Sibi Sankar <sibis@xxxxxxxxxxxxxx>

It took me awhile to wrap my head around how this new define,
Q6SS_CBCR_TIMEOUT_US, sometimes replaces HALT_CHECK_MAX_LOOPS and
sometimes replaces SLEEP_CHECK_MAX_LOOPS. I guess they're conceptually
different but set to the same value for now? And you've fixed up a
place where the wrong one was used? If you thought the distinction was
meaningless I'd also be fine merging these two defines into one.
Either way, assuming the above is intentional, this looks ok to me.
Thanks for renaming that define.

Reviewed-by: Evan Green <evgreen@xxxxxxxxxxxx>