From patchwork Wed Apr 12 06:41:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 82282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp125031vqo; Wed, 12 Apr 2023 00:12:16 -0700 (PDT) X-Google-Smtp-Source: AKy350ZW+2ztmK3B1QSQ+yTpZpE9vy7bx8WYNzwqrXzOOxNzfdU46TjGWIkVwERPGH7I5JlVj+M4 X-Received: by 2002:a17:903:230e:b0:1a1:a9a4:ba36 with SMTP id d14-20020a170903230e00b001a1a9a4ba36mr1703464plh.41.1681283535769; Wed, 12 Apr 2023 00:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681283535; cv=none; d=google.com; s=arc-20160816; b=ENkHqYPNu7XS4XIOXEKfZ9nQGT1PcovXonwFhC5uiFkKG+CppU8SLX4E67aRBJ6aTg 38qTYh1li37bEiqV/I4vYkwizQq+17PLLReOs2R1KpUlXt1b+n/3B2BGNUngDhZ8gZ/4 LWJWKziS8J1tmTXFXh1QwtFdjRQlwCCiUkDCRcOYpcCgIS2OL7VlTIR1Eae2NNHjGibN kUeQu0VjKtisOq1xjaowxM6yY6hIWVI+x24mqBdjHJRudwEuEWKCFwzFcQsevVmqHdeO rv6fu0yFawXrf8dLcHqZjcNDZ7NPe6liGNJKcBzCH0cZXqRN2Zf12n2SLoRXYV8YdN4P F31g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a170902a71500b0019f2e2b3576si15102437plq.144.2023.04.12.00.12.00; Wed, 12 Apr 2023 00:12:15 -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 S229620AbjDLGmP (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762953564454423374?= X-GMAIL-MSGID: =?utf-8?q?1762953564454423374?= 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);