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 AFEC7C433F5 for ; Fri, 11 Mar 2022 16:35:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 538AC83AED; Fri, 11 Mar 2022 17:35:41 +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="Wk/acN6I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A710E83AED; Fri, 11 Mar 2022 17:35:39 +0100 (CET) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 4A17883AFD for ; Fri, 11 Mar 2022 17:35:34 +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-x32b.google.com with SMTP id k29-20020a05600c1c9d00b003817fdc0f00so5640009wms.4 for ; Fri, 11 Mar 2022 08:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=L/C/C/VBrPwESxiKuwQksoJk3Q+nmU3D//ueh6a7dGs=; b=Wk/acN6I60I9/9ioGBHG34mlQH1fiEU4gcM54zZLT6rBhEPxiAl+30Dg5wEafoNdgq bRqaqNBDHIX8j8o9kUpk3fV9UaH4DGofK+g+3Pidv3oYwjRblRk7JyUHXPuDsDbUG+Cs h4SiTy4krb8NIKIY9brv+jhoEsCJJeQUYwOlH8lmsatPDU+s5Yq12pIY96wa/EV1/hmi 3O+2XWOsg7DYy5dZeKshUXB0Tz2TTkbrgpRjZGCPczvhI5zmKQ9c2R7wjDiTzuvrRjRv 6LrKz11WgNRHc/giq5hDZNSnUCcR4Rf8OkzmPrBDMs7e3x+HayUK5mJ2t8itqGUK+aSO OXWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=L/C/C/VBrPwESxiKuwQksoJk3Q+nmU3D//ueh6a7dGs=; b=M0V731S0ioI9Dt3hp9k/CfXgDNlaF8jDll779FtK12E/LxKyW3NpQ832AuS/ht/GVF bK1kfgZLy/1nPKNs1neXK0d5cVNH1psANgHSlusulG0wnzmtz42V2dAZOyAuwHY4PGQR yrexZc+XRdud6BFflh1qt3ygTXvDob4Bo6FZx2KCdrEoKfhPdkQv7B8iGQt8dhrbiksB azQUiEJWtVvWRailBPoruTMTg08/2vJYr5aXh1ugEc1csCLbkWGW4T6vV+gpuZzLazFQ nEsDjhmbxmk+MPbD4BZ2+PVZZmKTP548Rh0XyHBfe21eDty00aYD1wZLUCmynAQBEREY b4Aw== X-Gm-Message-State: AOAM532zlTskciVytnpCBcWTYwanB+jP4fseZjHWrnxSLuZilpAPk77O UqyFhGLVH0q0gAESo44lqEFfcD/bkLA= X-Google-Smtp-Source: ABdhPJxNuJsMVuggdFqnnCwHmc57ptKn0RFnsvHGy2MvdmHXQhVLw2wITFyYuNLn1Cw7fb8l/CwbAQ== X-Received: by 2002:a05:600c:4f06:b0:389:eadf:108e with SMTP id l6-20020a05600c4f0600b00389eadf108emr3772624wmq.34.1647016533802; Fri, 11 Mar 2022 08:35:33 -0800 (PST) Received: from [10.42.42.166] (212-197-176-189.adsl.highway.telekom.at. [212.197.176.189]) by smtp.gmail.com with ESMTPSA id g26-20020a05600c4c9a00b00389a48b68bdsm7112808wmp.10.2022.03.11.08.35.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Mar 2022 08:35:33 -0800 (PST) Message-ID: <7bfbd967-2ba5-0527-3596-a568d3ba2cb4@gmail.com> Date: Fri, 11 Mar 2022 17:35:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 0/2] CONFIG_EARLY_TIMER: Fix EAGAIN issue and use DM too Content-Language: de-DE To: krjdev@gnail.com, u-boot@lists.denx.de, trini@konsulko.com References: <20220310184549.1883-1-krjdev@gmail.com> From: "Johannes (krjdev) Krottmayer" In-Reply-To: <20220310184549.1883-1-krjdev@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.5 at phobos.denx.de X-Virus-Status: Clean Hi, Ignore these patches. Have send them to the wrong maintainers... There are also somm issues. Thanks! On 10.03.22 19:45, Johannes Krottmayer wrote: > Hi, > > I'm currently working on support for a STMicroelectronics board. I have > written a DM driver which implements the timer_early_* functions. But > noticed an issue when the configuration switch is set. > > common/board_f.c > Here this leads in an EAGAIN issue, becaues the DM sub-system isn't > running at this point. > > lib/time.c > I modified the routines here, because it's also could fail. An addintionl > feature is, that if CONFIG_EARLY_TIMER first it probes if, the DM timer > is present, if not it uses the timer_early_* functions. > > Have compiled it in both configurations, and it works as accepted. > > Kind regards, > > Johannes > > > Signed-off-by: Johannes Krottmayer > Cc: Tom Rini > > --- > > Johannes Krottmayer (2): > common: board_f.c: Fix EAGAIN issue when CONFIG_TIMER_EARLY is > selected > lib: time.c: Try also DM timer, when CONFIG_TIMER_EARLY is selected > > common/board_f.c | 6 ------ > lib/time.c | 46 ++++++++++++++++++++++++++++++++-------------- > 2 files changed, 32 insertions(+), 20 deletions(-) >