Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp890829ybj; Tue, 5 May 2020 09:09:55 -0700 (PDT) X-Google-Smtp-Source: APiQypK1Hc78s3KLm7nmzS4QUjInRiD0zz8o/7/Aq+v84CMfTAQDO6QVZK5mrzLqPfUc8zkbyZW5 X-Received: by 2002:a05:6402:1717:: with SMTP id y23mr3327395edu.361.1588694995493; Tue, 05 May 2020 09:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588694995; cv=none; d=google.com; s=arc-20160816; b=q5985pZ0AVr0HqOoRU7jr9c1GruO1vUES/fTaUwQlQS9E4U3TN5TWNQlvdymIgRaoJ NlP8Gx4CyYS92+jBw2CDgsVhVUb/dT3CgPtmCLdnhPRzfN8b8HGtJXF+gLtlbpbAJHch 9lp87ax1m7lcCCL3M4ejxg4cGc2UNDOyC82DctrOZmdOfTjFOyvGsf6R1g6hEyt7OGTW Me2KK9k/j5FmJyD5Weqrq5lFxoqOYNzRO05FTdBn/MSoiBFsvPcr0Tkk363b4bVI7Ef6 JMcv4bPCYS8lihk2ukEZCDvRA53vjVEu4Mj9Nk3Rqx/3rQil8m4qjMafA1CvG4Cprvcj z/LA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=/9N3G9C2xhTejXamNfnIlUPcSnUWuTXain9fNX8Ll3U=; b=mMqsuNImGd31B46aXU19wjGmZLXvr9UgCfEiKNy/sZzCopTiGt8vJBh2W84Gko1THq Igfej+bupHUKL9VW3iALOKWhwH+9Q+e9Ip51SSiSFIv3kQv0yjJmFZSEZErQk8MF9/Oe wm7BSWGRXkBesaK3wEsuUirUDKqBeuLYJP/HDMfvcdS6zOca1n6VzEdp/JSM8G+rhl6n USk+X6ChhRi5UnEQGUuDSE3K8NXuuZqofx0ADHfm9ZEPaLznP2V07mHMh2KYbWtJyYOt IHinHPKSG+ncyr3DQFJbcXKS5g/0DglFkw/2AnkmQPtwaq6VQY7jXcacd/n9VLvlolCR nzVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wab09UpR; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si1384849ejk.202.2020.05.05.09.09.31; Tue, 05 May 2020 09:09:55 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wab09UpR; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730085AbgEEQHj (ORCPT + 99 others); Tue, 5 May 2020 12:07:39 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:49210 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbgEEQHi (ORCPT ); Tue, 5 May 2020 12:07:38 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 045G7ZVq109971; Tue, 5 May 2020 11:07:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588694855; bh=/9N3G9C2xhTejXamNfnIlUPcSnUWuTXain9fNX8Ll3U=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=wab09UpRo+cQKtvtuSgwFAhZbLCbDQjwF/JuNHjOAAfgoIy8fPRYMTZsWGZHmmXUr nCpKd1ppA3ZQg9/t4H6MA1th1oRNwfhVYag6lgKhRWpnO+bTSpYUQeqnVWsBjSWv1R 0DkpLAdse1eCwL+Ndb+t/WO6yAOWBlSz6cyGo8mk= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 045G7ZFn068156 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 May 2020 11:07:35 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 5 May 2020 11:07:35 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 5 May 2020 11:07:35 -0500 Received: from [10.250.70.56] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 045G7YZc013196; Tue, 5 May 2020 11:07:35 -0500 Subject: Re: [PATCH] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() To: Tony Lindgren , Lokesh Vutla CC: , Tero Kristo , Sekhar Nori , Linux OMAP Mailing List , References: <20200427172831.16546-1-lokeshvutla@ti.com> <20200428182209.GT37466@atomide.com> From: Suman Anna Message-ID: <85caf769-08c5-7199-df46-5086428a6bf6@ti.com> Date: Tue, 5 May 2020 11:07:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200428182209.GT37466@atomide.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/28/20 1:22 PM, Tony Lindgren wrote: > * 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 Reviewed-by: Suman Anna > > 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 >>