Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp375475pxb; Wed, 25 Aug 2021 05:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYRKRu6ZDGUJReLVGgds9qPZkarT83xDYWke/K1LBiY4prMiR1OhtT0jlkpcq7Qu1cM9Ud X-Received: by 2002:a17:907:9853:: with SMTP id jj19mr45994796ejc.69.1629894548603; Wed, 25 Aug 2021 05:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629894548; cv=none; d=google.com; s=arc-20160816; b=d3sjQyp63AKF7V6DEFN9UoQgBAAf1F1h22uqDjBkBWLO7BVOp735hpxU8TsVtvbG22 4ASeRP/gzvYKWfkRnuuObBfk2po0oyhDF6mxvFIV4a3RP54l6uGgCqK3vCNBROSyWfvM duMXx4a7em0l7+DIJ51+7XJ/BRxBks3CO/aBujK9dh0JX5mSnMBpB/O7UWaeiWo5eIFJ Gkr0dGwRLQ02ytjWDyrL+ijZYtCI+pn52FroMoLugWu7nMyun9bHgN8WzVDGimD0OG0p wuwdsUJCGO92CVz1jQVsHq9b6eBBMlCgtteg6ThMwgRu5Cx/TE1T/i/9qHVPQFwxhRfg h8Dg== 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=iNKX6kte1iNRhPEzpqLRtyhooTzsRJn7cqOtbK5zh1o=; b=VNpIyuwBKAp2Rb6mEA8WCRTcwteORoitnN8iHutddYvsi/Eyap+owDeHrQWCagnOVb rMuLg1Uf/LSO1FF1d5kvQEYxGFNByidt0FviQ2k01UI1Sm5lgZPpru4kI6lcEZ1bZdZY vE/ZF08U3Aw/BFs9/Ut5Ffz/S/3jTePqel56u+rYBK+5gPI69xplGsRr7rYWDzxLeRff xNMOWNf7Iesn9AI59NciAYwfUbxapSrS1zRovTePJ040H7Pp0nEGorrR/XMSpQIZxJfa YYrudi/tp0NhHcNzzSgVg2+4IMcRg9UBVu0dHzIK3t+QBLfWqsBau08evQHpvdw8tWX9 zeqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RrHIJG9y; 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 b13si15175706ede.62.2021.08.25.05.28.42; Wed, 25 Aug 2021 05:29:08 -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=RrHIJG9y; 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 S240332AbhHYM2D (ORCPT + 99 others); Wed, 25 Aug 2021 08:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238179AbhHYM2C (ORCPT ); Wed, 25 Aug 2021 08:28:02 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50C42C061757; Wed, 25 Aug 2021 05:27:17 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id mw10-20020a17090b4d0a00b0017b59213831so4087328pjb.0; Wed, 25 Aug 2021 05:27:17 -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=iNKX6kte1iNRhPEzpqLRtyhooTzsRJn7cqOtbK5zh1o=; b=RrHIJG9yv2DEEvyh5gfGeLkFD8bxdojR0zv4glu2F3MiBzpcIyPeeO1G5FLpHQCAod V0ELxjK+cQmjNz4oVzR1NUIjdWle+fR9z8z9vcJZbqbcQyaRB35vrpT3AJtqzbqbajOg UDXq/8OkUn9UD2Fbt7VRwdbXQJFDg083KQEOUvHJzAkjEoaiES7drHAzd/wh53SqK/0g 9iJoDqukGQCOr3Bxx+4w3QatwzBqIT0jboklH0s/q76nTpxB66T58C/v/T4dLjB4ifmM gpY+0dJNgWKIZuw2syQ1GmLq/vo7LnhX2aAc36M9prHFYbjMsh4Q0xpqc5ZxjcyW43JI KQ5A== 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=iNKX6kte1iNRhPEzpqLRtyhooTzsRJn7cqOtbK5zh1o=; b=Mkb41DoiFFl5uKjAt+4N2Qdzc7yWSnv7iI1NxNIiRVmx8MLuhEykN7B8MfrtcZjY+5 NC+H3QZ4gkQUGGnM1TXs5dGHc8Np3AEt7ICRpj9pw72CGwuKqmsF1KVFWGJ45HJqRunD bntoIr5u9tevtNQAX2azZABL2JMP8xaC9+z1TfQT6bXap76H3yylsfWZMGysVQz5GG/K A2gy49csWaC9LUdbif9s7SAQv/7kZMMrL31QKi6JXJHkwaVsqMfAz4qwqm+Q6p4E+VMs cDCn5/VH4K4AejLyxjoTL64gyecA9c/6M2Vhp6kdY01H9LNmy90gAi9W4I1bXfm9iDiy tlZg== X-Gm-Message-State: AOAM531Q47+v0EvvGtmOp//I1VeI52eHjC8iC8ojkqGAqh+SAIEkj57W K4Y52d5Gbfp+zf7N4a0CKJ1KRXBP2Y43A8o0RR0= X-Received: by 2002:a17:902:ced0:b029:12d:4ce1:ce3a with SMTP id d16-20020a170902ced0b029012d4ce1ce3amr37854408plg.0.1629894436695; Wed, 25 Aug 2021 05:27:16 -0700 (PDT) MIME-Version: 1.0 References: <20210824230620.1003828-1-djrscally@gmail.com> <20210824230620.1003828-2-djrscally@gmail.com> <20210825103301.GC5186@sirena.org.uk> <20210825113013.GD5186@sirena.org.uk> In-Reply-To: <20210825113013.GD5186@sirena.org.uk> From: Andy Shevchenko Date: Wed, 25 Aug 2021 15:26:37 +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 2:30 PM Mark Brown wrote: > On Wed, Aug 25, 2021 at 02:10:05PM +0300, Andy Shevchenko wrote: > > On Wed, Aug 25, 2021 at 1:34 PM Mark Brown wrote: > > > > 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 > > > 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). > > No, what was proposed for regulator was to duplicate all the the DT > binding code in the regulator framework so it parses fwnodes then have > an API for encoding fwnodes from C data structures at runtime. The bit > where the data gets joined up with the devices isn't the problem, it's > the duplication and fragility introduced by encoding everything into > an intermediate representation that has no purpose and passing that > around which is the problem. The whole exercise with swnode is to minimize the driver intrusion and evolving a unified way for (some) of the device properties. V4L2 won't like what you are suggesting exactly because they don't like the idea of spreading the board code over the drivers. In some cases it might even be not so straightforward and easy. Laurent, do I understand correctly the v4l2 expectations? > > So, what do you propose then? > > I propose what I suggested above, providing a way to attach platform > data to firmware provided devices. Don't bother with an intermediate > encoding, just use platform data. Or just put quirks in the drivers > like all the other systems using ACPI for platforms where it's not a > good fit. -- With Best Regards, Andy Shevchenko