Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3823330ybi; Tue, 18 Jun 2019 07:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7BHM1Mdzdd9Gcw5PWTR/UwnDkCS3dyjby0TOZ/jY8h1nRTZpya/yYHxLAByw5n5ebJT9B X-Received: by 2002:a63:4a1f:: with SMTP id x31mr2906307pga.150.1560866755415; Tue, 18 Jun 2019 07:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560866755; cv=none; d=google.com; s=arc-20160816; b=LQZJE6YjPFf4hKv9EqYzFl5oAgR5WGpIMmjpdOHk4rwX//A5YSTp31tzu1yfVgUv2U Ewvw+aFT8Kfcd7zXuN0rj2dYhdgNOyiPzWZfZ0LM3A8OkcfULBWoj6xNrX85jRrf0H8G A++XmxmJn+TdlNUq+s4bNINOARZZHzlbBFjXpfEHi5C6Nvs5rQ10hYxLEZ8bf0d+qdTx apS0s+2Itrqunkryv53wBJzMMQWrtkfNt/fABdGlur4dpccNLRLF77c8Jp6n7WV3kQjy 9sci9v1BC6InhY/NiXNeuIyZ+OnlnrQDRd3mO4JLfeSnkNmUW4KWHhYujO02w+gXwH0X kpUw== 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=rRsqt/jb8lgBcOz/dnBTtpAXvq2EAkriRLFP/IPTkfI=; b=hmYe8zZ2nT8Oa3lHc3CrTjjMKRfSKpsv9oIrorvs5HJ/VBTh0dlE4/zepOz7BGP7ul J57ia15YbyYJPCQEGZhWnPICAszb0B6GL0MFfaNfsqmc9twkgylNxOSobDo5jt6OMrJK jFcoLIb3/RzxYgW0+9ZM/Gk2C2FWObIN7nl4DOjvTlsWbgmCLElhnqSK6fPpFU1FxGHX 4Dff9PiuE1K3O3EJ//kTm4GKmALXepnlRARR9G9x3drBYzD869tESavB5uimieX9xDeV TSCfA6+3d4C1tJmsuPKtVml5SqgIA8yiLnXnndoIfshpKrj4fgficX4koh1zhXD9mmeW Av8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iXXv6lHp; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si5607939pls.436.2019.06.18.07.05.39; Tue, 18 Jun 2019 07:05:55 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=iXXv6lHp; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729247AbfFROEh (ORCPT + 99 others); Tue, 18 Jun 2019 10:04:37 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35806 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbfFROEh (ORCPT ); Tue, 18 Jun 2019 10:04:37 -0400 Received: by mail-lj1-f194.google.com with SMTP id x25so3674477ljh.2; Tue, 18 Jun 2019 07:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rRsqt/jb8lgBcOz/dnBTtpAXvq2EAkriRLFP/IPTkfI=; b=iXXv6lHpkvoPe6L8zswzO8zsadDQmmCGo8XY6+a+1RkUYcsM+eKxzDgkQ4QjPGcWve Gb70HS+9j60ac/L2BmSZ1EvZuCcyieNIRVfxrD99uRTIaCRoydcHcLY8EnoGDvCiDPy+ ktbTwXqZpeiWvWMkjNSrgn31gSYoTNV47P1WfUbWVfmU92oAOB45bPWuOtBhvZK/AOkh GI9gdt5j/oLSlH2tfSkHDdsgY6QBVhf5y7NIwpZw44OfnNUqN2mLd3WATheFh8jeijUX 7YwqYoCUTtEf9Brk9/0RyaUOAutQ9dl41aI+Xk6DsRttFAhJ8PWejgheJsRA7ZhnU1KK Noug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rRsqt/jb8lgBcOz/dnBTtpAXvq2EAkriRLFP/IPTkfI=; b=f75r1TUX5UYKBPBit0CF9ZoYoXnDojJ6HuJHQ2q03hiWDt65zXiXg9F1L9dIhXMYSV Q5uon6ycXRHHNZgcbYqMvrbgHguRMaYCL93lwehwvfYNk6qEiTqCWIwCiU4zyN3S2ghP xWRddAb+4vZ+8tffbQYAdB30iopYboOkwwDx9HwhRVZ3TUJt659Vlli9vMwN/Uog0GyS MMUbnCgjJY40ZG5GaG2fz50yVuA+mUXUUHLgSo/7wN/L4adIrZZq/MGQQITi730V1b+j 5bp4kAJ5mUDMfloDL20ELCCqpFnnqfadVtjkk/8jPH7DY/Qaa1K8ZSu5b57d0vMn9Eu4 JI2w== X-Gm-Message-State: APjAAAXuCTNQ8vKKhdT6WyJQBAyGoyg41SLXWiUdiOKCL4zm/UJ4C5an Uo4bS+k+vHfHlTVwVrDtV+0= X-Received: by 2002:a2e:3e01:: with SMTP id l1mr47922443lja.208.1560866675480; Tue, 18 Jun 2019 07:04:35 -0700 (PDT) Received: from localhost.localdomain (ppp91-79-162-197.pppoe.mtu-net.ru. [91.79.162.197]) by smtp.gmail.com with ESMTPSA id q6sm2650538lji.70.2019.06.18.07.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 07:04:34 -0700 (PDT) From: Dmitry Osipenko To: Daniel Lezcano , Thierry Reding , Jonathan Hunter , Peter De Schrijver Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/8] Few more cleanups for tegra-timer Date: Tue, 18 Jun 2019 17:03:50 +0300 Message-Id: <20190618140358.13148-1-digetx@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This a followup to [0] that includes some more fixes and further prettifies the driver's code. [0] https://patchwork.ozlabs.org/project/linux-tegra/list/?series=111529 Changelog: v3: Addressed request from Jon Hunter that was made in a review comment to v2 by dropping the timer's period rounding-up in the "Set and use timer' period" patch. Appended two new patches to this series that were already sent out and reviewed after the v2 of this series: clocksource/drivers/tegra: Cycles can't be 0 clocksource/drivers/tegra: Set up maximum-ticks limit properly In this two new patches I addressed review comments that were made by Thierry Reding by adding clarifying comments to the code and extending the commit messages a tad. Corrected the "Fixes" tag in a "Restore timer rate on Tegra210" patch such that linux-next checker won't complain about the shortened commit's subject. v2: Fixed a bug that was introduced by [0] in a newly added patch: "Restore timer rate on Tegra210". Fixed potential problem in regards to error handling in another new patch: "Restore base address before cleanup". Added new patch "Add verbose definition for 1MHz constant" as per Daniel's Lezcano recommendation. Fixed a code typo that was made in "Remove duplicated use of per_cpu_ptr" of v1. Dmitry Osipenko (8): clocksource/drivers/tegra: Restore timer rate on Tegra210 clocksource/drivers/tegra: Remove duplicated use of per_cpu_ptr clocksource/drivers/tegra: Set and use timer's period clocksource/drivers/tegra: Drop unneeded typecasting in one place clocksource/drivers/tegra: Add verbose definition for 1MHz constant clocksource/drivers/tegra: Restore base address before cleanup clocksource/drivers/tegra: Cycles can't be 0 clocksource/drivers/tegra: Set up maximum-ticks limit properly drivers/clocksource/timer-tegra.c | 82 +++++++++++++++++++++---------- 1 file changed, 56 insertions(+), 26 deletions(-) -- 2.22.0