Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp356217rdb; Thu, 5 Oct 2023 07:58:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBrGYLIAoaTkBvkYvcJHykQJ7Kq142JnLxC5G1FpB1OdkFXieBCwAPKX5eRut7jpD8Dfro X-Received: by 2002:a17:902:e809:b0:1c7:1fbc:ba02 with SMTP id u9-20020a170902e80900b001c71fbcba02mr5960556plg.47.1696517882985; Thu, 05 Oct 2023 07:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696517882; cv=none; d=google.com; s=arc-20160816; b=JsMTQkaJ8F3pI7kVQGGJc3q32LYZV6yo/Scj8rlRx5DiakimgZxc6TU0KOYvkwD5Tg kA901tyT0RVHOFzSFJSNGA90yJM4YI/zCurbOq/i1A8eFRcX0Ef2gF+1XKFcqvFvfgP/ woA13xa08w9+QCGDi8Nam4qgrlGjYreor17jMKsFvtzr+zxxBfESV/Uh8VZ5Nhgfvxe5 PGIyqD4ONm14YZE1nKAf3dIonju7kFzFZ976FnVpxY6jlCrglIlTc6Xd911J4tqilF0w NS2/X4xqcUrlPEJkygs3AUuyWT00UKVlFYDzUtGXH43x8m0SORpAvXusJ05v0fo+MvqI BSEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=l/RgmQurkgXkoOZgWi5aFofGO/L/d82DYYErNDXot7s=; fh=ESoUtITuKOz7R8JwLCQ/9ksxzjmxkE4Pag9VgZZjcYI=; b=eqo4cOpoHmw775Y6QqBlT/PjF9/sUHMvmz2xvzMrgzPOrAzPI0cpe7aPHQDT6A3H10 C9rC/j9SQUHLKlx4BGPpqTgSZuFWwqh+rcWVZH8eFrQhLdG6Qu7JBRshziqyqYLGxMZ5 a/ACGt2V1ZXDJ68F1Y6gD668ZrC2HZs/yy+xpl6OMyKJ1EIrpxgb9ouTqQU9+RVVphfD AKv3W0pMfS+edaL+7voExuP8wZJwQUeODZAgsHBqNK/ecZCKxGV87tMcu0SBV9pEarEa Uu3uSjLbu0OdvEOWrWkPy+kbbQRVElf7pgzi5qKk2x0K3gX5OBlHxIh/mMdB+iTgxfCt F4Wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id kz14-20020a170902f9ce00b001bd9c43c896si1499546plb.287.2023.10.05.07.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:58:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1805B82F34B1; Thu, 5 Oct 2023 07:58:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239153AbjJEOri (ORCPT + 99 others); Thu, 5 Oct 2023 10:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231547AbjJEOoJ (ORCPT ); Thu, 5 Oct 2023 10:44:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5CE313B70; Thu, 5 Oct 2023 07:21:41 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="363727183" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="363727183" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 01:42:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="701588130" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="701588130" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 01:42:37 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qoJwI-00000002yg3-2o0k; Thu, 05 Oct 2023 11:42:34 +0300 Date: Thu, 5 Oct 2023 11:42:34 +0300 From: Andy Shevchenko To: Krzysztof Kozlowski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Mika Westerberg , Linus Walleij , Takashi Iwai Subject: Re: [PATCH v1 1/1] pinctrl: denverton: Enable platform device in the absence of ACPI enumeration Message-ID: References: <20230926190818.931951-1-andriy.shevchenko@linux.intel.com> <76d1e643-9b81-4c23-8f46-73fe59913600@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:58:02 -0700 (PDT) On Thu, Oct 05, 2023 at 11:38:38AM +0300, Andy Shevchenko wrote: > On Thu, Oct 05, 2023 at 09:53:51AM +0200, Krzysztof Kozlowski wrote: > > On 04/10/2023 21:42, Andy Shevchenko wrote: > > > On Wed, Oct 4, 2023 at 4:20 PM Krzysztof Kozlowski wrote: > > >> On 04/10/2023 15:09, Andy Shevchenko wrote: > > >>> On Wed, Oct 4, 2023 at 11:18 AM Krzysztof Kozlowski wrote: > > >>>> On 26/09/2023 21:08, Andy Shevchenko wrote: ... > > >>>>> +MODULE_ALIAS("platform:denverton-pinctrl"); > > >>>> > > >>>> Why do you need the alias? It's the same as ID table. You most likely > > >>>> miss MODULE_DEVICE_TABLE() or your table is just wrong. > > >>> > > >>> This is cargo cult from pinctrl-broxton.c. If we want to fix, we need > > >>> to fix both. > > >>> Care to send patches? > > >> > > >> I don't understand how some other file affects this. Why do you exactly > > >> need module alias here? Which use-case does not work without it (after > > >> adding proper MODULE_DEVICE_TABLE())? > > > > > > We try to keep these drivers uniform. So, if something should be done > > > differently, it should be done for all affected drivers. > > > Since patch is applied, now we have two drivers to improve. > > > > Awesome reason. So if you add accidentally bug to one driver, it should > > be copied to other file as well. > > I'm not sure where it's a bug, it works. The problem is implementation > and I believe Mika and certainly me agree with your points that > MODULE_DEVICE_TABLE() is a right way to go. The initial implementation was done by 0c3013bbe1d8 ("pinctrl/broxton: enable platform device in the absence of ACPI enumeration"). It was ACKed by the driver maintainer as this one. But again, we agree that your way is better. -- With Best Regards, Andy Shevchenko