Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6765907ybl; Wed, 15 Jan 2020 09:51:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxdsPYW9VdWRwZKtotKFei1U/gs7b0INbwTIJ3XbqqsTEWJx8ZIG2VI1NZciEmX41rdhIgb X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr754883oie.123.1579110696190; Wed, 15 Jan 2020 09:51:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579110696; cv=none; d=google.com; s=arc-20160816; b=K8U70nS+jkGWlxowetg3Wm/ey29GzWY9LaPeSkLrv+a+kuaJCoOe/7mrYe+V7rN1yp 0r91L7eHYVyr5/9GqX0L8YkFBMMmjnqbKfwhAuvPhrfwVBD+dJDitO2LclvNVTusxylJ LbHB1MckhhilId9szCgdZDSzuMxetnp9ZVwTPRD0WNG3z4Y+3cbr+ksWJQyO0ToNIwnm 4worJOO23Kk4Wc07r3FJ0KsO+SIGa4zKUjQGScr4H1VIxSCHsUpTlsgTD49AetBV50ew FFbNCPABRXXI0z7KHi83y0he82g/dFYxRnnkiKz3EGdefPaqpaQVW6K8E8VqdAgr+9J+ X77Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ttWL4KUpV9GwRs3E2tXQitXmyzuA91ZWUa61p+EBwgI=; b=wnjwjMH4QK1U+DgJ18OnV5IRcxdIpaKmlZDFdyw2PYjoqQYNTJn6cRLfj9OkqHyyAK 66s5lFaqQ+Fl5n8pagNSoxleJCgS9kPlaCj/A6zeLE1UtUZG/2eFyRlj1kmyYI2voGJU UvyQ2k1IRc4sP3PvCWVD0qF+HlHKsC1+TiKm/gWnk/Rvs8rbW53vcNK9Tk4P6q3bYkxH p7dj5+p+EClosailHRaDiinHHD7L2I8t/wdmFNVCdXvEtfeD5xCWwMRtidXzW0UFNJxA TA4/TPSyt39D4Rr91rs6e21diZdznskFyf2R7n7/Noq7N4OaXC15FmVN2ti12dKs5LNB guWA== ARC-Authentication-Results: i=1; mx.google.com; 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 i2si9792491otc.130.2020.01.15.09.51.24; Wed, 15 Jan 2020 09:51:36 -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; 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 S1729078AbgAORtB convert rfc822-to-8bit (ORCPT + 99 others); Wed, 15 Jan 2020 12:49:01 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:33043 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729012AbgAORtB (ORCPT ); Wed, 15 Jan 2020 12:49:01 -0500 Received: from hyperion.localnet (unknown [193.22.133.58]) (Authenticated sender: relay@treewalker.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 55298100004; Wed, 15 Jan 2020 17:48:58 +0000 (UTC) From: Maarten ter Huurne To: Daniel Lezcano , Paul Cercueil Cc: Thomas Gleixner , od@zcrc.me, linux-kernel@vger.kernel.org, Mathieu Malaterre , Artur Rojek Subject: Re: [PATCH v3] clocksource: Add driver for the Ingenic JZ47xx OST Date: Wed, 15 Jan 2020 18:48:57 +0100 Message-ID: <2994787.aV6nBDHxoP@hyperion> In-Reply-To: <1579096621.3.0@crapouillou.net> References: <20200114150619.14611-1-paul@crapouillou.net> <8026844b-75d2-edfb-c3ed-fdabd34a9aa0@linaro.org> <1579096621.3.0@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, 15 January 2020 14:57:01 CET Paul Cercueil wrote: > Le mer., janv. 15, 2020 at 14:44, Daniel Lezcano > a ?crit : > > Is the JZ47xx OST really a mfd needing a regmap? (Note regmap_read > > will take a lock). > > Yes, the TCU_REG_OST_TCSR register is shared with the clocks driver. The TCU_REG_OST_TCSR register is only used in the probe though. To get the counter value from TCU_REG_OST_CNTL/TCU_REG_OST_CNTH you could technically do it by reading the register directly, if performance concerns make it necessary to bypass the usual kernel infrastructure for dealing with shared registers. Bye, Maarten