Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp534332rwl; Tue, 11 Apr 2023 23:52:40 -0700 (PDT) X-Google-Smtp-Source: AKy350br/2A5JWQjDXOfJ8nllb9IijNy9lkuuB4HaFELxo7UtUPIBz3eAT7N+ZCriiLjRUqcSv+6 X-Received: by 2002:a17:906:8a48:b0:94e:a00:e359 with SMTP id gx8-20020a1709068a4800b0094e0a00e359mr6350694ejc.61.1681282359914; Tue, 11 Apr 2023 23:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681282359; cv=none; d=google.com; s=arc-20160816; b=VfJValXtJfVrCXKWUVCD0St1SZNeC6knjcGZnN1jOmoK+VpTLo3lJwJw3JOPvZvSTY GBR1G1yeVR4WL4Fj8+KVNFJVp5O5x8PGckTBosbiENgX4f8e2YucnHgmMNPoBEtNMecx 6F3relPYbcdd3Y6pjZ0fdDG6cZumE66igBM7L0Q0KwASVkj+QZJmgiLtO0F1E0ZJOVcY fkKPL5WKhiZDAncCOO6YcE+BQ15u2fWPX2aOF8Fk3QMeg3Hcrh15eqru2pIZCCHyxfae W+18KJ1o20AE/GMqk5yuwdaWs6SIGoRUkb183GyIgLY3ku26tMxzGTXNLvSaSdNBF2XR adaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RGdyFY7vxl0FVEceOqaeXE+/ltmh0BFFAf+WeZ5oS6s=; b=pjEr8v3vNkdXr+Rn+MPQqIPQY8+Q7RzpLaft6egDOdlREGOlFNyavynAkOyNGRp3zk qgQ/bk5/305Xkbnt8uA0mFauSTnkqaVMqTagcv1avWaOGxS+pNvIAZvMdDRsEngAxk8w Dp4vbpv5IOqQx+Qk2hqT9i38gZlhUZCfP737Co4HSU7FHvzIPOu3RHncWSu3U0RvQ68A rwS5cR+YohPY02nqms6rjSNp3q+Z3KdBzUnLwtzG736p2mQVEqA/od29QTcYfuMn0CNx +/0D6n7D/KjSU4tmP09F5NpjW7wgMtTL1PGqlUM62O3Xg/Hj3yq6eZaXuKfr7fMAb5JA OAuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf2-20020a0564021a4200b00504b45a5f90si1338141edb.242.2023.04.11.23.52.15; Tue, 11 Apr 2023 23:52:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjDLGmP (ORCPT + 99 others); Wed, 12 Apr 2023 02:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbjDLGmO (ORCPT ); Wed, 12 Apr 2023 02:42:14 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE36E5B90; Tue, 11 Apr 2023 23:42:10 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id BCFD980CD; Wed, 12 Apr 2023 06:42:07 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner , Rob Herring Cc: Georgi Vlaev , Grygorii Strashko , Keerthy , Ladislav Michl , Nishanth Menon , Suman Anna , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] clocksource/drivers/timer-ti-dm: Fix finding alwon timer Date: Wed, 12 Apr 2023 09:41:41 +0300 Message-Id: <20230412064142.12726-1-tony@atomide.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clean-up commit b6999fa1c847 ("clocksource/drivers/timer-ti-dm: Use of_address_to_resource()") caused a regression where pa is never set making all related SoCs fail to boot. Let's fix this by setting pa if found. Fixes: b6999fa1c847 ("clocksource/drivers/timer-ti-dm: Use of_address_to_resource()") Cc: Rob Herring Signed-off-by: Tony Lindgren --- drivers/clocksource/timer-ti-dm-systimer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-ti-dm-systimer.c b/drivers/clocksource/timer-ti-dm-systimer.c --- a/drivers/clocksource/timer-ti-dm-systimer.c +++ b/drivers/clocksource/timer-ti-dm-systimer.c @@ -261,8 +261,10 @@ static void __init dmtimer_systimer_assign_alwon(void) if (of_address_to_resource(np, 0, &res)) continue; + pa = res.start; + /* Quirky omap3 boards must use dmtimer12 */ - if (quirk_unreliable_oscillator && res.start == 0x48318000) + if (quirk_unreliable_oscillator && pa == 0x48318000) continue; of_node_put(np); -- 2.40.0