Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4446027ybz; Tue, 28 Apr 2020 11:26:09 -0700 (PDT) X-Google-Smtp-Source: APiQypLFA4sqdFEDUeCeAy8ZkHdurM/u2qjWILFEK8Uc9I2bcyrp2cxaa2zsCVux+xXSOJpq1Rkl X-Received: by 2002:a17:906:9450:: with SMTP id z16mr25024821ejx.166.1588098369518; Tue, 28 Apr 2020 11:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588098369; cv=none; d=google.com; s=arc-20160816; b=wjudvy1xz5mj3BpZwq49OlF/THodjgo3KzTkFXRTYsTkzTCr05bUiC+BY166oj2flU n5gSbRmpt4h8Ty01FfhN2AwJpMwpdGwvRras/3SMJSMZzAo+fUW1DA54rslSc+2jMhPl +wNsSd3NXKZS8XGSWIrBhu3Pj2wlBTGDWX9O9yXMAD4/FPQofUpOlfC2shwmf+D4fycU tOAhw9oH56VgBJ+xxulf3pJ9vWmdO8IdpFEsj5HQUL9SqviBaAkIru8sBkKtQ3av1s7S 4IdWVCII+9ynfSArynKkzOADcDNTcvv67MbtuBrFbs330Mgt9zaM/ZXvwvysPOgSgLzs n9wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=rPjpnoSTqrCgH22Sxn8wl7x0SEjoct0o3JRQ9v5MIsw=; b=cTS/IRgMo/VkOxOMO6VMoDqS5BsQwcHo52nqkhRp2TJNkg5gaBjfVlv5lDdJVdxqSy Tli5hlxGmyrogjnG3YY/A3nLqC8+FACKYwV3umZO50opKdih8Dh8IRIbPozZhMouJtE+ OwF+AIGjeytxV4BHWOeRzKNH839OU7oSvmAvWjstWJUxp4Nu/UWi94QOAj3++HKXZZwo RA4uPm35J2k731QC/ANCcY6tWdySx66y8jXarthZjmZBAaHY1n2XKMFIEzbAM361HR6j /CK3qIyg6ea3m7TKIfSV0w2cEyBI14L0OLowtSHePTage+JZqdJqN3R7WRePui4jDiSN WFww== 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 p4si2187813edd.234.2020.04.28.11.25.45; Tue, 28 Apr 2020 11:26:09 -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 S1728567AbgD1SWN (ORCPT + 99 others); Tue, 28 Apr 2020 14:22:13 -0400 Received: from muru.com ([72.249.23.125]:51662 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgD1SWN (ORCPT ); Tue, 28 Apr 2020 14:22:13 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 45D2A80F3; Tue, 28 Apr 2020 18:23:01 +0000 (UTC) Date: Tue, 28 Apr 2020 11:22:09 -0700 From: Tony Lindgren To: Lokesh Vutla Cc: daniel.lezcano@linaro.org, Tero Kristo , Sekhar Nori , Suman Anna , Linux OMAP Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() Message-ID: <20200428182209.GT37466@atomide.com> References: <20200427172831.16546-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200427172831.16546-1-lokeshvutla@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Lokesh Vutla [200427 17:29]: > 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 This works just fine for me but depends on the dts changes. Daniel, for merging, do you want to set up an immutable branch for the related dts change and this? I'm afraid it will conflict with the related systimer changes for the dts otherwise. Regards, Tony > --- > - As per the discussion happened here[0], dropping the default setting. > [0] https://patchwork.kernel.org/patch/11379875/#23309493 > > 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 2531eab3d6d7..60aff087947a 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) > -- > 2.23.0 >