Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp543244pxb; Wed, 25 Aug 2021 09:05:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF4j8lx7bpnDSgIhBD/3eOm6AKAuEMd6Go6xCq1V2+GwNG/a1U3OciBsYBTFKBxTFghimF X-Received: by 2002:a17:906:c416:: with SMTP id u22mr781029ejz.543.1629907524302; Wed, 25 Aug 2021 09:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629907524; cv=none; d=google.com; s=arc-20160816; b=jqsDMg/AkZFXYhL3NwjlR2eGdR/5ZgOrE8GiHn2MZeaesAdeVUaoMYon729z39qWjp lssfRph7HB2iwpHhb3HO8F5nmt0mUtN54yBHuuiRtbYWhyLAZ85JZch5WW/xi/fDR7/8 A4+9I+bjrhwPYmFpTdv64DdkeZNH9l4/jyInc0cVeyhbuiC+g+GVGbIsplTEGftIkNfF ajswndJb6TueAwdYmJAu1FdqQVZTGH1IGM5klKbNuWau6vtJEkU8t3XUT5gCj+Bd7ijr p1+nIEgpDrKjppYZe9msgfDGSGX9bSWMAoG6cR7YcP+zfhMPakAhRImuabp0fRkgQYSP BpDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g6AncXPD+u3flQ4TbMrfuNC+uXFtw0gjwaguBk+T6VM=; b=MpDKfmUFCyVWpCLCfzBuZo3O7zDakFEa1wpEzUz7mAXiRZRAZ1CzfbU0eyozG7GEt+ QkZj9UBdsSGwRYWRfDPFZuUgHmKhMIkg/yo9XG8aKTHDpCcB2jnmSxxVmWu54whkCtMQ w2hXYn5ZBTNRmodEFEHfqJH9jLDR6FVNLkqA7a13TA97GklBVGufIq9j+iLZHt0Lw+QL qo/wfeac3nFLCgwHHrADNl5bRiv8i7kRKL5sTwvv32ZQOGlS/nleFf8j5/xm/Qtnf6k2 gYsDqEsI5xo95z7yZq0ZadHSbqoh80SStsZvKTouB0PymK+BsJEDjocKLMNj+EbTeasd ES3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HpLVDgUy; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bn3si206886ejb.458.2021.08.25.09.04.57; Wed, 25 Aug 2021 09:05:24 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=HpLVDgUy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240971AbhHYPne (ORCPT + 99 others); Wed, 25 Aug 2021 11:43:34 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:42458 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241121AbhHYPna (ORCPT ); Wed, 25 Aug 2021 11:43:30 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6B18424F; Wed, 25 Aug 2021 17:42:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1629906162; bh=z+pGs7ptzS2pWN5a//5s422Ig5ykca/VKKLgcOkqcck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HpLVDgUyv9p+Lvjvv4W3jq+s+YF5NoVGTMRTEAFR8Og9jXeyuVgvon699aTEJaokF K2ymO/VhXZYP0OPhh/UBw06ZdbF1S9lIeQ9tVvRbVqyjnOZVeY5zirFMySSE2/XiVq KqiF5WvtuLk5k3lzpgciLmUimBzgzS8tBKOg6RME= Date: Wed, 25 Aug 2021 18:42:30 +0300 From: Laurent Pinchart To: Mark Brown Cc: Hans de Goede , Daniel Scally , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Liam Girdwood , Mark Gross , Maximilian Luz , Kieran Bingham , Sakari Ailus Subject: Re: [RFC PATCH v2 1/3] regulator: core: Add regulator_lookup_list Message-ID: References: <20210824230620.1003828-1-djrscally@gmail.com> <20210824230620.1003828-2-djrscally@gmail.com> <20210825103301.GC5186@sirena.org.uk> <20210825152735.GJ5186@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210825152735.GJ5186@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 04:27:35PM +0100, Mark Brown wrote: > On Wed, Aug 25, 2021 at 04:48:15PM +0200, Hans de Goede wrote: > > > Daniel, I believe that what Mark wants here is something similar to what > > we already do for the 5v boost converter regulator in the TI bq24190 charger > > chip used on some Cherry Trail devices. > > Yeah, that or something like a generalized version of it which lets a > separate quirk file like they seem to have register the data to insert - > I'd be happy enough with the simple thing too given that it's not > visible to anything, or with DMI quirks in the regulator driver too for > that matter if it's just one or two platforms but there do seem to be > rather a lot of these platforms which need quirks. Let's also remember that we have to handle not just regulators, but also GPIOs and clocks. And I'm pretty sure there will be more. We could have a mechanism specific to the tps68470 driver to pass platform data from the board file to the driver, and replicate that mechanism in different drivers (for other regulators, clocks and GPIOs), but I really would like to avoid splitting the DMI-conditioned platform data in those drivers directly. I'd like to store all the init data for a given platform in a single "board" file. -- Regards, Laurent Pinchart