From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B92BC282DE for ; Thu, 23 May 2019 12:58:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 071C920879 for ; Thu, 23 May 2019 12:58:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sYnD/sxf"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="r9PZXAbF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 071C920879 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=by/Ax12cW78CKz8M8eka7iN5w7EVCBks5dbM/atu9ns=; b=sYnD/sxfDLjKLf uLn5WDdENP6Ex+fme/M12wbMs6Vqou9TSodT6PVD5OrKo2LBJsvklxDNrzJU1u+6OZv/GAAgvBoII GcgBTnUimSCgPlQzafw5S8IkPVy/+M0h//AjqTyv1/+PIjEif3yIzaMj7DwEQf6qLmDp/VaTJvQ48 0c7NVWyfxKgD/VUicVVIZ9kngl9kQAiF2bqlLz2EWbUV2Xyq3ZoEL/vDEihrrofCHrQpLaJByZlAw +Moh8GlCk3Cos7WyN07cjZRWSSWwPwgAAcpGXySArfx1nISbXjYWEeeMLhII315rJpT6N+4q1ZjWL 3VSkZobZ00+HzqCiD7tA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTnId-00052I-8R; Thu, 23 May 2019 12:58:23 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTnIY-00050T-Tq for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2019 12:58:20 +0000 Received: by mail-wm1-x335.google.com with SMTP id c66so7070202wme.0 for ; Thu, 23 May 2019 05:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=r9PZXAbFtJJPPvfQKRF6s1VHnG3klpb3OOQ9YbAaVc30OrfbyFjPcDaG8WTk7KnD/L wk6pIuXqTf4vOm2od99w7Gexv/tKuwTYb/vvCeEwIvK80SqkgbvRsJ9FHuQDWtuoG53H OZS6AEaWh89rv6PE3k7On3pIorUmC1ToiWFgTxcPTKuwsTx145B0OMOU5GVR61icBFtY dTNkQTBVq+F2qSfvgl6CUyFZqUFozzzOLBmPlmw/h2zLtgvG4ulfOqeRzAFhGIymUDff 1H4lDDPPZt+UeupJvdXu8X7wV/wRH75j9sWdmyEAu2GXXQZ39U0OI6mZ4Mq4Ryu8vwLF jWZA== 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=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=eUBqFJ3aUsOv9YgiKUEtKIcgidlZ7IX180SfZjp1ZLp14KxZTMK6S37xWkUOaNXd7C CGvKaRaSjGWxRP5uAwWJvH5skRJQoQc/4lvZdak4jTkb5f6sHcQAp1+sLEP0rq3gq/sO Vd+wshvJFlHYA9a6a4t5cnmEhcioCxeTAc8yaQ0v4jyzTbAh8mSfw9KPBDoSQgxxhvik CAP5GFXfMPUrCiCB0eSYZyQS+32SLPpNQuQ4plslLngbiJKZzwrCI/DFtWWJvaMUiRLX Ovghu254MeZVdCt1Og3F2WlqF40Oh4eRZM0gS7+uItLMQX921i7f/OA8pZWbYxZJOQpJ OgHQ== X-Gm-Message-State: APjAAAWnvX/ID9fscXdKsRSttT/iDghxZEnnThzEz9bDn1NoEhcUsL5b waRvnm1+2ruCAiAO5huD0i+eiw== X-Google-Smtp-Source: APXvYqwK7EF3A/sETDYJqJjEvH+9WhzGaBLe8eflWij1cL5o/3OTIchEO4ol0wDyLjpwfdW/vL7BGQ== X-Received: by 2002:a1c:a958:: with SMTP id s85mr11479598wme.144.1558616296604; Thu, 23 May 2019 05:58:16 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id s13sm9876118wmh.31.2019.05.23.05.58.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 05:58:15 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Daniel Lezcano , Thomas Gleixner , David Lechner Subject: [RFC v2 0/2] clocksource: davinci-timer: new driver Date: Thu, 23 May 2019 14:58:11 +0200 Message-Id: <20190523125813.29506-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190523_055819_016550_FC51489B X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski Hi Daniel, this is another try at the davinci clocksource driver. Changes in regard to v1 listed below. As before, the driver is split into two parts (one for clockevent and one for clocksource). v1 -> v2: - changed the format of the copyright notice - removed all mentiones of the periodic timer setting - added caching of the TCR register value so that its updating doesn't require a read - split the timer configuration for clock events into the set_state_oneshot() and set_state_shutdown() callbacks Bartosz Golaszewski (2): clocksource: davinci-timer: add support for clockevents clocksource: timer-davinci: add support for clocksource drivers/clocksource/Kconfig | 5 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-davinci.c | 355 ++++++++++++++++++++++++++++ include/clocksource/timer-davinci.h | 44 ++++ 4 files changed, 405 insertions(+) create mode 100644 drivers/clocksource/timer-davinci.c create mode 100644 include/clocksource/timer-davinci.h -- 2.21.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F091EC282DD for ; Thu, 23 May 2019 12:58:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDCEB2168B for ; Thu, 23 May 2019 12:58:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="r9PZXAbF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730737AbfEWM6T (ORCPT ); Thu, 23 May 2019 08:58:19 -0400 Received: from mail-wm1-f50.google.com ([209.85.128.50]:40716 "EHLO mail-wm1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730284AbfEWM6S (ORCPT ); Thu, 23 May 2019 08:58:18 -0400 Received: by mail-wm1-f50.google.com with SMTP id 15so5674042wmg.5 for ; Thu, 23 May 2019 05:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=r9PZXAbFtJJPPvfQKRF6s1VHnG3klpb3OOQ9YbAaVc30OrfbyFjPcDaG8WTk7KnD/L wk6pIuXqTf4vOm2od99w7Gexv/tKuwTYb/vvCeEwIvK80SqkgbvRsJ9FHuQDWtuoG53H OZS6AEaWh89rv6PE3k7On3pIorUmC1ToiWFgTxcPTKuwsTx145B0OMOU5GVR61icBFtY dTNkQTBVq+F2qSfvgl6CUyFZqUFozzzOLBmPlmw/h2zLtgvG4ulfOqeRzAFhGIymUDff 1H4lDDPPZt+UeupJvdXu8X7wV/wRH75j9sWdmyEAu2GXXQZ39U0OI6mZ4Mq4Ryu8vwLF jWZA== 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=o/wtiYR2xsTC11waSO0yQUkZ4S3S31FqfgaPX+rcr4s=; b=UHqaQNzQil85Rwj1wKY5+0GlikCpNuroFAH/eoRzvfnCZz/NHYkx86Wp2PKc1XCqhd /erMjhYAzvoe959m9thN+XrEzqjiIVE03S5246aThlIOiH8BrSu9vdX8IaTHPtFY2Xcs djqPHkHxQX05WvJryHe8ApUzGIeoSV3YM85t78Z6VW2tEwTSUpcvzK4LfR+IQ2vseK3/ CNcCN+9P51RAeuSNsLhAwPJK5bH3ZHT+8+0EDiO/qrwxT7RykdjcNX4c8rJm9Wqm4xRB G9Mts3nYNM2WZFxcZ8lzcgEHIHBDvNwr9H25ccyQDlxPOWLb5F7qHeIfFDmha6d5nfGx cvJA== X-Gm-Message-State: APjAAAXeOgd0xkUqqvjIYlPZw4zev4jsRDDHDdUHtk+d0RAw11+7kpsx nsiHEj/uYGbQIhi40tPxI1hKQQ== X-Google-Smtp-Source: APXvYqwK7EF3A/sETDYJqJjEvH+9WhzGaBLe8eflWij1cL5o/3OTIchEO4ol0wDyLjpwfdW/vL7BGQ== X-Received: by 2002:a1c:a958:: with SMTP id s85mr11479598wme.144.1558616296604; Thu, 23 May 2019 05:58:16 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id s13sm9876118wmh.31.2019.05.23.05.58.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 05:58:15 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Daniel Lezcano , Thomas Gleixner , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [RFC v2 0/2] clocksource: davinci-timer: new driver Date: Thu, 23 May 2019 14:58:11 +0200 Message-Id: <20190523125813.29506-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.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 From: Bartosz Golaszewski Hi Daniel, this is another try at the davinci clocksource driver. Changes in regard to v1 listed below. As before, the driver is split into two parts (one for clockevent and one for clocksource). v1 -> v2: - changed the format of the copyright notice - removed all mentiones of the periodic timer setting - added caching of the TCR register value so that its updating doesn't require a read - split the timer configuration for clock events into the set_state_oneshot() and set_state_shutdown() callbacks Bartosz Golaszewski (2): clocksource: davinci-timer: add support for clockevents clocksource: timer-davinci: add support for clocksource drivers/clocksource/Kconfig | 5 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-davinci.c | 355 ++++++++++++++++++++++++++++ include/clocksource/timer-davinci.h | 44 ++++ 4 files changed, 405 insertions(+) create mode 100644 drivers/clocksource/timer-davinci.c create mode 100644 include/clocksource/timer-davinci.h -- 2.21.0