Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3133307ybz; Mon, 27 Apr 2020 10:32:35 -0700 (PDT) X-Google-Smtp-Source: APiQypIG9lY9hwwfMaizge5a5dhWVZPvzvxcWmcK6tJNhc2KHpwAiI0yTPFp4s0X4p5KsMYYTbx5 X-Received: by 2002:a05:6402:48a:: with SMTP id k10mr18428951edv.98.1588008755391; Mon, 27 Apr 2020 10:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588008755; cv=none; d=google.com; s=arc-20160816; b=LKib6687fAKCVQD/3KIX1IicKElYKMHfm41B6k9YMfXX2Qp3GJdQMk/D9LAQjH6XSf fWmz08c+YyucFsR8+vH40kgLm885tKSVCsg+Go6lRS4UKBaWvTRwHZACrDZQUKRJgz31 Z3dn8LPhFpoaCdJa8qKp5G8FiDQPUu7K0wlmswHZfKsFdg2p5V5mSVLMOnjFr6/xhBVi ARRXNyDHuEAg/+kxxCyalq8wnpTt3+P9YDDlCpfOJ6LSW9x4QFDlcFTOlbvznM//HF3I ud5gdd//FqlaHcTDVCnQyJ40CcMaW1EJY+URNyrO4nIxjnLwq3V5T4R5s7No3GeG2WtN 3Zsw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dkYDQiJXfdVnI5Ul/GYJhp6hlCqYVf4gO6nywH0oUXY=; b=VU/P1McqzFXC2NbLBBMINUqx3try18/z5OL1OjygkA/3huYPL7gAIgAhu/es2WZ0hQ lK46DNXBuNNCyHQleCvkyhkwHzFGhg2C/vdNOCPTRzh1Y5PwdHENT5fX99qhQfOUrfjv 0JVnn2VJy8bV7xtdviVhgVTZuOXrx75GgFIOdIJkTGONYOB5CsZRByD6B8RODUHIWLjQ 4S2faRGTmj+XoyOTz2FJJ6Om77BSlVpXV0Zk1/0v6lXeX9aEWcPwORzTgBE3fwnQ/jTg VExzaIPzO724+CaSCzsThSv0w4MhlR+Cs1tetn0gUldCKiC+96bSKby1/H6VnaUnEv2x bd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jigExJEw; 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 a6si112096edv.395.2020.04.27.10.32.11; Mon, 27 Apr 2020 10:32:35 -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=jigExJEw; 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 S1726315AbgD0R2m (ORCPT + 99 others); Mon, 27 Apr 2020 13:28:42 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45276 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbgD0R2l (ORCPT ); Mon, 27 Apr 2020 13:28:41 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03RHSbqk104244; Mon, 27 Apr 2020 12:28:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588008517; bh=dkYDQiJXfdVnI5Ul/GYJhp6hlCqYVf4gO6nywH0oUXY=; h=From:To:CC:Subject:Date; b=jigExJEwCtkyqdDLTJ/ja+ULmNFZJ141jGUs0qpPlD8gZWdvmADXP/m4VYX6mIfG2 64ULOwqokCPOLpwbDeDcN21fbp4xAhNZz6XG0MZ7Y1apZuYrZ67p2IEnyEwEDA2wMQ nQ1iT7YAYLxPPN5mPlyEglOv9mP67zE5C/W1zSfs= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03RHSbnS067353; Mon, 27 Apr 2020 12:28:37 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 27 Apr 2020 12:28:36 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 27 Apr 2020 12:28:36 -0500 Received: from uda0131933.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03RHSX69017392; Mon, 27 Apr 2020 12:28:34 -0500 From: Lokesh Vutla To: , Tony Lindgren CC: Tero Kristo , Sekhar Nori , Lokesh Vutla , Suman Anna , Linux OMAP Mailing List , Subject: [PATCH] clocksource/drivers/timer-ti-dm: Do one override clock parent in prepare() Date: Mon, 27 Apr 2020 22:58:31 +0530 Message-ID: <20200427172831.16546-1-lokeshvutla@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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 --- - 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