Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1064366lqo; Thu, 9 May 2024 03:53:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmIcJrLKVg9yxqWFU+fxescdS9bSp0Lb1fu7kWSeq4d2fG9Baf1ofkUL4bay/SxiSIWDTr+G6PJAuDxI/JdkIFAmcKkQm1xI0+i5c9yA== X-Google-Smtp-Source: AGHT+IEPdNjaIZHrCeCI3LVr9rPV8qfHO2sCsTK3PN+Y+yDvypVHAVupxICcdBqmRwm4UN87Mhsk X-Received: by 2002:a17:903:1c1:b0:1e8:92:c5e2 with SMTP id d9443c01a7336-1eeb078ff29mr68579065ad.47.1715252020980; Thu, 09 May 2024 03:53:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715252020; cv=pass; d=google.com; s=arc-20160816; b=UG8ikWTQGDqxI9aKApu4NN51VJ18qd0gLm4XgzlX3nmMAU2+IXlSljP48+QFcic/T1 whYcdSeAmh8NNint4jO+8cEGvvUMfRGwwj47375ZoQHDLj887/ztOnpLW9Px7hKUaKwe P32fo8LdrCtTJ5upFuI3RuH4GA0vlBMi3mrTfbVX+4cd9icoIZbC7bf/U6EaVfVcdIYO MIfvmwkRi6C1Me2oXIxAiANmPce29fAnezTKWt1OqvofatxsO6j7agRQBxBfbNj19UGC wnuQuTa0qH/cQMZLQPDvr2SOtKQ5ZizKEULg5uXe8oIUu1rGtQDOf2eLoaK8o2ERWidE X6/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=NwNkH5T9U4YWzolDkcpya/WcPJePKTjEaTzfn+cVick=; fh=4+ce37ErK0R3GOxzwr0ql1iLH2IKAyGPjyCYQP6jsT0=; b=mN9Trv6MprbBH4lPLxSNk6maS/EF2G0IM2s9/oROTLxg2W/QMIdFC8s6J1iRundpz1 iTQWvZ+KBSZZ99yV3y2miM6P9sEw+EAL1QkBkWsS7ttgdp/lIK89gQ8268jwKz8akcXV myPY+JgEPJjbXQEjnw4Z+bfSg/7LN2cKR8iL5hktIB8o5gMRFoScF0SYxzfF/WjeMKQv IJMvFGkbzBpEDdgX0h5L6dGd3XRQuKmrBcEK0sztj/kSNOtTfG1fNvPpYZOeGWsY90oX uxzbAdgPwvDj6rPfVXMHB0SMdZeTOHaC/+GtttaB9OLD4f8Ed7haPOyrSyhZXGIDiVh8 mtSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qwKAcxlH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c133df7si12290205ad.438.2024.05.09.03.53.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 03:53:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qwKAcxlH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174419-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 595EBB2403B for ; Thu, 9 May 2024 10:49:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8F4C13172A; Thu, 9 May 2024 10:48:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qwKAcxlH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1C2012FF71; Thu, 9 May 2024 10:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715251707; cv=none; b=QKc+qawIe1uN1IQJ0a6OdCUDoQWCEns4ih9bQQJF1PXuuT2yuMqyVDegOO/qq9r/G1Pvusxy7oSuLL7M7DMpXw+8+lpnz1+txrY6iH7Qgc//fbzDtY9owFLqxdm6Y6WHwdsmp6ekBHZ1FCtSViKuFxNQmGr/YgrNkqaPDNfl0Xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715251707; c=relaxed/simple; bh=y9BHFyK/ML2lMI5w8QLLphhlab8lE52Ydqr/Auxre7c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=S5FkEJaXZfpWmO/y4UjKoeTmaYjOa0iUidyZ5xHFofoLN/FENa250QWKJFwfyHQXCLj8bw7HHzlxFTeqFRdbg5t10Mgt2K1/PynMqwejkj+LHoS5BX/4JYd7I5ifsNydkYBXkoMBSjeKefw5/wGaoI0owsr/paDdV6Mt+bDYJNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qwKAcxlH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45973C3277B; Thu, 9 May 2024 10:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715251706; bh=y9BHFyK/ML2lMI5w8QLLphhlab8lE52Ydqr/Auxre7c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qwKAcxlH8hFPFn5lUDJ0kQB/eObXbAecSFm1UhSI6V9gddtHWf8Pi2gdOzUr3z7S5 A81ectfX2RpfL4MssSlu/3K4dR1PdaQSr+ggBQQlpihjNDeqbp9rCyHubPFVhdvD99 A6PkauSQ364L5+3ZtnrkIkT2ebNm6mxT/djjQ8b8g3bIDaYELJ9T4HiyBEIl3uhhdH gGmNrutRWQe19SCad/Y7csxDgHSty5NyWm0sVXwwBdWxAh41hLQ/UrlqzJmvlXWfAV quUAb1HauMUOxsfeW10YRg9NJmynv5WHp4dKK7TebyBxpWX95GARpy5LGel9Z2OPiJ LHJoRoKajggsw== Message-ID: <1df61b7c-29c4-4537-a0b6-75785606eeae@kernel.org> Date: Thu, 9 May 2024 12:48:18 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/13] regulator: add pm8008 pmic regulator driver To: Johan Hovold , Krzysztof Kozlowski Cc: Andy Shevchenko , Krzysztof Kozlowski , Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-13-johan+linaro@kernel.org> <8d2ea17c-f91e-4e14-a239-e5e999f6ac50@linaro.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBY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bqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 09/05/2024 10:57, Johan Hovold wrote: > On Tue, May 07, 2024 at 08:14:43PM +0200, Krzysztof Kozlowski wrote: >> On 07/05/2024 19:22, Andy Shevchenko wrote: >>> On Tue, May 7, 2024 at 6:44 PM Johan Hovold wrote: >>>> On Mon, May 06, 2024 at 10:09:50PM +0300, Andy Shevchenko wrote: >>>>> Mon, May 06, 2024 at 05:08:29PM +0200, Johan Hovold kirjoitti: > >>>>>> +MODULE_ALIAS("platform:qcom-pm8008-regulator"); >>>>> >>>>> Use ID table instead. >>>> >>>> No, the driver is not using an id-table for matching so the alias is >>>> needed for module auto-loading. >>> >>> Then create one. Added Krzysztof for that. (He is working on dropping >>> MODULE_ALIAS() in cases like this one) >> >> Yeah, please use ID table, since this is a driver (unless I missed >> something). Module alias does not scale, leads to stale and duplicated >> entries, so should not be used as substitute of ID table. Alias is >> suitable for different cases. > > There's no scalability issue here. If the driver uses driver name > matching then there will always be exactly one alias needed. And then we add one more ID with driver data and how does it scale? There is a way to make drivers uniform, standard and easy to read. Why doing some other way? What is the benefit of the alias comparing to regular module ID table? Best regards, Krzysztof