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 90BEBC54EE9 for ; Fri, 2 Sep 2022 07:44:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A937484A50; Fri, 2 Sep 2022 09:44:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc 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; secure) header.d=walle.cc header.i=@walle.cc header.b="frTtGvNS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 72A1384A50; Fri, 2 Sep 2022 09:44:24 +0200 (CEST) Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (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 3928584A44 for ; Fri, 2 Sep 2022 09:44:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id BD4B220E7; Fri, 2 Sep 2022 09:44:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1662104661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ySxEHWqZl+Jjl2ijt3A8JIqUgNvWyFY2IbG0U+msVfY=; b=frTtGvNSKaT1BqsuC3oUwKYTkKO1J+BGHpaIMrVaOK71GRxBYj3cHwapgnUuBYH/LoBhRE bMU1XCt/FEEoNgoisbx7vVcUQ5UZQm9Qtc6aMza/UTnYVlmm286rGQ3nmjxLAn0A9A2AQ3 a1RUCwPUtTBj9hPWN34kHIFuhv3HNzI4z8e46FRUiJixbdAWyO5w5PvgxL/Tw6jyflecaV rWxl4kUsmbXeUg0UkmzI8RlieE9FVLUlNaGNY+P0UWr4eElSgwc7k+WbUpnMVjOl3xFvJY r/45cTBX9Nf3eIUjsEQjXpNkzJqWXhy6a5hCL3r8FL3Gqq0aTq5hYpcuy+cyXw== MIME-Version: 1.0 Date: Fri, 02 Sep 2022 09:44:21 +0200 From: Michael Walle To: Stefan Roese , Tom Rini Cc: u-boot@lists.denx.de, pali@kernel.org, mibodhi@gmail.com, sjg@chromium.org, Stefan Herbrechtsmeier Subject: Re: [PATCH v2 1/8] timer: orion-timer: Use timer_conv_64() to fix timer wrap around In-Reply-To: <20220902062554.1197435-2-sr@denx.de> References: <20220902062554.1197435-1-sr@denx.de> <20220902062554.1197435-2-sr@denx.de> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <983a0f48675e18fae5bb7e94a38010ea@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed 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.6 at phobos.denx.de X-Virus-Status: Clean Am 2022-09-02 08:25, schrieb Stefan Roese: > While testing on some Kirkwood platforms it was noticed that the timer > did not function correctly all the time. The driver did not correctly > handle 32bit timer value wrap arounds. Using the timer_conv_64() > conversion function fixes this issue. Fixes: e9e73d78a8fb ("timer: add orion-timer support") Ahh. Sorry about that. I've missed that conversation which is also in lib/time.c in a different call tree. Maybe this can be picked to master (if this series is going into next)? -michael