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 B2297C61DA4 for ; Tue, 14 Feb 2023 16:35:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E62D985958; Tue, 14 Feb 2023 17:34:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="cIP/KAP/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7954485958; Tue, 14 Feb 2023 17:34:55 +0100 (CET) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 66D5F85956 for ; Tue, 14 Feb 2023 17:34:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x835.google.com with SMTP id f10so18150802qtv.1 for ; Tue, 14 Feb 2023 08:34:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UIkhN7qScbWhIxF438hrWGCNbFQvDMtgc+FEsGMNWaM=; b=cIP/KAP/PuH/+WzQZLwG8gUaM1KP8aS3V78VjJjzLqOa21BACjQ6fCY9ff6ax7bYNT a0HLHTl/dp9I6iU9R2cvC5wA1NwIR4mQPC+OLecP4YmzE8IHZrfrgyVr2KK9vTIY/d6D 0XIHpGYPn89xTROokPsdKPjPs4yuii6Y1MJLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UIkhN7qScbWhIxF438hrWGCNbFQvDMtgc+FEsGMNWaM=; b=UaeoIIr3KG/8MvFd6mHBhhPeL1GWlSKZMDkYluELFFaXc2UYuzY/+5RTTWzOLFXIAR l1xM84TpuEVknDdmNsqUf8MbYMMvoykmH/dFAsXDsNnu9MGr1mYEKohG9PjzmFKBQ82d +kjt0Y2gzQkVixOjfCk8icRAAmP+P47X078I8HOkn87TKpcmtrUIsoyyAPHUnFT7n8Qr XcLZgmO3XMfp+TtZiTrjWB/ILSE9dfEA/kFN58dZh7yTOjCO65WMQh4cj42Dr+BvXkFm 6d0XwNuzFs6ChWa5DJ+2Ey+TBHZk7x7xA4qhXW4l/OH/1FG3BuexL33Qm08usF3Pw2cR Ozrg== X-Gm-Message-State: AO0yUKXcL7OtwUeI90tDnIFt3RRFwClmAmyWQugkB2rC9I2LREsUcDIS jjXFtyGLK2y3adadbyBZsCUK6wOy04gxlbchMcw= X-Google-Smtp-Source: AK7set/PDW3CfU25HPlQAWMcV1t1iVRGXfxF66DV8KGR/kWX7h0TTcCfmtMbs80OntdBTuxaEVVEeA== X-Received: by 2002:ac8:5902:0:b0:3ba:19e5:3e45 with SMTP id 2-20020ac85902000000b003ba19e53e45mr4695948qty.13.1676392490110; Tue, 14 Feb 2023 08:34:50 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-c7c0-e2dd-6c89-7c7c.res6.spectrum.com. [2603:6081:7b00:6400:c7c0:e2dd:6c89:7c7c]) by smtp.gmail.com with ESMTPSA id s72-20020a37a94b000000b006fa16fe93bbsm12250589qke.15.2023.02.14.08.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 08:34:49 -0800 (PST) Date: Tue, 14 Feb 2023 11:34:47 -0500 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List Subject: Re: [PATCH v3 65/95] omap: Correct an SPL build error with watchdog Message-ID: References: <20230212231638.1134219-1-sjg@chromium.org> <20230212231638.1134219-66-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pRghAuqXGs8F5FAq" Content-Disposition: inline In-Reply-To: <20230212231638.1134219-66-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett 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 --pRghAuqXGs8F5FAq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 12, 2023 at 04:16:08PM -0700, Simon Glass wrote: > The logic here is strange since the call to hw_watchdog_init() depends on > CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG but the code it calls is only > enabled if !CONFIG_IS_ENABLED(WDT). This seems to work, but with split > config we get a build error in SPL with CONFIG_WATCHDOG, since it is > interpreted as CONFIG_SPL_WATCHDOG. >=20 > To mimic the behaviour before split config takes effect, use the > PPL_WATCHDOG symbol. >=20 > Signed-off-by: Simon Glass > --- >=20 > (no changes since v1) >=20 > arch/arm/mach-omap2/boot-common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot= -common.c > index 9a342a1bf95..401d12c6ca3 100644 > --- a/arch/arm/mach-omap2/boot-common.c > +++ b/arch/arm/mach-omap2/boot-common.c > @@ -302,7 +302,7 @@ void spl_board_init(void) > #if defined(CONFIG_AM33XX) && defined(CONFIG_SPL_MUSB_NEW) > arch_misc_init(); > #endif > -#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) > +#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_PPL_WATCHDOG) > hw_watchdog_init(); > #endif > #ifdef CONFIG_AM33XX No, we want watchdog enabled in SPL. --=20 Tom --pRghAuqXGs8F5FAq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPruCcACgkQFHw5/5Y0 tywz6wv9EdpRQeLye/S99zJp9aeJFkPvnvQY/fL3cs9gV6hObXJ8YIDvYDxwGSpM VBnD7AI4EKrI24KnxoTjU+stozQs/Ji7tsQ4k31k92ZXjoNYGCrJ2sur8WSMDvIY KEGQl+lcvsCp9JVCQHidmNgV2Shz51Xgmfo8cBxoC+MP+yeHTdmcWKb5aWRAy7ie l1SAm8m0U4xQa5glF5xZT2DaQX0HL0VdNghbKKoGgi4UW1MvjtK8S8U5fw6w8qKC cp3lbNrmLG6ehxfY4//SpA4B0ERPxLiAX1M2UoUWnkUwanhUxmnIRURsstVNossE KAgDz2zHdj6QSQAjt8toWpy7Fa1BD5hq/O0pf4/Ek3XOq0pHvRx19cKRTv2+0SXO IppZBvWc7CCJ+O2ixepzoGT6S2OpxYSlmp065qPPYF2rfmsFv7W7HT9vd22Ievoh tmoq9c3fLRXLsAPT2EpW3pb+Xl8L5TFspxQRSDUk2K32uL9mydAlQEDjmHNbCz07 f9UmxBCJ =XpP7 -----END PGP SIGNATURE----- --pRghAuqXGs8F5FAq--