Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3765321imj; Tue, 12 Feb 2019 04:22:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IbCIkKaV2Jw6IrY4hXrBYQthz9lYSpVcOpHFxV+OyLkME7JzLwllcufyIwwDRgdIVT9i/BF X-Received: by 2002:a17:902:850a:: with SMTP id bj10mr3878071plb.100.1549974132366; Tue, 12 Feb 2019 04:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549974132; cv=none; d=google.com; s=arc-20160816; b=oX5LB3LgAjKDBo5mu87Q8wsi6SRpTmVrDuygfPkRM0clwItvJXX6z1JoWGLF6/5A9k 1Luy1lSJ2iQaF1rwym54UgWNjQww5Kj/RQslzeJE/KALi+L8PvV8WZhb0xtjqgj54g1q Q7dVyojz4zUPLWADgwpIxbIx5K5mC8Fjy/XW/JrxO5MKJOx5DZiANzMWiUFHD1B3qV98 epSX7eAAZH0hDuj0yP+yCZyMvrTYmVhBRiHRe2g7gvzAzG+dUT1jGJfWrsMDnYDRVxTE U1smZNZgwY2xqHtGzAjDlsmlQ/NE4b11Z3fLkR1jzJE5lNHXonCf7TeG9muG0HVI8DzF 3HYg== 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=pcbX4d63ha7+7nhkF9F1CGVCOceyvWkG7gXc7YiQ5hU=; b=GQBak7Naiadizb7krn2fUpmrK9XfW6P347xCV8VjlU5jd3BAGzfJB1JDhJSewrHD+d xrLaFphCcifz+JPmxISoRsWliMimJvKgj01GzkZNCAwRe+6YkpN1gdlAYo8YWyAxKmnz s97NQRW7CzbGPfPd3RAzFcpJB5dYAaM7WhHcVudkt9L4et2Q7N2KUSHzRZ/k44YCXRoZ FsU+v0cxYB+atpwSCg/HNfiLvwuPjPesaWXUeXJB9YJKbs0zChZiM2iLlk723yvkLUAe OIeUTkjmWqGAlSGJe6wdJ5sVXz6KJVa/t6vPII/PJA3uV9ROhaAp0TG5Q2qXVDMvM7cJ 0s9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="lAKXtO/+"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si11861999pgq.144.2019.02.12.04.21.56; Tue, 12 Feb 2019 04:22:12 -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=@sirena.org.uk header.s=20170815-heliosphere header.b="lAKXtO/+"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729091AbfBLMUo (ORCPT + 99 others); Tue, 12 Feb 2019 07:20:44 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49194 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfBLMUn (ORCPT ); Tue, 12 Feb 2019 07:20:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pcbX4d63ha7+7nhkF9F1CGVCOceyvWkG7gXc7YiQ5hU=; b=lAKXtO/+eAVfgdb9imAMNULFB Azu0H0Km+jQloik3MANZgOcASa9L8c5eeO4U2aVeorfpHaemNFcOkSlZrXE2h3TDFmP7aWwcjF67R khFDqSFZW2y6LfXpgY+A5dTEdAO9VAlXt3qZyu80ZANJQwA9KtPfxKpMGEKCdbOEEFqgM=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gtX3E-0003zb-4s; Tue, 12 Feb 2019 12:20:36 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 7D0981128113; Tue, 12 Feb 2019 12:20:35 +0000 (GMT) Date: Tue, 12 Feb 2019 12:20:35 +0000 From: Mark Brown To: Baolin Wang Cc: Arnd Bergmann , Rob Herring , Mark Rutland , Olof Johansson , Orson Zhai , Lyra Zhang , DTML , arm-soc , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH 0/4] Add new device nodes for Spreadtrum SC9860 platform Message-ID: <20190212122035.GA20635@sirena.org.uk> References: <20190201130519.GH20797@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: X-Cookie: tax office, n.: 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 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 12, 2019 at 04:40:10PM +0800, Baolin Wang wrote: > On Fri, 1 Feb 2019 at 21:05, Mark Brown wrote: > > You can just list all the individual device names in the of_match_table > > for the MFD and then it can bind to any of them. You can always map > > them onto the same behaviour in the MFD driver if they are identical > > from a software point of view. > If I understood correctly, as you suggested, we should add new > mfd_cell groups to list all different PMICs' device names. Something > like: I do think this is a good idea (registering the components of the MFD using mfd_cell), though it wasn't quite the point I was making. Having individual device names matters less for Linux-internal names like this. > But from my point, they are just some meaningless duplication, and > will waste lots of code there. I was more thinking of the of_match table that has the IDs that appear in DT - they're the one that's the ABI. Look at something like wm8994 where the driver has several IDs listed in the main table then selects function drivers based on that. --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlxiuhAACgkQJNaLcl1U h9AIrwf/duaHeW8vd49sPs90dsantq17G7uAI3r2j6QKJdcp6vMTcKRvlq0qahnh ekHZkwL66Xqn+T0Hy58zRp2HKMmXOgTZAomEYQiLeZ1fAulq92j8jUROqQY5bNAh V8/55At5oa/BmfWu75pwqMahTHThP5F82XXtaE9jCSJmYwg19Fmy69WkoIm2uMUG 2aSSqZI2kmELBUxWoErbVhqq0V0+BrgkLNxBtOZ1vmGqecV7eduAJqVls8jztS0k N4knC7ebvKAhQ8B/HvbbpCrg65jyZa59y/BdJ0eAGsyiVczLeL2PoO9dz+pG+04E /tGLg0VNm8KDei4/kDw2P6FtY/uZag== =QmcW -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--