Re: [PATCH 2/2] thermal: armada-thermal: clear reset in armadaxp_init
From: Miquel Raynal
Date: Wed Nov 27 2019 - 06:00:23 EST
Hi Zak,
Zak Hays <zak.hays@xxxxxxxxxxx> wrote on Tue, 26 Nov 2019 14:54:11
+0000:
> The reset bit needs to be cleared in the init sequence otherwise it
>
> holds the block in reset.
"thermal: armada: " is the right prefix for your title
Your Signed-off-by should be here (git commit --amend -s)
The format of your patch is strange, there are additional empty lines
which are problematic.
>
> ---
>
> Âdrivers/thermal/armada_thermal.c | 3 +++
>
> Â1 file changed, 3 insertions(+)
>
>
>
> diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c
>
> index 88363812033c..8c4d1244ee7a 100644
>
> --- a/drivers/thermal/armada_thermal.c
>
> +++ b/drivers/thermal/armada_thermal.c
>
> @@ -155,6 +155,9 @@ static void armadaxp_init(struct platform_device *pdev,
>
> Â
>
> ÂÂÂÂÂÂÂÂ regmap_write(priv->syscon, data->syscon_control1_off, reg);
>
> Â
>
> +ÂÂÂÂÂÂ reg &= ~PMU_TDC0_SW_RST_MASK;
>
> +ÂÂÂÂÂÂ regmap_write(priv->syscon, data->syscon_control1_off, reg);
>
> +
Do you really want to write this register twice? Shouldn't you get rid
of the first regmap_write() above?
>
> ÂÂÂÂÂÂÂÂ /* Enable the sensor */
>
> ÂÂÂÂÂÂÂÂ regmap_read(priv->syscon, data->syscon_status_off, ®);
>
> ÂÂÂÂÂÂÂÂ reg &= ~PMU_TM_DISABLE_MASK;
>
In your next iteration, please use the '-v2' option with
git-format-patch to get titles starting with "[PATCH v2 x/2] ..."
automatically. Also write a changelog below the three dots '---'.
Thanks,
MiquÃl