Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp32577pxb; Wed, 29 Sep 2021 20:15:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qt4XzbpaY1hxqlIb635Trwl6URH8Lv9KycbmcKBnxlCYOHNMWF1/VuNneP149oe7HOD0 X-Received: by 2002:a50:d98d:: with SMTP id w13mr4405951edj.51.1632971728437; Wed, 29 Sep 2021 20:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632971728; cv=none; d=google.com; s=arc-20160816; b=CRT2YQrt34erv0lZm7smp3dgOab5U2MWKnz+WSjwRpqIw7j84pMy0ZTOpp4G4Cikst qXfBFzpj9fZBNc5MAmgsegS+/mIgV7ThrUJ7OGVYO2lx/Q0p8rhdLcpOax9Ut13dG+A6 iO+jODnjuMCiUY1MMBoL0XYZDdqc3IzCvGe7E+CrVgrRRVAM2h7j9dbILAGJgnQlWI4c N5bq3a4JK8tFehpYj4lJzxeCnq1QdBGeUmyuGqwpwOUBUtP5rwsrLdllIRohbh/3zQGo iakjJwgWJzEnwU4nOjQY1DbHQE+ujcPCA4IavtSnLV+yoMLdIQ/qj9b/JipTBYKCy3Gp TWuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fF22d/2C+sJktNyAT2q4zyofKn0DGrffVdGHAaWKWOg=; b=bPnLRK/58oQnV1mHrFCOChu8WDiZow0zWYVC9BZUVPSpRhemZ2EUzQ84sOX7h5ndS0 DE4bPKDZkHvt6zpVPJ51jwERjwaXSNST0/PeMSCLDHiAy8rp5SpWvtyWUeG+gMaZ4xr9 af4wMkAgD4o6F3K+2ZDvMo8CBGILgxLsPJ0Nk+lYM31eHNjwBSh5XZiLGXub5x8kNz3S WYy29mybZuKM2fKnfBo2NtUKgXdrMZX/lXKmfhHqu//naqEdJKuSeeM53LWNc7Xa9jl8 qEKWZO7K0EUBXerEQi6gNmLyseER8PKGOKFtwvcB/u8sDZdGaq1wl+4kM6SeFd583jD0 nc4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Apv01V9L; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd30si2880009ejc.717.2021.09.29.20.14.51; Wed, 29 Sep 2021 20:15:28 -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=@gmail.com header.s=20210112 header.b=Apv01V9L; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347843AbhI3DOt (ORCPT + 99 others); Wed, 29 Sep 2021 23:14:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346735AbhI3DOs (ORCPT ); Wed, 29 Sep 2021 23:14:48 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3DDC06161C; Wed, 29 Sep 2021 20:13:06 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so5527603otq.7; Wed, 29 Sep 2021 20:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fF22d/2C+sJktNyAT2q4zyofKn0DGrffVdGHAaWKWOg=; b=Apv01V9LNBTGzVnm3+Ksvb9fv6yjUNPC+f2u6aOwfptJvMSncgdrCooZi6u6eV0lTf +ifQjcG9e/fduX2+wWjoA6b1BrXdUDtMYW8+/ge/OTBH1aTt2vj//c8BouNJcW/mvwCa kd9I0+YLr3zQYaVzzCoevoTu7g9LTDWwu+2xgfDht5e18z180Z98J3RFNtmfhLhaclPA enL+yu0SvgJKMaJ/mJkqUsiIaKmOjfvFmTmeUuAryS6yZyEWcLI/rpjieun4IAVc6j1N VhYD1kESbL+ggoQ+d6aV2BaSZg3K8RlpZ9Fgp4mha/9ZIxufyqvt7D91XZ0g/5B5u0oR cMdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fF22d/2C+sJktNyAT2q4zyofKn0DGrffVdGHAaWKWOg=; b=Zpoz+71I6V3JMD43MO1K3oTVmb9gRa6MNB8/GPtc238U0MUyUYI7+4dUj3eYTAcQ3I 9E96uB1pJbxZ4l8ZH2PN7Awanf+v8EkqgOj9eTcaPX4oROmNrlViB5k+EiMaWS/DW4Og SzkzqnTDpkcydaCpyIUZEtTzVPCjeZ8WJ0tS4gnCVE/uiOF9WhhezoLFnekxN2IetDE2 XEfh8Q0Ap6hhD4+GIYzSw0us5SET7Kad1wdnRokGAJcv/Scf8/Oz/rp0G0QlUJ6MNC0L dS6nG315yc4Xv/F7okllLVzkXYFnPZBBm43R56P95sxkhsBKTWI3UfiVWhhbC4nryvZR 1kqw== X-Gm-Message-State: AOAM531ihbCFp0if06bCL8XwWLIVHuPAqAeqhf8XuNMuLCsQb15EFx5M QJsbEol+VYsWcHIvVNAkcQLLyEo8rIIeuMwrusk= X-Received: by 2002:a05:6830:9c9:: with SMTP id y9mr3094542ott.6.1632971584913; Wed, 29 Sep 2021 20:13:04 -0700 (PDT) MIME-Version: 1.0 References: <20210928073609.198975-1-zhang.lyra@gmail.com> <20210928113057.GJ4199@sirena.org.uk> <20210929122912.GO4199@sirena.org.uk> In-Reply-To: <20210929122912.GO4199@sirena.org.uk> From: Chunyan Zhang Date: Thu, 30 Sep 2021 11:12:28 +0800 Message-ID: Subject: Re: [PATCH 1/2] regulator: Add Unisoc's SC2730 regulator driver To: Mark Brown Cc: Liam Girdwood , Rob Herring , DTML , Baolin Wang , Orson Zhai , Chunyan Zhang , LKML , Lee Jones Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Lee Jones On Wed, 29 Sept 2021 at 20:30, Mark Brown wrote: > > On Wed, Sep 29, 2021 at 04:20:37PM +0800, Chunyan Zhang wrote: > > On Tue, 28 Sept 2021 at 19:31, Mark Brown wrote: > > > > Since this is a part of a MFD I'd not expect it to have a compatible > > > string? > > > Since we switched to use devm_of_platform_populate() [1] to register > > MFD subdevices, compatible is required, IIUC. > > I'm not sure that's a good fit for these regulators, we don't gain any > extra information from the compatible here. Humm... regulators cannot be probed without compatible for this case, except we have a list of mfd_cells which include compatible and driver name in sc27xx_spi (mfd) driver. On different platforms, sc27xx_spi consists of different sub-devices with different compatible string, to avoid adding mfd_cells to sc27xx_spi driver each time we add a new platform support, we changed to use devm_of_platform_populate() which can automatically register sun-devices listed in devicetree. The above is my understand, please correct me if I'm missing something @Lee Jones Thanks, Chunyan [1] https://lkml.org/lkml/2020/6/19/207