Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B124C4332F for ; Thu, 17 Nov 2022 08:20:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 058458520F; Thu, 17 Nov 2022 09:20:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1668673241; bh=pDdX0j5Zt1N3ZY9h1ncACc8GMTNrCcawczQw0PSad6c=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=iFzh0ZCuRYD0L+UMYj36cp4Zph+/hWNKnylwgNjUhnlF8Rf5/bAItfTpWokAWmguh YsYFV05Jx3k32UwGphTg4m59hN082bftNYNxc9X4YBQTcPIjAcAs6dU6fiRv7pdUfV rvzqclZb8hYweb24osscsK9kjZTYNuSV8Ozqdk9056x/hA38b1SgcClmgIGExjV99m xpTTYrny8+AKatDJ3Srnt4ignhcWKCMT1YQpY4yf7hznfB2PCsewsQrMb7HOziEZRq QPY+Xsxj/Na29feidG8mskqfnXP4heTLG63C3EtEj5BQA+ozqEIvD8IBrPSbS4f2UE 1v3bBv7Z3CR5w== Received: by phobos.denx.de (Postfix, from userid 109) id 88BFC8520B; Thu, 17 Nov 2022 09:20:39 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 898458520F for ; Thu, 17 Nov 2022 09:20:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4NCXsv3yYwz9sTh; Thu, 17 Nov 2022 09:20:35 +0100 (CET) From: Stefan Roese To: u-boot@lists.denx.de Cc: Rasmus Villemoes Subject: [PATCH] watchdog: Drop GD_FLG_WDT_READY as it's not used any more Date: Thu, 17 Nov 2022 09:20:34 +0100 Message-Id: <20221117082034.3163916-1-sr@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 Signed-off-by: Stefan Roese --- drivers/watchdog/wdt-uclass.c | 1 - include/asm-generic/global_data.h | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index 82df0ff0be5a..509896a1b808 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -105,7 +105,6 @@ int initr_watchdog(void) init_watchdog_dev(dev); } - gd->flags |= GD_FLG_WDT_READY; return 0; } diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 88829126fb2a..da17ac8cbc88 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -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__ */ -- 2.38.1