Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1615696imj; Fri, 8 Feb 2019 04:35:46 -0800 (PST) X-Google-Smtp-Source: AHgI3IYAj11TGvDLbMEyAAonBWL3Ddwf2YqBr+yHljf2Q53ZTIr8smXHrcySvtvXbQdJ3F6rxqBQ X-Received: by 2002:aa7:81d0:: with SMTP id c16mr21828400pfn.153.1549629346322; Fri, 08 Feb 2019 04:35:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549629346; cv=none; d=google.com; s=arc-20160816; b=GIjvKMQmkFxwIbXzf5QbMdpgt/btzPX+qjMFe/a2/BXmSCre5LhyndhZKjtJVogPaH lBaYS7M9uwGu2AJ8CfwR0v7sY51y0Mk6xtH86QH5GnDMPIm0GV/eL88dx6zZ0ePHpp5N ftJ/ZB4sFabFizOPIn/p6yuNlUQdNu3Dhf8Bs1012vp3bW8+36haFWDYe8D6IaFznkYt PsJB8sdYj4L7DeW+NhQR5E6mlloda0R5ySi1wFQ65XJ7LwXimu12xqxvv4n8Dpj5kMot 3i9+rXkYFXadfPUIGMsdYAXtc9sDUiRKJFbEwe+hudEMrhFBWXQJ/mcmrqAxfqo/FJ0Y z5sg== 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=8bS8zls/dE8hfPZP4eU0IjuclttOYbruvQkIboObp7c=; b=IeJk7KeytnHGD3Z8goQ0ysH2yJicAn2qxKPMieUsaNG4M0565/3hWaRLQeZsstfEnr +kDn9sbdo6L8R0Of5Mwyzqkf6f+p7aRunPYoOQRab2fQdFacjtjsOT2WRNvQuD+QU05f /6GsOIeCW5W46rqkyh/fnINPvwxXuWBUgZPiX+LXoS+9S9cFcBxTZNz2lsIeHVX9sXgS nQh4C/m7WrG5DtM0d3tqNG8cI1jtKxi0dUlPcdh7lahrRfZc6f0cZkm8jjsfShrRZPCJ JkyE/E3xuL4k54NvGufsNJLTQehjwGoRFMAyWThrcwLwAg2cgMiFRAEbKJO3Iid5nWqP izVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SPJOlELh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l7si2117918pfb.31.2019.02.08.04.35.30; Fri, 08 Feb 2019 04:35:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SPJOlELh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726887AbfBHMfE (ORCPT + 99 others); Fri, 8 Feb 2019 07:35:04 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59054 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbfBHMfD (ORCPT ); Fri, 8 Feb 2019 07:35:03 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x18CYm1e013731; Fri, 8 Feb 2019 06:34:48 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549629288; bh=8bS8zls/dE8hfPZP4eU0IjuclttOYbruvQkIboObp7c=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=SPJOlELht4ONyKX390yrEZKdFO1SHaoBdlO0IrFg8To0MyZeSlDRkfBPFCXlzJkyU chcM7wSATw4GWbVN91CHIOw7gYwJol3vfedJyl5YjFoGbazVd865p/TWXqdwcgJQYj wzVUVuzkax1A6A0sj8wzLAXYd9PKpn9VCO+dp4Dg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x18CYmjh050960 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 Feb 2019 06:34:48 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 8 Feb 2019 06:34:47 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 8 Feb 2019 06:34:47 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x18CYiiS016929; Fri, 8 Feb 2019 06:34:44 -0600 Subject: Re: [PATCH v2 08/12] ARM: davinci: dm355: switch to using the clocksource driver To: Bartosz Golaszewski , Kevin Hilman , Daniel Lezcano , Rob Herring , Mark Rutland , Thomas Gleixner CC: , , , Bartosz Golaszewski References: <20190204171757.32073-1-brgl@bgdev.pl> <20190204171757.32073-9-brgl@bgdev.pl> From: Sekhar Nori Message-ID: Date: Fri, 8 Feb 2019 18:04:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190204171757.32073-9-brgl@bgdev.pl> Content-Type: text/plain; charset="utf-8" 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 04/02/19 10:47 PM, Bartosz Golaszewski wrote: > -/* > - * T0_BOT: Timer 0, bottom: clockevent source for hrtimers > - * T0_TOP: Timer 0, top : clocksource for generic timekeeping > - * T1_BOT: Timer 1, bottom: (used by DSP in TI DSPLink code) > - * T1_TOP: Timer 1, top : Documenting this timer division is important because DSP usage and unused timers are not immediately clear from kernel code alone. Can you retain these comments in all patches of this series (I guess T0_BOT etc. terminology is changed, so feel free to adjust the comment text). > - */ > -static struct davinci_timer_info dm355_timer_info = { > - .timers = davinci_timer_instance, > - .clockevent_id = T0_BOT, > - .clocksource_id = T0_TOP, > +static const struct davinci_timer_cfg dm355_timer_cfg = { > + .reg = { > + .start = DAVINCI_TIMER0_BASE, > + .end = DAVINCI_TIMER0_BASE + SZ_4K, Here and other places too, SZ_4K - 1 Thanks, Sekhar