Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1525656pxa; Thu, 6 Aug 2020 09:29:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzejUfT9UnfkzdNvlwHhC22xrHTKRJ0k19FMzuCsx2oQHGlE9BhIsvn7RRLTDGZM2K4g3+H X-Received: by 2002:a17:906:1b0a:: with SMTP id o10mr5287537ejg.463.1596731378821; Thu, 06 Aug 2020 09:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596731378; cv=none; d=google.com; s=arc-20160816; b=N8oJ2dAnCZrik5K0gfs0HOMXugxgRn0E2hfnzVOaXNJeUM4AdCbLE0jgau8Y7iNizx Va7/WQfRmIQp689PGDnPannEy5fKGXZDC7th9i58/hGV8eRnMKtfp0X9J95bX95FRHaR huSNnVHsTzfuabyyFDAK/19cYjTajSiMtZ9x6RPo0YZen8ExVdso0SdQEid/3IqZf91T KrQjpztSUghuM4Cxv+rBGoqJ+VEmMTPFE+9OyHFmuJGmlOm37K2FKEjYXujuJFr30wki iZRlKvEkuoweOEj2zijGP8zFuanOcvW6IsVryD9/2p76kMks1ZfD5Gg1mpFC7i6Q8Xvr pHNw== 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=rhRlovtfmUAL2y6ZLyJ+Pj73XNu9kwnEu37r/fHGHP4=; b=Jilkc6jzV2FnmbnchuOYS5sUfYlcfB8g9nz9igXqEOyUsHbGu/qVYkDRqc3DGbMe7X xjpcfqa8qrRVTwrj491P8V30CXD9uUgyEit2umDkOH9tObbvrCoeE90kOxbtdR5OB6Yu wBNWBRMRaI70VBGpiW+ym0iIovzq+Z2XIMTFOW0MfSjSznSHFOcFN+tWdTrWsSTcFjfs s5a3xZ/Jg23jUEacAJamD+mpylIIsJxtsEYQKmRH/wXwMp01Q+dMeNWngHRSL6TvZnJq jlOP9xQAXChWkJz6rei3Pwu3SiFxVUvewbSDJZjUVcfZusFJOQVuUe5wiVQ3HSflJxWz fAiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UVLTvmka; 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 dg15si3750318edb.524.2020.08.06.09.29.15; Thu, 06 Aug 2020 09:29:38 -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=UVLTvmka; 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 S1727831AbgHFQYh (ORCPT + 99 others); Thu, 6 Aug 2020 12:24:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:43262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbgHFQRY (ORCPT ); Thu, 6 Aug 2020 12:17:24 -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 E66DE22D71; Thu, 6 Aug 2020 12:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596716036; bh=O+Yq62Jpar2u7KQqkWw3dmiGoRjXxGUD+TIIm4JmqPg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UVLTvmkatzujC2ujO9N7gWd52kh2sNsgn5jwQ+uywt+FYWEPpJBsVba/+L3uMReZm 63eUsD7dqXhwQ2ECvgg8qWpw/0ZDSTubwwYZUAEirXTLleLjzlzlfRAOUraMbW650E RVkGTvGqJr2ao26DVT9G+MDQ9KjBGWZVD6ZAxpRA= Date: Thu, 6 Aug 2020 13:13:32 +0100 From: Mark Brown To: Gene Chen Cc: Lee Jones , Matthias Brugger , rafael@kernel.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Gene Chen , benjamin.chao@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com Subject: Re: [PATCH 9/9] mfd: mt6360: Merge different sub-devices I2C read/write Message-ID: <20200806121332.GB6442@sirena.org.uk> References: <1596558782-3415-1-git-send-email-gene.chen.richtek@gmail.com> <1596558782-3415-11-git-send-email-gene.chen.richtek@gmail.com> <20200805161021.GK5556@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: X-Cookie: Hedonist for hire... no job too easy! 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 --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 06, 2020 at 11:30:56AM +0800, Gene Chen wrote: > Mark Brown =E6=96=BC 2020=E5=B9=B48=E6=9C=886=E6=97= =A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=8812:10=E5=AF=AB=E9=81=93=EF=BC=9A > > It's not clear why this isn't just done in the device regmap, there's > > exactly one user? > because I use one regmap to access 4 I2C devices, There appears to be only one device here? > I need change the regmap_bus struct to fit I2C read/write with CRC bit > Therefore, MFD reviewer suggests I can move the regmap api to regmap > folder such as regmap-ac97.c AC'97 is an industry standard bus used by a range of devices in different subsystems. You can already have custom operations for a device just in a regular regmap using the reg_read() and reg_write() operations which are there so devices that individual device support doesn't need to be added to the regmap core. You really also need to write a much clearer changelog, I would be hard pressed to tell from the changelog that this was moving things to the regmap core rather than shuffling regmaps within the device. --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8r8+sACgkQJNaLcl1U h9B2agf7BQ0T2JHp32v4pfLGpKGHkSI9JcjEGjBwSmahI1cX35HCV5U268ZSJX3d BLazy73BTK0mInugyZ9eWwpku1FaC3/t7Iof6Vm8rLUkpEPezWLYamGihace/tjc qAUXy954H3ad8WHYtHulkoolE9B8YXr5hxMJ+vN8PNOYMkCuCWHlis1hR4ipH6mJ 9xdU/uD88UEf/E0JjxmKr/szzWQVrdfQ3pN7j1T5cl44fzYFXpyeH21pq+Qjg6tX 8moEToplBFHmRmrDPDryDbqRLHLhCLknTcfyAfYM8T9aZUysEdcSDDh/A7FQJ7cq f2/PfBNJ2N1pmMGhdyZd01U9Qjr41w== =qguZ -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML--