mbox series

[v3,0/7] wdt: Add support for watchdogs on Kendryte K210

Message ID 20200901200758.543851-1-seanga2@gmail.com
Headers show
Series wdt: Add support for watchdogs on Kendryte K210 | expand

Message

Sean Anderson Sept. 1, 2020, 8:07 p.m. UTC
This series depends on
https://patchwork.ozlabs.org/project/uboot/patch/20200901195548.542737-1-seanga2@gmail.com/

Changes in v3:
- Note dependency on "time: Fix get_ticks being non-monotonic"
- Add a few signed-off-bys which were sent for version 1

Changes in v2:
- Fix fls being off-by-one when compared to log_2_n_round_up
- Move watchdog enable to k210.dtsi as it does not depend on anything
  board-specific.

Sean Anderson (7):
  wdt: dw: Switch to using fls for log2
  wdt: dw: Switch to if(CONFIG()) instead of using #if
  wdt: dw: Fix clock rate being off by 1000
  wdt: dw: Enable the clock before using it
  wdt: dw: Free the clock on error
  riscv: Add watchdog bindings for the k210
  riscv: Enable watchdog for the k210

 arch/riscv/dts/k210.dtsi          |  1 -
 board/sipeed/maix/Kconfig         |  2 ++
 drivers/watchdog/designware_wdt.c | 38 +++++++++++++++++++------------
 3 files changed, 26 insertions(+), 15 deletions(-)

Comments

Sean Anderson Sept. 9, 2020, 8:35 p.m. UTC | #1
On 9/1/20 4:07 PM, Sean Anderson wrote:
> This series depends on
> https://patchwork.ozlabs.org/project/uboot/patch/20200901195548.542737-1-seanga2@gmail.com/

A note for those following along at home: after further investigation,
this series depends on [1]. It works with v1 of the above patch (as
linked), but if one applies v2 [2], it will panic without [1].

[1] https://patchwork.ozlabs.org/project/uboot/list/?series=200642
[2] https://patchwork.ozlabs.org/project/uboot/list/?series=200645

> 
> Changes in v3:
> - Note dependency on "time: Fix get_ticks being non-monotonic"
> - Add a few signed-off-bys which were sent for version 1
> 
> Changes in v2:
> - Fix fls being off-by-one when compared to log_2_n_round_up
> - Move watchdog enable to k210.dtsi as it does not depend on anything
>   board-specific.
> 
> Sean Anderson (7):
>   wdt: dw: Switch to using fls for log2
>   wdt: dw: Switch to if(CONFIG()) instead of using #if
>   wdt: dw: Fix clock rate being off by 1000
>   wdt: dw: Enable the clock before using it
>   wdt: dw: Free the clock on error
>   riscv: Add watchdog bindings for the k210
>   riscv: Enable watchdog for the k210
> 
>  arch/riscv/dts/k210.dtsi          |  1 -
>  board/sipeed/maix/Kconfig         |  2 ++
>  drivers/watchdog/designware_wdt.c | 38 +++++++++++++++++++------------
>  3 files changed, 26 insertions(+), 15 deletions(-)
>