Message ID | 20220311171151.29004-3-krjdev@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | Sean Anderson |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=R08LzCqH; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KFXYf3YNXz9sDX for <incoming@patchwork.ozlabs.org>; Sat, 12 Mar 2022 04:12:38 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9C5F83AEF; Fri, 11 Mar 2022 18:12:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="R08LzCqH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 50FA983ADC; Fri, 11 Mar 2022 18:12:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (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 7D78683AF5 for <u-boot@lists.denx.de>; Fri, 11 Mar 2022 18:11:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=krjdev@gmail.com Received: by mail-wm1-x331.google.com with SMTP id k29-20020a05600c1c9d00b003817fdc0f00so5699814wms.4 for <u-boot@lists.denx.de>; Fri, 11 Mar 2022 09:11:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c6i00vQTaYOuFPgEmPnrQ4P8CgZoSHFkb9CYHmUjnb4=; b=R08LzCqHIz/G+wNq1Tb1PV4uYthA6pyB/QlQQjoqkuWJ4G6WT84HW81Bt4Q+WqWy9F coGIzDv0RyKOnvbgd3oGUzDMysmKAbRTU2+YxPy/DZ7xBVthY7HuIQBQXOv1NTqfGL/L /wcjYWtrtCP69VCS6za3kXUPY2BqfyG+ziTc7i8SwUNSp11QQHnb4y6TGXIo6jQv3ghJ XUug7xNQ+R3ahgFvpQsvu4qZupamrTYC+AkzLWEInaX4xlkuTM78OodqCqozVMvJF6sm QDtLx0D1Wqa/J6hhiV1fn4wWXa5LlLv98qj+Zm4Bq7GQYG2eMACAtHEjvvW0ilgg8c2D E5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c6i00vQTaYOuFPgEmPnrQ4P8CgZoSHFkb9CYHmUjnb4=; b=fE820Jl2qTHV5wWw1MzYHMojjPsrSOf7uc3rTfKd42f/e3+VYi5xhUPHeW5/MI96u2 1qxFFqiJND8lLbwAVeIUlX6krMQOnHkeJZ5yMqO0EcM0fZAx1SbGFp2L6vLl+1WMer6u M0QtzfruzVAN91i/5ro63Cu/VVOzFvJ2/46hsbspsuoFTYrVUQ9gD2RFUD3joUHlGS6d LzoBVQGclLJyTCQrN4WKyFMwT4FoJT+yoI16qqF57LgyZaR6qL+Zj7jgX0FKAQ1d6SPI mGljl6c2XIe+3eVJSIhqfelETUtpYdnNKxcNMRzC+o4EjVLsu+UO/FPMPdFL6z5WQtWj XF1w== X-Gm-Message-State: AOAM531fgBwPR3Eup+SUr4JDVNifzteLYDRdi0qAPaLhRXD848uYQp8N UpIh1h5hQ7w4lRMhqXKKTG19vUcXk5pQBw== X-Google-Smtp-Source: ABdhPJzs6WMF803P5tgRnak24u9JJKSlIM+sVrX3SFNJOm1uizAztW82CUSqVgNvcvFRNs2SoULHyw== X-Received: by 2002:a05:600c:4f55:b0:381:7386:ed68 with SMTP id m21-20020a05600c4f5500b003817386ed68mr16122933wmq.36.1647018717940; Fri, 11 Mar 2022 09:11:57 -0800 (PST) Received: from matrix42.lan (212-197-176-189.adsl.highway.telekom.at. [212.197.176.189]) by smtp.gmail.com with ESMTPSA id bi9-20020a05600c3d8900b00389a623c80esm6837300wmb.1.2022.03.11.09.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 09:11:57 -0800 (PST) From: Johannes Krottmayer <krjdev@gmail.com> To: u-boot@lists.denx.de Cc: Johannes Krottmayer <krjdev@gmail.com>, Wolfgang Denk <wd@denx.de>, Thomas Chou <thomas@wytron.com.tw>, Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>, Bin Meng <bmeng.cn@gmail.com>, Sean Anderson <seanga2@gmail.com>, Anup Patel <anup@brainfault.org> Subject: [PATCH 2/2] common: board_f: Fix CONFIG_TIMER_EARLY issue (EAGAIN) Date: Fri, 11 Mar 2022 18:11:51 +0100 Message-Id: <20220311171151.29004-3-krjdev@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220311171151.29004-1-krjdev@gmail.com> References: <20220311171151.29004-1-krjdev@gmail.com> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
Change behaviour of CONFIG_TIMER_EARLY
|
expand
|
diff --git a/common/board_f.c b/common/board_f.c index a68760092a..fc883c1742 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -785,12 +785,6 @@ static int initf_dm(void) bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_F); if (ret) return ret; - - if (IS_ENABLED(CONFIG_TIMER_EARLY)) { - ret = dm_timer_init(); - if (ret) - return ret; - } #endif return 0;
When CONFIG_TIMER_EARLY is selected and the timer driver implements timer_early_get_count() and timer_early_get_rate() this leads to an EAGAIN error one some configurations in... common/board_f.c:initf_dm() initf_dm() invokes dm_timer_init(), but this function returns with an EAGAIN error in, because the DM virtual root driver isn't initialized yet in... drivers/timer/timer-class.c:dm_timer_init() [WORKAROUND] Move error handling to (next patch in this serie)... lib/time.c Signed-off-by: Johannes Krottmayer <krjdev@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Rick Chen <rick@andestech.com> Cc: Leo <ycliang@andestech.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Sean Anderson <seanga2@gmail.com> Cc: Anup Patel <anup@brainfault.org> Cc: Thomas Chou <thomas@wytron.com.tw> --- common/board_f.c | 6 ------ 1 file changed, 6 deletions(-)