Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp515692img; Tue, 26 Feb 2019 04:11:07 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib83VqqeZGuK9NflPfBpGxqJcvEaHN/W4oqXc4aH79HLTz1qDHjt+wZVVADRUqoZzXy6nUu X-Received: by 2002:a62:1c43:: with SMTP id c64mr25581404pfc.259.1551183067677; Tue, 26 Feb 2019 04:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551183067; cv=none; d=google.com; s=arc-20160816; b=LtEcxzZB0W/E+Ga1bPzWqW9xiJjmsLBZqRGKxSZoRtf2kqSaRhUHZ+W61no5aZzHM8 84/H89nw+yCBH20pOes98gUSSdy1cjNPiSIG5VXSA8IUpjH4UGdysHZ4zlE5fDQy1R5Q eTvgMiHfXIXn9aGwCerY+5MLQ4VngrMaZChrb/4IfVBkoSkiD+8u2+Yqg5KOx80n3vIx rgKhVeM+D/OwF1EQEtJImVoa+JqDSTt4A/ARRxUSI8R4JU8zNocriHbUqc48vntKcI5m GamWS8X5qU43TKmgn5k/vRJ0ZeSJ3lYyDJTYKSORcNvpQoYzBPGMytmuce4xbHbRTP0C xR6A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jFGSDSqsinybQJOsU/D36ElOP7a9yW2c6i9xoNwf52I=; b=OHsy7a8/UY+tO+AkPMKmEFnBNxYto04F1LhunrCh+uERnHOJJmLm5uYmYtQlDD8z0w dLhmLHY8N2k6J4MIZR0LPDBfT5nHquQcfiVBOgkTiwvOakdd8Tjeo1s/NQPo1hsIWfTC HkRKVyHcKIenBgEi63zjT8NfAJdER0dYzWwqEkJKFkymb6+cR0FdtA284+154nSjc0mO AFek0xsP2dX92ZaQOiLz2520UqdIQawHr07pIURctGPTT90pXdhPl6+tlmPmVN87zghG bZe0XAxZkHW9xl4RChW24l9/hl4hupv5kuXrk75SZD0wuKvGzCuNiD6Vs+A/HwxHVHry aF1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=uytcb79l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si12388301pfm.181.2019.02.26.04.10.52; Tue, 26 Feb 2019 04:11:07 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=uytcb79l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726746AbfBZMJj (ORCPT + 99 others); Tue, 26 Feb 2019 07:09:39 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:43527 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfBZMJi (ORCPT ); Tue, 26 Feb 2019 07:09:38 -0500 Received: by mail-io1-f65.google.com with SMTP id y6so10257395ioq.10 for ; Tue, 26 Feb 2019 04:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jFGSDSqsinybQJOsU/D36ElOP7a9yW2c6i9xoNwf52I=; b=uytcb79l5j3EcEj+DPAaQ+RSlHdaGaSy8RizIyzQocwB3bD640rLf+3nHmBtYlGbvu VUK9wHJAlZYg8szu5He/bcyCF9sGdXTh25dZIX78DYd/z1SmHKrnmA66Bmj/Cb0hpaDg CjaHLhDFEFtg3NbwFQML+Tv1JaYBLV+lTF6wA6CGYC3vQYpTlDDr2g2gMBdpBrmFy8L9 +1hXe76F3uuGM5u99xmkbWfwlN5yIW6P80MuNzskfupz288bWD8tNA+Ja96jTqIXcWYs d9ZAuuqw7R8qSA5HwscMXuU8tG+RyBiNG4uu8lse3Dhg9I6F7CkTDu9lRFRGXioFNelX n4jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jFGSDSqsinybQJOsU/D36ElOP7a9yW2c6i9xoNwf52I=; b=BjD6F8j/+ZLKET3xxcZIITvaDc/tONGMAQlgr/cyrIhqbHiROZN1E22bsmifZg+Nvq +zmi7ochnmyIxW5+8LsLfMTW5v+FELXdBVkTz3OPZSTn4aa14DK+DDQe8X8mimmanhS/ df48s9pq0mDFhiD5Qc2w/Vidh12Yzga0/oGF/0h1y40aNDAtCuTbb7B/sqfAVYd/L8yZ xl1D4PZildMcYcA/Alfx+wQRxcj3S96QOmMxXfi4G2+/r6TGWo/swKW6J4cYkqyu2f6q azQs05FSFrQcbXDSx3+4ngHogHaNDt/un7oTBKdWXQYi70W05HaxX7tX+j5X3VBDPBwD rivA== X-Gm-Message-State: AHQUAuYgVJ47X1BjxbVsxU0eu7ZvFSdRbDSuIVUrC3r0HgW9Jbi8CXLr DuKm/YewWq6a5a2TqX4CrwQpVJb0W/AzRsX34ifCNw== X-Received: by 2002:a5e:de05:: with SMTP id e5mr13247886iok.111.1551182977250; Tue, 26 Feb 2019 04:09:37 -0800 (PST) MIME-Version: 1.0 References: <20190204171757.32073-1-brgl@bgdev.pl> <20190204171757.32073-9-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 26 Feb 2019 13:09:26 +0100 Message-ID: Subject: Re: [PATCH v2 08/12] ARM: davinci: dm355: switch to using the clocksource driver To: Sekhar Nori Cc: Kevin Hilman , Daniel Lezcano , Rob Herring , Mark Rutland , Thomas Gleixner , Linux ARM , Linux Kernel Mailing List , devicetree , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pt., 8 lut 2019 o 13:34 Sekhar Nori napisa=C5=82(a): > > 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 =3D { > > - .timers =3D davinci_timer_instance, > > - .clockevent_id =3D T0_BOT, > > - .clocksource_id =3D T0_TOP, > > +static const struct davinci_timer_cfg dm355_timer_cfg =3D { > > + .reg =3D { > > + .start =3D DAVINCI_TIMER0_BASE, > > + .end =3D DAVINCI_TIMER0_BASE + SZ_4K, > > Here and other places too, SZ_4K - 1 > > Thanks, > Sekhar I used appropriate DEFINE_RES_x() macros instead. Bart