Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp508766pxx; Thu, 29 Oct 2020 07:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIiRvzzE2JdKIekOzoTHB6fObwDHZCMz5ZlRq4O2cvF5ahtjY52dE4xEk1RW2JIWDfyOnf X-Received: by 2002:a05:6402:395:: with SMTP id o21mr4314290edv.2.1603983021344; Thu, 29 Oct 2020 07:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603983021; cv=none; d=google.com; s=arc-20160816; b=NwNhk4587UVdNPdzoo/Qk6P6dL6myTrK4k7Y3G6Rwd6O5cW3u0Zm3SB8j2sbB3aBK4 LtaSjbBqnZegyuE30jWHVPmeOjySkh/vDEYGRRSn8Wo5lmdGLP3ZospDix5s1EUFfGoc GJSH7HUDNwbeoNEFzlw1QnSaTg3pITXnIozKpeE3P8c5yaQW9D/lwiDBz43ox2ZyxajZ NKs1mBSoz8xIpzEMwZpctTHbBAh29AExmVMofrZty2lN7JYmMNmqwJQkwYlR18DT64PU OeOKmDoomMabxK6w4IreOkGvqkHtIWIJY9+p4JaYYg7w1jBr0oT8+U8662W3xy/PH7dd aMGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oIwgQpysI8Igr2PZA+Ij4bK6n8maBhoi/dM91ixgTP0=; b=tj4xXSmdZdNhjhGtB+KwofNB+yYEoVc+pBM6DcrJ3CBilSW6MfdCjAxNVRGniELerr ByRs4QAFnTQYwSL6frKoMnr4tphVEz+MGLUF92XqHtgy0eH5ghUFKeJa1LorX8ACdGNO bbLa98HKDtuY37mnfLvwwLQDf96aqUUiLO51EH1HosdYPwCBI5uOuUXWhYyDta9VQ6py 88gYqMlGbP0lUiyLG2B0DumhMs5FFPD73CiG3Wk6ySQ2mEr5vYuGs9+lc0/JKfjOia6p kBzHE5JqndJ8x4vMtFqm1K1u1w+7lRpNca0hn3hGNn9EpLhdD0bJRlUauShb8cf6SHWQ b8Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i4FEJ5HP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si1924268ejv.120.2020.10.29.07.49.57; Thu, 29 Oct 2020 07:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i4FEJ5HP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727705AbgJ2OsX (ORCPT + 99 others); Thu, 29 Oct 2020 10:48:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbgJ2OsW (ORCPT ); Thu, 29 Oct 2020 10:48:22 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C2207206E3; Thu, 29 Oct 2020 14:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603982902; bh=1WVgpSeBTg23BnkNEmrqmNenj4irnsi1ikEUl8Vv6Wo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i4FEJ5HPwWmEOBfL7UrgMlFlHNz8cK6TPZeEdahQV/hnidqkE5aDW1VXDW8bcEZ3k nKSm+dMHUiYT3k+i5SjzOonCiCk9sfD5brDCx7hZ3DWjgJar4/xK7v3nhCd2yp6IXP r8lt84NFqgwlM37J9zt9IN2eSKblG3BWWGdWZvtI= Date: Thu, 29 Oct 2020 14:48:15 +0000 From: Mark Brown To: Robin Murphy Cc: Ezequiel Garcia , Adrian Ratiu , Philipp Zabel , Fruehberger Peter , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, kuhanh.murugasen.krishnan@intel.com, Daniel Vetter , kernel@collabora.com, linux-media@vger.kernel.org Subject: Re: [PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support Message-ID: <20201029144815.GA5042@sirena.org.uk> References: <20201012205957.889185-1-adrian.ratiu@collabora.com> <0dd9fb9d-3f33-b9b0-a7a8-6d3111e92d64@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <0dd9fb9d-3f33-b9b0-a7a8-6d3111e92d64@arm.com> X-Cookie: Monotheism is a gift from the gods. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 29, 2020 at 02:15:10PM +0000, Robin Murphy wrote: > Or maybe the regmap API itself deserves extending with a "deferred" > operating mode where updates to the cached state can be separated from > committing that state to the underlying hardware. > ...which, after a brief code search out of curiosity, apparently already > exists in the form of regcache_cache_only()/regcache_sync(), so there's > probably no need to reinvent it :) Yes, exactly. One of the big use cases for regmap on MMIO devices is being able to access the register map without the hardware being there, this would be another application of the cache stuff. --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+a1i8ACgkQJNaLcl1U h9Chkgf/YvgbkyG7kUEIq4QfEROF8JYpkMBdUkwEFiZ29CTsLlroKBVQ5tAuawRY pfo16Z2PmnfFoxJ8TOXEZgBjCPiKHpaONRLUICnX6eVBYr0toBty+CCxIYLfZZ9n LZscGBuAFAwZx6wbsLmnEFUeB5WemZUelSGwPPLg9pf3Q3o/7ujGCd6jRpkcApCf RSxUi+wCAWsXA5RV/loCcfnRWPdtcZTH57uUrLtkYblhZXrsvLyijzErixL1Dhdd BSOLkG+c4h/Ji2M7QgUYQVbK5Qnt72Q7CotPmJKtGCnjAu/il+uVZGE+SHziWr/r f0wS3wW7YIxIpC71JOo48eKTyJrhCQ== =FSAs -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--