All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
@ 2020-09-09 21:04 Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 1/7] wdt: dw: Switch to using fls for log2 Sean Anderson
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

This series depends on
https://patchwork.ozlabs.org/project/uboot/list/?series=200642

Changes in v4:
- Fix build error without CONFIG_CLK

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 | 39 ++++++++++++++++++++-----------
 3 files changed, 27 insertions(+), 15 deletions(-)

-- 
2.28.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v4 1/7] wdt: dw: Switch to using fls for log2
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if Sean Anderson
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

log_2_n_round_up is only found in arm. fls performs the same job and is
generic.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

(no changes since v2)

Changes in v2:
- Fix fls being off-by-one when compared to log_2_n_round_up

 drivers/watchdog/designware_wdt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index 12f09a7a39..f25c8d9ab3 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -9,7 +9,6 @@
 #include <reset.h>
 #include <wdt.h>
 #include <asm/io.h>
-#include <asm/utils.h>
 #include <linux/bitops.h>
 
 #define DW_WDT_CR	0x00
@@ -35,7 +34,7 @@ static int designware_wdt_settimeout(void __iomem *base, unsigned int clk_khz,
 	signed int i;
 
 	/* calculate the timeout range value */
-	i = log_2_n_round_up(timeout * clk_khz) - 16;
+	i = fls(timeout * clk_khz - 1) - 16;
 	i = clamp(i, 0, 15);
 
 	writel(i | (i << 4), base + DW_WDT_TORR);
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 1/7] wdt: dw: Switch to using fls for log2 Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 3/7] wdt: dw: Fix clock rate being off by 1000 Sean Anderson
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

This is preferred over #if because the compiler can check syntax even if
the feature is disabled. This cannot be used for CONFIG_CLK because
CONFIG_DW_WDT_CLOCK_KHZ is not defined on all platforms.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---

(no changes since v1)

 drivers/watchdog/designware_wdt.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index f25c8d9ab3..49cf861d46 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -136,17 +136,17 @@ static int designware_wdt_probe(struct udevice *dev)
 	priv->clk_khz = CONFIG_DW_WDT_CLOCK_KHZ;
 #endif
 
-#if CONFIG_IS_ENABLED(DM_RESET)
-	struct reset_ctl_bulk resets;
+	if (CONFIG_IS_ENABLED(DM_RESET)) {
+		struct reset_ctl_bulk resets;
 
-	ret = reset_get_bulk(dev, &resets);
-	if (ret)
-		return ret;
+		ret = reset_get_bulk(dev, &resets);
+		if (ret)
+			return ret;
 
-	ret = reset_deassert_bulk(&resets);
-	if (ret)
-		return ret;
-#endif
+		ret = reset_deassert_bulk(&resets);
+		if (ret)
+			return ret;
+	}
 
 	/* reset to disable the watchdog */
 	return designware_wdt_stop(dev);
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 3/7] wdt: dw: Fix clock rate being off by 1000
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 1/7] wdt: dw: Switch to using fls for log2 Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 4/7] wdt: dw: Enable the clock before using it Sean Anderson
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

The clock subsystem returns clock rates in Hz. We need to divide by 1000 so
the rate is in kHz.

Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 drivers/watchdog/designware_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index 49cf861d46..41866fa01b 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -129,7 +129,7 @@ static int designware_wdt_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
-	priv->clk_khz = clk_get_rate(&clk);
+	priv->clk_khz = clk_get_rate(&clk) / 1000;
 	if (!priv->clk_khz)
 		return -EINVAL;
 #else
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 4/7] wdt: dw: Enable the clock before using it
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
                   ` (2 preceding siblings ...)
  2020-09-09 21:04 ` [PATCH v4 3/7] wdt: dw: Fix clock rate being off by 1000 Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 5/7] wdt: dw: Free the clock on error Sean Anderson
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

The watchdog won't work if the clock isn't enabled.

Fixes: cf89ef8d10f240554541c20b2e1bdcdd58d1d7e6
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 drivers/watchdog/designware_wdt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index 41866fa01b..e6f5437056 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -129,6 +129,10 @@ static int designware_wdt_probe(struct udevice *dev)
 	if (ret)
 		return ret;
 
+	ret = clk_enable(&clk);
+	if (ret)
+		return ret;
+
 	priv->clk_khz = clk_get_rate(&clk) / 1000;
 	if (!priv->clk_khz)
 		return -EINVAL;
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 5/7] wdt: dw: Free the clock on error
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
                   ` (3 preceding siblings ...)
  2020-09-09 21:04 ` [PATCH v4 4/7] wdt: dw: Enable the clock before using it Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 6/7] riscv: Add watchdog bindings for the k210 Sean Anderson
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

The clock subsystem requires that clk_free be called on clocks obtained via
clk_get_*.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v4:
- Fix build error without CONFIG_CLK

 drivers/watchdog/designware_wdt.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c
index e6f5437056..b952737fb4 100644
--- a/drivers/watchdog/designware_wdt.c
+++ b/drivers/watchdog/designware_wdt.c
@@ -131,11 +131,13 @@ static int designware_wdt_probe(struct udevice *dev)
 
 	ret = clk_enable(&clk);
 	if (ret)
-		return ret;
+		goto err;
 
 	priv->clk_khz = clk_get_rate(&clk) / 1000;
-	if (!priv->clk_khz)
-		return -EINVAL;
+	if (!priv->clk_khz) {
+		ret = -EINVAL;
+		goto err;
+	}
 #else
 	priv->clk_khz = CONFIG_DW_WDT_CLOCK_KHZ;
 #endif
@@ -145,15 +147,21 @@ static int designware_wdt_probe(struct udevice *dev)
 
 		ret = reset_get_bulk(dev, &resets);
 		if (ret)
-			return ret;
+			goto err;
 
 		ret = reset_deassert_bulk(&resets);
 		if (ret)
-			return ret;
+			goto err;
 	}
 
 	/* reset to disable the watchdog */
 	return designware_wdt_stop(dev);
+
+err:
+#if CONFIG_IS_ENABLED(CLK)
+	clk_free(&clk);
+#endif
+	return ret;
 }
 
 static const struct wdt_ops designware_wdt_ops = {
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 6/7] riscv: Add watchdog bindings for the k210
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
                   ` (4 preceding siblings ...)
  2020-09-09 21:04 ` [PATCH v4 5/7] wdt: dw: Free the clock on error Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-09-09 21:04 ` [PATCH v4 7/7] riscv: Enable watchdog " Sean Anderson
  2020-10-01 14:56 ` [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

This adds the necessary bindings. Most of them are already there.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Acked-by: Rick Chen <rick@andestech.com>
---

(no changes since v2)

Changes in v2:
- Move watchdog enable to k210.dtsi as it does not depend on anything
  board-specific.

 arch/riscv/dts/k210.dtsi | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi
index 84cff51c36..81ac417dde 100644
--- a/arch/riscv/dts/k210.dtsi
+++ b/arch/riscv/dts/k210.dtsi
@@ -426,7 +426,6 @@
 				interrupts = <21>;
 				clocks = <&sysclk K210_CLK_WDT0>;
 				resets = <&sysrst K210_RST_WDT0>;
-				status = "disabled";
 			};
 
 			wdt1: watchdog at 50410000 {
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 7/7] riscv: Enable watchdog for the k210
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
                   ` (5 preceding siblings ...)
  2020-09-09 21:04 ` [PATCH v4 6/7] riscv: Add watchdog bindings for the k210 Sean Anderson
@ 2020-09-09 21:04 ` Sean Anderson
  2020-10-01 14:56 ` [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
  7 siblings, 0 replies; 12+ messages in thread
From: Sean Anderson @ 2020-09-09 21:04 UTC (permalink / raw)
  To: u-boot

This enables the necessary config options.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

(no changes since v3)

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

 board/sipeed/maix/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/sipeed/maix/Kconfig b/board/sipeed/maix/Kconfig
index 0cdcd32adc..b9dac5a64e 100644
--- a/board/sipeed/maix/Kconfig
+++ b/board/sipeed/maix/Kconfig
@@ -44,4 +44,6 @@ config BOARD_SPECIFIC_OPTIONS
 	imply RESET_SYSCON
 	imply SYSRESET
 	imply SYSRESET_SYSCON
+	imply WDT
+	imply DESIGNWARE_WATCHDOG
 endif
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
  2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
                   ` (6 preceding siblings ...)
  2020-09-09 21:04 ` [PATCH v4 7/7] riscv: Enable watchdog " Sean Anderson
@ 2020-10-01 14:56 ` Sean Anderson
  2020-10-23 13:30   ` Sean Anderson
  7 siblings, 1 reply; 12+ messages in thread
From: Sean Anderson @ 2020-10-01 14:56 UTC (permalink / raw)
  To: u-boot

On 9/9/20 5:04 PM, Sean Anderson wrote:
> This series depends on
> https://patchwork.ozlabs.org/project/uboot/list/?series=200642
> 
> Changes in v4:
> - Fix build error without CONFIG_CLK
> 
> 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 | 39 ++++++++++++++++++++-----------
>  3 files changed, 27 insertions(+), 15 deletions(-)
> 

*ping*

Marek can these go into -next?

--Sean

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
  2020-10-01 14:56 ` [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
@ 2020-10-23 13:30   ` Sean Anderson
  2020-10-26 21:23     ` Tom Rini
       [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FB22ACFFD@ATCPCS12.andestech.com>
  0 siblings, 2 replies; 12+ messages in thread
From: Sean Anderson @ 2020-10-23 13:30 UTC (permalink / raw)
  To: u-boot


On 10/1/20 10:56 AM, Sean Anderson wrote:
> On 9/9/20 5:04 PM, Sean Anderson wrote:
>> This series depends on
>> https://patchwork.ozlabs.org/project/uboot/list/?series=200642
>>
>> Changes in v4:
>> - Fix build error without CONFIG_CLK
>>
>> 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 | 39 ++++++++++++++++++++-----------
>>  3 files changed, 27 insertions(+), 15 deletions(-)
>>
> 
> *ping*
> 
> Marek can these go into -next?
> 
> --Sean
> 

*second ping*

It appears that an earlier version of this series [1] was assigned to
Marek Vasut, but that the current version is assigned to Rick Chen. v2
should be marked as superseded. Can this get picked up for the merge
window?

--Sean

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
  2020-10-23 13:30   ` Sean Anderson
@ 2020-10-26 21:23     ` Tom Rini
       [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FB22ACFFD@ATCPCS12.andestech.com>
  1 sibling, 0 replies; 12+ messages in thread
From: Tom Rini @ 2020-10-26 21:23 UTC (permalink / raw)
  To: u-boot

On Fri, Oct 23, 2020 at 09:30:24AM -0400, Sean Anderson wrote:
> 
> On 10/1/20 10:56 AM, Sean Anderson wrote:
> > On 9/9/20 5:04 PM, Sean Anderson wrote:
> >> This series depends on
> >> https://patchwork.ozlabs.org/project/uboot/list/?series=200642
> >>
> >> Changes in v4:
> >> - Fix build error without CONFIG_CLK
> >>
> >> 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 | 39 ++++++++++++++++++++-----------
> >>  3 files changed, 27 insertions(+), 15 deletions(-)
> >>
> > 
> > *ping*
> > 
> > Marek can these go into -next?
> > 
> > --Sean
> > 
> 
> *second ping*
> 
> It appears that an earlier version of this series [1] was assigned to
> Marek Vasut, but that the current version is assigned to Rick Chen. v2
> should be marked as superseded. Can this get picked up for the merge
> window?

The v2 mess-up was me, probably, some typo or another.  For v4, it looks
fine to me.  Rick?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201026/84ab3e46/attachment-0001.sig>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
       [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FB22ACFFD@ATCPCS12.andestech.com>
@ 2020-11-04  2:08       ` Rick Chen
  0 siblings, 0 replies; 12+ messages in thread
From: Rick Chen @ 2020-11-04  2:08 UTC (permalink / raw)
  To: u-boot

<rick@andestech.com> ? 2020?11?4? ?? ??10:01???
>
>
>
> -----Original Message-----
> From: U-Boot [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Sean Anderson
> Sent: Friday, October 23, 2020 9:30 PM
> To: u-boot at lists.denx.de
> Cc: Bin Meng; Marek Vasut; Jagan Teki; Simon Glass; Heinrich Schuchardt
> Subject: Re: [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210
>
>
> On 10/1/20 10:56 AM, Sean Anderson wrote:
> > On 9/9/20 5:04 PM, Sean Anderson wrote:
> >> This series depends on
> >> https://patchwork.ozlabs.org/project/uboot/list/?series=200642
> >>
> >> Changes in v4:
> >> - Fix build error without CONFIG_CLK
> >>
> >> 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 | 39 ++++++++++++++++++++-----------
> >>  3 files changed, 27 insertions(+), 15 deletions(-)
> >>
> >
> > *ping*
> >
> > Marek can these go into -next?
> >
> > --Sean
> >
>
> *second ping*
>
> It appears that an earlier version of this series [1] was assigned to
> Marek Vasut, but that the current version is assigned to Rick Chen. v2
> should be marked as superseded. Can this get picked up for the merge
> window?

Those patchs seem have been reviewed and tagged.
If no other comments furthermore.
I can help to pull via riscv tree later.

But it shall sync to master again:
Applying: wdt: dw: Switch to using fls for log2
Applying: wdt: dw: Switch to if(CONFIG()) instead of using #if
Applying: wdt: dw: Fix clock rate being off by 1000
error: patch failed: drivers/watchdog/designware_wdt.c:129
error: drivers/watchdog/designware_wdt.c: patch does not apply
Patch failed at 0003 wdt: dw: Fix clock rate being off by 1000

Thanks,
Rick

>
> --Sean
>
> [1] https://patchwork.ozlabs.org/project/uboot/list/?series=194673
> [2] https://patchwork.ozlabs.org/project/uboot/list/?series=200657

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-11-04  2:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 21:04 [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
2020-09-09 21:04 ` [PATCH v4 1/7] wdt: dw: Switch to using fls for log2 Sean Anderson
2020-09-09 21:04 ` [PATCH v4 2/7] wdt: dw: Switch to if(CONFIG()) instead of using #if Sean Anderson
2020-09-09 21:04 ` [PATCH v4 3/7] wdt: dw: Fix clock rate being off by 1000 Sean Anderson
2020-09-09 21:04 ` [PATCH v4 4/7] wdt: dw: Enable the clock before using it Sean Anderson
2020-09-09 21:04 ` [PATCH v4 5/7] wdt: dw: Free the clock on error Sean Anderson
2020-09-09 21:04 ` [PATCH v4 6/7] riscv: Add watchdog bindings for the k210 Sean Anderson
2020-09-09 21:04 ` [PATCH v4 7/7] riscv: Enable watchdog " Sean Anderson
2020-10-01 14:56 ` [PATCH v4 0/7] wdt: Add support for watchdogs on Kendryte K210 Sean Anderson
2020-10-23 13:30   ` Sean Anderson
2020-10-26 21:23     ` Tom Rini
     [not found]     ` <752D002CFF5D0F4FA35C0100F1D73F3FB22ACFFD@ATCPCS12.andestech.com>
2020-11-04  2:08       ` Rick Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.