Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1011401lqo; Thu, 9 May 2024 01:58:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpe79dWBloqDd86UkvEHzi0K3i1nmKXn/uoE0RvUvoeCCKstd5cgwlMKFIWigeUz8J27zNSGKTwHcaq/yq5l7qlC2dz1weRQSh5SG+4Q== X-Google-Smtp-Source: AGHT+IFYhv2Fyp9tyzDBx3sm+o0ejL9goZA2xMFdVyNvu1/Mv1oKjlW2/Wb1ITepwfP9jfHMB1h/ X-Received: by 2002:a05:620a:4101:b0:790:a8ca:c69d with SMTP id af79cd13be357-792b27c1144mr613459985a.33.1715245087637; Thu, 09 May 2024 01:58:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715245087; cv=pass; d=google.com; s=arc-20160816; b=NugRiBB5xLdamoOP0wVkLz7AwHWZdxviF67umXWHsIxIoqaXcRBnmz1WcoeggzY1Xq vN2Nuy8gqI41z3huH8UuwV4Tcclcwe/CexmIOOgDTI2uSkhxTf0x8KNPJ52nSZhHHwpd efrFQfFtQ2DTczvzV1n0VewIRUvECGXYfsKl2yvGAYyek1xxWXuHArpcjrmtMHGyKYI1 DycUq2AwKO2/XIIepEblB4C0gpcogh3Q1d7b5CROUQGKqZwzStWoVhuxvDUft9PdXhIL AGBI6IIWS3dSzTs9NkyxPtnAyDM9nPDlLUQYQ61raGrTn2QTZrM3f5+UmfIOgQKPdNDh dP6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SG/J944Nz+CT0KeLEBXjK+2Z2aixq4+TVwI6UMo6OVg=; fh=ASPtAopF0qQRqn68s0pAcLAHVYVtoLT2wMLG++mDrjc=; b=a98/8t1UZfHlZnqbPomlEtoCutKqYLIlei91WBJAm4blWYxVyIDQ230mLLPG9wdofI rBSUFqkHFRIDRMnBGezp60DF4rcba1bRwu1Q3TOnycRxh/M1keVySGOxCJey6tjeI33v c4gmF7DfaS8DZqIhTuf66vQ2WTmHcYE4epOCXQDXqaYQvCbl4bzdEDiuoyT7rhEr99+2 OZa82YwNXBgsy+IgMvmlAwkiz48ybYAJ0/7Q/rhKHe+9Z+XiKPus8fA3hvtvAwvufqDg xy35PFz6HoCVTqMe6TcmMQESxUk+5/I8xz8SlGnJVQtAGmcgtD2IY+0F1O1xdfhplAU1 WCKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SqR3R/7e"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174313-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d15fsi81259685a.717.2024.05.09.01.58.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 01:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SqR3R/7e"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174313-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174313-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C9571C21191 for ; Thu, 9 May 2024 08:58:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66C4814A4EE; Thu, 9 May 2024 08:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SqR3R/7e" 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 8102714A0B8; Thu, 9 May 2024 08:57:54 +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=1715245074; cv=none; b=iM4wUIfn/9SrjXuQdVHCjaBgu9Bk+cZ5JzoU4v6ZbOyWInc1npH2ikEPpZ9SW+oAe++iHE9MXC2PIXeRIL24kvYrOO2sY98IXz86qqMCd9RjCseMO+dA2xW315IHGwBb5w/JnUMRNb4RGwYmKABMUm2qDf+gIJC/yL1dbQa5JEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715245074; c=relaxed/simple; bh=ERBm4CPFRavg/qmw/LpsN4foKtvtDY+mu84TopSSqb8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oWaceZQcYR1zqnbZ6GwT13n63OL+VfBcvUAece2edybDP3VApZQeCeCgkQ3Zh9JNZyMyyq5IpLrY35UA6W0i0C1mvfF9iV6Xp03FDJT4dtkkzyMC01jW+u0Cb2qTKXMlHQXmMoyJVoLJAtrYzEEl9b3Ne8ufAc4ivLHAlVoQky0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SqR3R/7e; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03848C116B1; Thu, 9 May 2024 08:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715245074; bh=ERBm4CPFRavg/qmw/LpsN4foKtvtDY+mu84TopSSqb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SqR3R/7ekBvH3+juAkmyN3yZdrt+dfsdBGohZapBilU5zsq2ZhSItHTsCUgG9a1Nk Tossf2tdkzJBkqOeOMCHlBHcXnU2MeQZchV/kKI4rRUMFabTeVoQZLZh1tBXpqYw3F R5iThVGGicpxUTSI6V3n85DgErHjrDgl0dLZZWUDewB/On4tDoOE8gNhubEoGzbP3f f4QwdGi5c5OI2c+zk5v+7QOPNLryQ6zFFuA6xQn36BKGkBMzgTlVwT+t9nI9xbgh5w r3KSERbNOtv9jX5pbcXRdT6xnaV/aPLDAlz3ol2DTUsi8augHNwCMeb+bI8dv1avQv ZIw003VLPVdCA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s4zbC-000000000Zt-1IT1; Thu, 09 May 2024 10:57:58 +0200 Date: Thu, 9 May 2024 10:57:58 +0200 From: Johan Hovold To: 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 Subject: Re: [PATCH 12/13] regulator: add pm8008 pmic regulator driver Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-13-johan+linaro@kernel.org> <8d2ea17c-f91e-4e14-a239-e5e999f6ac50@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8d2ea17c-f91e-4e14-a239-e5e999f6ac50@linaro.org> 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. That said, we may use a platform device id table instead of matching on parent compatible if subdrivers are going to be reused by multiple devices. I'll consider that. Johan