Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1701849ybb; Thu, 9 Apr 2020 07:28:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIr/TWK+vbjlc1mgYvFbASfQTgZ34tPXlg7Mz8MsJSYWx2PijUJzWfFMGVqEKYYsD213YgW X-Received: by 2002:aed:3907:: with SMTP id l7mr12502265qte.136.1586442505739; Thu, 09 Apr 2020 07:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586442505; cv=none; d=google.com; s=arc-20160816; b=dEaU2wwc98GspA4OzVhCuz9Li+kyPcIzOj24m8+8AuI0aK1ByGp3dycsYjXAmKj1If 7PLfVtrL0VKoC2QnOAzBs7KzB6ase8CwJmPyb9T85kpuOKwfw4JhcNcMJAXXa+AGJGrC QdpJ6TS99AlB7QIVLC4Po9whcYQkJVcItGK2xWggAjS0dSjdtTD5BuUOudxVM1u0vVUX 7TQWIzkWxCh9R3FtDre7b7IgNDdglYZlq8OVYbOUEbqBSoTekEA3p6QMZWBDfAA17q7z 7n2kSEWlTnM5VmQPO71BditUZF5Fjyy/dqUILWIL4CutgMi3tEGJjoPyTFebSwOjcF/U obyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LHpeb62ukhljT3Pvoz5IywaA+Wc4WYPkxGmVmEyxFcY=; b=BFhEyezVEhlJkxhwjmTm+P63nnC0ZPyuxDhbFBqLY7XgrY36F1kOsrhF9JZJaezhGQ 9gnZdTulotkOirS3WIZisZgTrsyOrPP4qMDUeTwEgV8gqg45XLkQdsEgSyZK0KbHog5b 7UMib6m6IQEhMNmCak/Eg0f0IXaVcF7+PpGWDCdp0F9+3NP2TplaikImUTrau8fryk7S RuR2+Z4LvPVln8qPuLEHw2F2Vq12SzsEQmCfiOa94lAz+MC7030s9pVEfOjAr3taULJ6 J9n31o+/g9E2FugiVPMCxd8ms5vRf9A0nwJCX8Z48NdmdbCU3auP3ZSg2QdSV0RQ4lX1 JMKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fSLIIjvO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e58si5527421qtc.381.2020.04.09.07.28.07; Thu, 09 Apr 2020 07:28:25 -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=@kernel.org header.s=default header.b=fSLIIjvO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727547AbgDIO1S (ORCPT + 99 others); Thu, 9 Apr 2020 10:27:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbgDIO1S (ORCPT ); Thu, 9 Apr 2020 10:27:18 -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 C44A5208FE; Thu, 9 Apr 2020 14:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586442438; bh=f52tv12CKi3hPcTqTZtkaLkme9rieuxIx0S/7m+utEU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fSLIIjvO6UjGlZmSCZlzlyQBkZE8ByVHZcS00h4bVKxeKZI2svF/qg+WkMj/0+ii8 9ZBfJYpXABitNOl8t6onNbNYbaft/UM4k7TUuLMXvK35n99MB9FEEkrUQNewCwWmR6 tqKqP/ofzRAh/aqch/ql/msKI4TiAfL3jF57SJPc= Date: Thu, 9 Apr 2020 15:27:15 +0100 From: Mark Brown To: Baolin Wang Cc: Lee Jones , Arnd Bergmann , Orson Zhai , Chunyan Zhang , LKML Subject: Re: [RFC PATCH 1/3] mfd: syscon: Add reg_update_bits() callback support Message-ID: <20200409142715.GF5399@sirena.org.uk> References: <759f7471d03946ae273a06f7bcca8a54528ec08c.1586422035.git.baolin.wang7@gmail.com> <20200409104802.GB5399@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="udcq9yAoWb9A4FsZ" Content-Disposition: inline In-Reply-To: X-Cookie: HUGH BEAUMONT died in 1982!! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --udcq9yAoWb9A4FsZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 09, 2020 at 10:13:58PM +0800, Baolin Wang wrote: > On Thu, Apr 9, 2020 at 6:48 PM Mark Brown wrote: > > > + int (*reg_update_bits)(void *context, unsigned int reg, > > > + unsigned int mask, unsigned int val); > > This is fine, we already have this operation for buses, but why is this > > munged in with the MFD patch? > Originally I want to show a example usage of the new callback, but I > can spilt them into 2 patches as you suggested. Thanks. Yes, it's good to have an example user - just not as part of the same patch! --udcq9yAoWb9A4FsZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl6PMMMACgkQJNaLcl1U h9A9wgf+Jc6tx2qiednYwS1jkTBZj78MElmgKS659xV4M89wyuZsOgy3X0abKOOx /uebtp84zgOJP97ZmGJtiT19GungspwyqMFghDZVmOw0YtrvJD3jNFU021jkmguy 42kRT+TByrolwmO/q7+A+dRMESc/nO5jXYIYE95dy8I1TRQCs3kPcfIu6ooe35VI OfiOiDGkxhEU+GvFiy79mvHQMurtX15l9nKoim27HaC6nGqyGCcdb2Ur/YRW0oqd rAoFmzyig9AKZ+T9nQpQ2UoI54SEjqoNqiLwxCD+FAifXOIw66zIRBqn9wk8JlHX p4gZNqbYUpOIc8Ar9mq+FmI2ertcLA== =wXEn -----END PGP SIGNATURE----- --udcq9yAoWb9A4FsZ--