Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp931787ybl; Fri, 10 Jan 2020 09:06:59 -0800 (PST) X-Google-Smtp-Source: APXvYqy7xymxlMoq++MNmg3QPRqXyXC2oTtqRvsdJaRqyjra9YZmMlw+OWd++EBobTGDlkVsai7Y X-Received: by 2002:a9d:7d85:: with SMTP id j5mr3487844otn.86.1578676019280; Fri, 10 Jan 2020 09:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578676019; cv=none; d=google.com; s=arc-20160816; b=nTpyaW64j8inqjgIvRI3QHeEa1TSdKwXTKMXqPhy/V72RB+wR0BO4i5eHX7g3JuAzi E0xiKm/4sOzs/2qBdCyMXlQiZZKFo3kmj2im+Yy6mw+4fyOwi0beH8cJUYKnoKQhwjKd bls82U3/jH0KhZwGnoV5rW8ZVc4AwRJVAKmZr6RMe/HNy5o64vk6VlpG9w5Qt8o8tQd4 4QmiUQZwoUPbMJXpPfuaYbCA8dw33rmXoMAJzy941/goYgO7vsctBnz4+ifJ2t2ciYDX vGfS7VERKFbmp+1r+elcnpER5pHuKRwLJSaHRyy+P7RsE0mkGPe5VpmWroYTjnnSUjat 5suA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DFLvkIvsfRzEeYeMWimySYLVF+WpVlUlb5e+/01GHvo=; b=V20tvsZhX3dOpjYO/D+IopMhYLv/ZEoo4NaL0FscZqYOtayEJyBOsnQkTSyP0T8JWy atFzuk3qiQ8FhrgC/Lm8o0JQ36FxKbpPM6SnP68+XOXxzx9UBj1lS/z+BbbCvuqRf/Vy ldJ0mYcoAo7YiUbaRbxe+gfyQWb8Om+BWrmSjlXppXiheg+hjN38mxD/SghMetEU6qYC SLrRX1LtSpUXtzbGQO75eoku4L6rYVdJqLFawKCMvdnZCiegOr9nL+RG7hrj5RE051XI n8ptJJYd/byC50zN9Jc7g4NYuiEfikrpXNzYlngHZvm+vb94jKqnWiPmKjSUtLsep8DE KiuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zzm4Pu4t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si1282288oig.184.2020.01.10.09.06.45; Fri, 10 Jan 2020 09:06:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=zzm4Pu4t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726526AbgAJRF0 (ORCPT + 99 others); Fri, 10 Jan 2020 12:05:26 -0500 Received: from mail-qv1-f66.google.com ([209.85.219.66]:40309 "EHLO mail-qv1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbgAJRF0 (ORCPT ); Fri, 10 Jan 2020 12:05:26 -0500 Received: by mail-qv1-f66.google.com with SMTP id dp13so1038311qvb.7 for ; Fri, 10 Jan 2020 09:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DFLvkIvsfRzEeYeMWimySYLVF+WpVlUlb5e+/01GHvo=; b=zzm4Pu4tY+i6CjZzXLpu3q8tUORkx30aLLzUewljvt9lD0bcIPQnhmZxTeUIFY5oAP xuDP1FF6Ftr/zy0U6/JwPOD2vs0tUhl4wOAT6X7KcUBnenHFJ1yTS8N+V+/WVkUExkXO EW3ILIox/xZvxQPYJGFZ+6PD/4Tw8+N32RhPLaXho7FgNDSDudmheN31ju0Gd1v0ZB23 t9Fw09laMgMRGJFtvJ2JkCpYZfu3leqcfzMdoVsTph6NRLhUczMDHrnS5CSiYtFYjLzq u2A1uzCm4hUfImX+tega47fMul0DqHXviCkksWFGQC8RPQsaR6kyzedNn8ZG4GWyKRj9 O7Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DFLvkIvsfRzEeYeMWimySYLVF+WpVlUlb5e+/01GHvo=; b=GNH0DsKpamMO1BGYrBS9hzOIPH9I6OaqpFKBLS8lvj4v/I9hqklDfZ8f9y4nBro3+Q KhscZlVak+sJp5gXGLUXkGYwA7c30AdKmCwtaUQUHWJZdf6wp0G0tY9JsXszD1Hb50FL NquM5dxiivfGK+SZtcaMVCi7A2TdBn/m5oV9qYBGnOY9vgwKOQ/xLl2dVtAju27bspDA jv9Ca78PLIIjdYxT8oIp2Tl7NVr9UaqmWxW3jw0cBV8UQZvyDLjMl1hha+URVqNJt2WW hkHug1/b4hgWMUAfvA7qZ4dbnnTVxiK+JSnX0uyRMhWz3LMFQ0A97s1h9BOkQMuCj8VW INzQ== X-Gm-Message-State: APjAAAUXG8dCug9R63Z3vD0TNv5aDFRJgUf21m1y+fGtVfi0fCa/KmNN m31y+m8R/kpvl5fTvfekUjD2WbfwAPKygcjUgYwlOA== X-Received: by 2002:a0c:d60e:: with SMTP id c14mr3677889qvj.76.1578675925325; Fri, 10 Jan 2020 09:05:25 -0800 (PST) MIME-Version: 1.0 References: <20191224100328.13608-1-brgl@bgdev.pl> <20191224100328.13608-2-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 10 Jan 2020 18:05:14 +0100 Message-ID: Subject: Re: [PATCH v2 1/3] clocksource: davinci: only enable tim34 in periodic mode once it's initialized To: Daniel Lezcano Cc: Bartosz Golaszewski , Sekhar Nori , Thomas Gleixner , David Lechner , Kevin Hilman , arm-soc , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pt., 10 sty 2020 o 00:12 Daniel Lezcano napisa= =C5=82(a): > > On 24/12/2019 11:03, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > The DM365 platform has a strange quirk (only present when using ancient > > u-boot - mainline u-boot v2013.01 and later works fine) where if we > > enable the second half of the timer in periodic mode before we do its > > initialization - the time won't start flowing and we can't boot. > > > > When using more recent u-boot, we can enable the timer, then reinitiali= ze > > it and all works fine. > > > > I've been unable to figure out why that is, but a workaround for this > > is straightforward - don't enable the tim34 timer in periodic mode unti= l > > it's properly initialized. > > > > Signed-off-by: Bartosz Golaszewski > > Why not move clockevents_config_and_register() after > davinci_clocksource_init_tim34() is called ? Ha! Yes, that works too. I'll send a v3 shortly. Bart