Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp467986ybg; Mon, 1 Jun 2020 06:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjdfX+6ZFdqQ2EKOFdkJevri3EEAyu376BbQ3Uwg+xj0Na+GVZZhKrCtwDnwOVvezE8FFO X-Received: by 2002:a05:6402:1ac1:: with SMTP id ba1mr7821776edb.91.1591017377636; Mon, 01 Jun 2020 06:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591017377; cv=none; d=google.com; s=arc-20160816; b=MxVhclb+RxdaOvhKbd89LS1tcwFE9RbCV1j2RJNj4htKhFGET6AMaG6WuicC6n89x3 qlKvlXjk8cyfnF5Bmmcd6F+kpHnQxbrzYkHBpta/jkHCHP9TIHJoEB47BJ+YaVKCa/XN 4QLYvsb3s49jD6XLs0eyqzTqJ/oQmDh/iHeueX0TvPct9i5pf0zec05hfFBy1fWqrPgt XDbE8ybWsKt9Fz+KPYz1O+xDYs6tNMoypjRP/U9DkjCca207ZnyegHJLi6ZJSOUhrUpg s9Y4tF/bHUXiuX/4vlKOWJ6+nExjOywgShUjxOYBFRTunpkGzBmM/3tPjZ9By5p0IGhq HixA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=cvL0RYTLsYB+ZddZsBOld5jH9s3sxSj8k4DTbTJSSoE=; b=qL+UR0Go+QPIJDw8OHROgJdutfGqQUamd7n85hhHR0Eg5bKwYmdjWt55d57ey43ve1 uGtozwOjE3k1hJpSPmVNNxUtJ8HlL24ej7YBWiLUawPsucvgwAREQQ9Rc3LVU/FzaOKb haYZ9r452X+SICi7zi82pf027awhMPSbwK1I5Pc9afipihVT37F6FV6iHvJ0hnTlYfLr bTRTB3BeIGA1TwEn3YhvR3MJUfduLx49+rgEjCozze1gsu3vFrdR28FHfwf+3Moh5Vo8 29tv924OzXGyMSeiz9I2/rtIMlBPCEG/MIzMjHOIr8IC5EbFoseiv2mzexJ20KCHe9cO kIhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si3754965eds.465.2020.06.01.06.15.45; Mon, 01 Jun 2020 06:16:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbgFANNJ (ORCPT + 99 others); Mon, 1 Jun 2020 09:13:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbgFANLr (ORCPT ); Mon, 1 Jun 2020 09:11:47 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41FAC08C5C0; Mon, 1 Jun 2020 06:11:46 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jfkE8-00073C-1K; Mon, 01 Jun 2020 15:11:40 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 9DE551C0481; Mon, 1 Jun 2020 15:11:39 +0200 (CEST) Date: Mon, 01 Jun 2020 13:11:39 -0000 From: "tip-bot2 for Lokesh Vutla" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() Cc: Lokesh Vutla , Suman Anna , Tony Lindgren , Daniel Lezcano , x86 , LKML In-Reply-To: <20200427172831.16546-1-lokeshvutla@ti.com> References: <20200427172831.16546-1-lokeshvutla@ti.com> MIME-Version: 1.0 Message-ID: <159101709950.17951.17058038049148986185.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: 264418e20d1fedbed8ad79683b63caa3d72c3b2e Gitweb: https://git.kernel.org/tip/264418e20d1fedbed8ad79683b63caa3d72c3b2e Author: Lokesh Vutla AuthorDate: Mon, 27 Apr 2020 22:58:31 +05:30 Committer: Daniel Lezcano CommitterDate: Sat, 23 May 2020 00:02:05 +02:00 clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() omap_dm_timer_prepare() is setting up the parent 32KHz clock. This prepare() gets called by request_timer in the client's driver. Because of this, the timer clock parent that is set with assigned-clock-parent is being overwritten. So drop this default setting of parent in prepare(). Signed-off-by: Lokesh Vutla Reviewed-by: Suman Anna Acked-by: Tony Lindgren Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200427172831.16546-1-lokeshvutla@ti.com --- drivers/clocksource/timer-ti-dm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 2531eab..60aff08 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -258,9 +258,7 @@ static int omap_dm_timer_prepare(struct omap_dm_timer *timer) __omap_dm_timer_enable_posted(timer); omap_dm_timer_disable(timer); - rc = omap_dm_timer_set_source(timer, OMAP_TIMER_SRC_32_KHZ); - - return rc; + return 0; } static inline u32 omap_dm_timer_reserved_systimer(int id)