watchdog: Drop GD_FLG_WDT_READY as it's not used any more
Subsystems (2)
PATCH 1/1 watchdog: Drop GD_FLG_WDT_READY as it's not used any more
Since commit c2fd0ca1a822
("watchdog: Integrate watchdog triggering into the cyclic framework") GD_FLG_WDT_READY has become write-only. This patch now removes this flag completely.
The vacant spot in gd_flags is filled with the newly introduced GD_FLG_CYCLIC_RUNNING flag.
Suggested-by Rasmus Villemoes <[email protected]>
Signed-off-by Stefan Roese <[email protected]>
--- drivers/watchdog/wdt-uclass.c | 1 - include/asm-generic/global_data.h | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-)
drivers/watchdog/wdt-uclass.c +0 -1
@@ -105,7 +105,6 @@ int initr_watchdog(void)init_watchdog_dev (dev); } - gd->flags |=GD_FLG_WDT_READY ;return 0 ; }
include/asm-generic/global_data.h +2 -6
@@ -635,9 +635,9 @@ enum gd_flags {*/ GD_FLG_LOG_READY =0x10000 ,/** -* @GD_FLG_WDT_READY: watchdog is ready for use +* @GD_FLG_CYCLIC_RUNNING: cyclic_run is in progress */ - GD_FLG_WDT_READY = 0x20000, + GD_FLG_CYCLIC_RUNNING = 0x20000,/** * @GD_FLG_SKIP_LL_INIT: don't perform low-level initialization */
@@ -650,10 +650,6 @@ enum gd_flags {* @GD_FLG_FDT_CHANGED: Device tree change has been detected by tests */ GD_FLG_FDT_CHANGED = 0x100000, -/** -* @GD_FLG_CYCLIC_RUNNING: cyclic_run is in progress -*/ - GD_FLG_CYCLIC_RUNNING = 0x200000, };#endif /* __ASSEMBLY__ */
Signature · 1 line
2.38.1
Quoted 10 lines · Stefan Roese
Since commit
c2fd0ca1a822
("watchdog: Integrate watchdog triggering into the cyclic framework")GD_FLG_WDT_READYhas become write-only. This patch now removes this flag completely.The vacant spot in
gd_flagsis filled with the newly introducedGD_FLG_CYCLIC_RUNNINGflag.Suggested-by Rasmus Villemoes <[email protected]>Signed-off-by Stefan Roese <[email protected]>
Applied to u-boot-watchdog/master
Thanks,
Stefan
Quoted 34 lines
--- drivers/watchdog/wdt-uclass.c | 1 - include/asm-generic/global_data.h | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-)drivers/watchdog/wdt-uclass.c +0
-1@@ -105,7 +105,6 @@ int initr_watchdog(void)init_watchdog_dev (dev); } - gd->flags |=GD_FLG_WDT_READY ;return 0 ; }include/asm-generic/global_data.h +2
-2@@ -635,9 +635,9 @@ enum gd_flags {*/ GD_FLG_LOG_READY =0x10000 ,/** -* @GD_FLG_WDT_READY: watchdog is ready for use +* @GD_FLG_CYCLIC_RUNNING: cyclic_run is in progress */ - GD_FLG_WDT_READY = 0x20000, + GD_FLG_CYCLIC_RUNNING = 0x20000,/** * @GD_FLG_SKIP_LL_INIT: don't perform low-level initialization */
include/asm-generic/global_data.h enum gd_flags { · line 655
Quoted 10 lines
include/asm-generic/global_data.h +0
-4@@ -650,10 +650,6 @@ enum gd_flags {* @GD_FLG_FDT_CHANGED: Device tree change has been detected by tests */ GD_FLG_FDT_CHANGED = 0x100000, -/** -* @GD_FLG_CYCLIC_RUNNING: cyclic_run is in progress -*/ - GD_FLG_CYCLIC_RUNNING = 0x200000, };#endif /* __ASSEMBLY__ */
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]