]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
watchdog: Drop GD_FLG_WDT_READY as it's not used any more
authorStefan Roese <sr@denx.de>
Thu, 17 Nov 2022 08:20:34 +0000 (09:20 +0100)
committerStefan Roese <sr@denx.de>
Tue, 22 Nov 2022 07:56:26 +0000 (08:56 +0100)
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 <rasmus.villemoes@prevas.dk>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/watchdog/wdt-uclass.c
include/asm-generic/global_data.h

index 82df0ff0be5a271b407337e168ea3eef71db6027..509896a1b808a0a086de6b3ecd2b20f2b821ac8c 100644 (file)
@@ -105,7 +105,6 @@ int initr_watchdog(void)
                init_watchdog_dev(dev);
        }
 
-       gd->flags |= GD_FLG_WDT_READY;
        return 0;
 }
 
index 88829126fb2a8b9937fefd201aa42632a3d493e7..da17ac8cbc888266794d6c1f1ddfef738b65707a 100644 (file)
@@ -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__ */