Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6770912ybl; Wed, 15 Jan 2020 09:56:28 -0800 (PST) X-Google-Smtp-Source: APXvYqy0uqC0vcOYjA379pickRwSIq61L7HRjtMCU2Qx1ot65wrwlsRhCmmDpbSPvg/Q03HhTUYT X-Received: by 2002:a9d:634e:: with SMTP id y14mr3686051otk.162.1579110988680; Wed, 15 Jan 2020 09:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579110988; cv=none; d=google.com; s=arc-20160816; b=rWyCVq1amqlrIoLMUgu4Fuq92C89D9JAXdVj5r5+AKMZYP+GmLhy8MIK/wgHVlfELp 8rwHbUwPdKSkKmk9ppLj7B7W95HxCVgB0pk2RaJHZj3caEQ61DrzujCeTP1cf4wBmbsv 45uTGRVKW2MP3b2YKeLUSUzDthhbtuPe0KyYAw1/uikeGCvW36JxemeYxwLlw1MtfqDt KzaNszT50cdm330WZj5TKcSJxg9cwWI1ZNjJ/+xMyN+vmTlfBxEf5qpbnS/CH05Tlsp0 LDDRem/xkdpbFswx4gFoJGYshaA7lFBA/D8anpSh/8oCAgysCf5agiSkD+/9eia391l9 kYOw== 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:cc:to:subject:from:date :dkim-signature; bh=7ZZVRQqrxHD4LUg9xqCDh6soEht3MVKnL/1H1VjFviE=; b=zZbX4JCUZorm+djKLkJmBrid5n9fzyX2zqKfD8EfpFsFeumLkhLw3BIj/jVqFrKNZ7 JOdGKd4jGqgL3iIxE0mtQ9vWzaBY8PHVoUCJFg2hBGXrKAUPYJyYgZa125ivzIMaKn+h lk1JN/lzkO8gBvE12iltfSZN91LfCw5M5rntu+VheveeXnPi1nX7GY+jfOoJxirwhWAf b92JXbC6VA0NptnXktJUuuC2KehaxICLMjrYGLeM89bJf2O/Q2R0+WswgATIEBb7SS/P +MPmbGmQYucNnB+Pb3xJMHaOeqCqAR+WOb+xxDBLYGvw1Yy2bA+/Eox3EA0E5r+wDTyx Gceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=R8BaOrWr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l189si10146918oih.166.2020.01.15.09.56.16; Wed, 15 Jan 2020 09:56:28 -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=fail header.i=@crapouillou.net header.s=mail header.b=R8BaOrWr; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728931AbgAORzP (ORCPT + 99 others); Wed, 15 Jan 2020 12:55:15 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:57178 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbgAORzO (ORCPT ); Wed, 15 Jan 2020 12:55:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1579110912; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7ZZVRQqrxHD4LUg9xqCDh6soEht3MVKnL/1H1VjFviE=; b=R8BaOrWr5ieD+8tf2/e4HRFjQaDGtKkhh9ZbgQzmEO0EYTKs2kZtigFjvnsSgdw4NGuZDQ 4RFPP9GALVyl9WHJRg4yLBdG36BjhbGEboUBRQEskOlYLHfEpJqk/1vDBqf0lJfd+7dWVp cmACTG3bwe4tlbo1ZSYHjaRA9bCnQlY= Date: Wed, 15 Jan 2020 14:54:57 -0300 From: Paul Cercueil Subject: Re: [PATCH v3] clocksource: Add driver for the Ingenic JZ47xx OST To: Maarten ter Huurne Cc: Daniel Lezcano , Thomas Gleixner , od@zcrc.me, linux-kernel@vger.kernel.org, Mathieu Malaterre , Artur Rojek Message-Id: <1579110897.3.0@crapouillou.net> In-Reply-To: <2994787.aV6nBDHxoP@hyperion> References: <20200114150619.14611-1-paul@crapouillou.net> <8026844b-75d2-edfb-c3ed-fdabd34a9aa0@linaro.org> <1579096621.3.0@crapouillou.net> <2994787.aV6nBDHxoP@hyperion> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mer., janv. 15, 2020 at 18:48, Maarten ter Huurne=20 a =E9crit : > On Wednesday, 15 January 2020 14:57:01 CET Paul Cercueil wrote: >> Le mer., janv. 15, 2020 at 14:44, Daniel Lezcano >> a =E9crit : >> > Is the JZ47xx OST really a mfd needing a regmap? (Note regmap_read >> > will take a lock). >>=20 >> Yes, the TCU_REG_OST_TCSR register is shared with the clocks driver. >=20 > The TCU_REG_OST_TCSR register is only used in the probe though. >=20 > 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=20 > performance > concerns make it necessary to bypass the usual kernel infrastructure=20 > for > dealing with shared registers. In theory yes, in practice there's no easy way to do that (the=20 underlying mmio pointer is not obtainable from the regmap), and=20 besides, the lock is just a spinlock and not a mutex. -Paul =