Re: [PATCH v2] pwm: axi-pwmgen: add .max_register to regmap

From: Uwe Kleine-König
Date: Thu Jul 11 2024 - 09:49:15 EST


Hello Trevor,

On Thu, Jul 11, 2024 at 08:57:42AM -0400, Trevor Gamblin wrote:
> This was missed in the basic driver and is useful for debug, so add it.
>
> Example regmap output before the patch:
>
> |root@zed-tg:~# cat /sys/kernel/debug/regmap/44a60000.pwm/registers
> |0: 00020100
>
> And with it:
>
> |root@zed-tg:~# cat /sys/kernel/debug/regmap/44a60000.pwm/registers
> |00: 00020100
> |04: 00000000
> |08: 00000000
> |0c: 601a3471
> |10: 00000000
> |14: 00000002
> |18: 00000001
> |1c: 00000000
> |...
>
> Signed-off-by: Trevor Gamblin <tgamblin@xxxxxxxxxxxx>
> ---
> v2 just adds an example of the effect to the commit log.
> ---

Makes sense. I applied it to pwm/for-next.

Thanks
Uwe

Attachment: signature.asc
Description: PGP signature