Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp319228pxb; Wed, 25 Aug 2021 04:13:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlSbmGqq/91IE4ovpMBXAN9oNp5f95qvzNXDAcIcKRb1buoA+azwkb4kfE6HL4dJVfid0H X-Received: by 2002:a92:cac8:: with SMTP id m8mr21221881ilq.100.1629889986712; Wed, 25 Aug 2021 04:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629889986; cv=none; d=google.com; s=arc-20160816; b=P7Zmbz/UDdr77KbU5PbXnDFc7+a8M7cBkxquukVAQu6WP0yZeb7wdMX8bvC6KfQ0pR ADglpZZiJwAlOhoHnq6jXa7w3wIgqWIAcOkLqcfafjtvYnjq7zLIGIbSJRYkSOtsLrXm j6J1pTipt4gHtLAoRP2wf76IRe9dnefrOJB1xK/n081w52tarx+FVW+uux9Uc80fZuYx 8LHotgq3zq2CBwFcYWdw4ZLzoU3tkVJxtUWjTpqKRFj9lijeDB5cWU7cCK69UJnZmpCL oaTekcxsu36bVM5GMoXp6YnJGRIoiacEc45Q62QYrl8ksZWHHd52+u3FGjlIlYc506H2 fS9w== 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=xFOdY54x9tfLOrJtRDg5gjIYTWc+65nd7R3WkTlezj0=; b=zephmQx4Oe2AbcabYUGrxkNX52SFagF7Oeejht+rTnvDW9TIp+r24rBUjgt4WZwPVa l6u585aHJBb6oHy5T5yWIj2FL6UgIpyUZ6FCi5ewJs1xdTiFVzhdqCgQoUn2N2uoq+F+ RyAL4dcpogUzF3MclKqbJUCm95XgBu9C2nvjK2YlX64oSNUwcrHv4rKeGNndBc0DxyMB Rfknt7me9OnvWy1xjiL55X50fTh7l+2o13S5uPGTSzTol31Y439B9mlzKzt/rZCG+DMI ayTEKmsAgEVpCbaiBp6Cd2+mfdQ4S3XC6dxUeRlu0JHIohFtVpsqYZZgcosrEZor/JR3 HaTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B4bBmiBx; 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 f12si19658118jav.15.2021.08.25.04.12.55; Wed, 25 Aug 2021 04:13:06 -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=20161025 header.b=B4bBmiBx; 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 S240346AbhHYLLi (ORCPT + 99 others); Wed, 25 Aug 2021 07:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240302AbhHYLLa (ORCPT ); Wed, 25 Aug 2021 07:11:30 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4773AC061757; Wed, 25 Aug 2021 04:10:45 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id h1so10452784pjs.2; Wed, 25 Aug 2021 04:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xFOdY54x9tfLOrJtRDg5gjIYTWc+65nd7R3WkTlezj0=; b=B4bBmiBxo22NxX2ANJgtHy4UFOjAuQc6OnjiVL1myqZ6y+x76ZNoIU9fTmb9Vy3ZOL 3XHMtKA5pEhd9m+0KjtTViPA2dtg9BJvaPBsV46uoOkMsrsyTEPKgerzG0Qxpv+8AvXf eh+o5yD9cHd7CN7GH/L/V49RjlXhf3b1RrNy8G6VcYzfq4oVK4f+FDI5t2XE5MMhb26b o9juwo1J0VA+AZp+KAqBaVl4BlOm0UgBt4YlXgw1aJC3ADluKZknH0UOrbz6/9EAariw EgaIaRmTWe6lu899d9/9L45jC+mx7T8bu55wNbJQGAD10s++MDJex7m4DcQDP5pgDaGC zlcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xFOdY54x9tfLOrJtRDg5gjIYTWc+65nd7R3WkTlezj0=; b=qZSDyyab7kykh6Vek8TZzg3hdo2LKMO+QHuZ+g0k5dYnSTBEONzUxIYyn3qRkRTaif YvR/yPjxhdO49bdu7EgBibJ5GcQJE5Mh5g5PaXuebvtFnZYJPESQfKgMPyq05E7P4gpR HKUxyHSSDNi9xXCDzZFTy/b4ryno0Sm5an01QfBbElW3eV0OoUxZ8squPT/WDfeElaV2 HtfvujILOCMpNb0hqkAaTJhMCX5mOl6Uie0k1aJT93NmGPoZCkvW6+7oV8WwwsgJG7VR UJLJimkoeo3mnokqmcYeJyoqgtbKCsrLWBVZ+eQo86Yz/zFIBHgN6Y9plaiOckAoNrpl +rKw== X-Gm-Message-State: AOAM530Y9UKkUjmp77rgLJPE/WZg21I7MtIDSk3z4Bz2og1DbAC/sD4s E6A+Vq2lADkNTiTQ+WbVJj81LoI5cLoWeNgdyr8= X-Received: by 2002:a17:902:d709:b0:130:6b05:be3e with SMTP id w9-20020a170902d70900b001306b05be3emr25879872ply.21.1629889844760; Wed, 25 Aug 2021 04:10:44 -0700 (PDT) MIME-Version: 1.0 References: <20210824230620.1003828-1-djrscally@gmail.com> <20210824230620.1003828-2-djrscally@gmail.com> <20210825103301.GC5186@sirena.org.uk> In-Reply-To: <20210825103301.GC5186@sirena.org.uk> From: Andy Shevchenko Date: Wed, 25 Aug 2021 14:10:05 +0300 Message-ID: Subject: Re: [RFC PATCH v2 1/3] regulator: core: Add regulator_lookup_list To: Mark Brown Cc: Daniel Scally , Linux Kernel Mailing List , Platform Driver , Liam Girdwood , Hans de Goede , Mark Gross , Maximilian Luz , Kieran Bingham , Laurent Pinchart Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 1:34 PM Mark Brown wrote: > > On Wed, Aug 25, 2021 at 12:06:18AM +0100, Daniel Scally wrote: > > In some situations regulator devices can be enumerated via either > > devicetree or ACPI and bound to regulator drivers but without any > > init data being provided in firmware. This leaves their consumers > > unable to acquire them via regulator_get(). > > > > To fix the issue, add the ability to register a lookup table to a > > list within regulator core, which will allow board files to provide > > init data via matching against the regulator name and device name in > > the same fashion as the gpiod lookup table. > > This is the wrong level to do this I think, this is a generic problem > that affects all kinds of platform data so if we're not going to scatter > DMI quirks throughout the drivers like we currently do then we should > have a way for boards to just store generic platform data for a device > and then have that platform data joined up with the device later. This > could for example also be used by all the laptop audio subsystems which > need DMI quirk tables in drivers for their components to figure out how > they're wired up and avoids the need to go through subsystems adding new > APIs. What you are describing sounds similar to what we have, i.e. fwnode graph. That's how v4l2 describes complex connections between devices in the camera world. But IIRC you don't like this idea to be present with regulators (as per v1 of this series). So, what do you propose then? -- With Best Regards, Andy Shevchenko