Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp403861rdb; Thu, 5 Oct 2023 09:07:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxLE9AlhbapJonG0p6esNAOOf5iw0QN+m2HTOZrQTILJa+DIbL3v7VfEDazJPa70G5vY3E X-Received: by 2002:a17:902:eb4c:b0:1bd:bbc3:c87b with SMTP id i12-20020a170902eb4c00b001bdbbc3c87bmr5079833pli.41.1696522076909; Thu, 05 Oct 2023 09:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522076; cv=none; d=google.com; s=arc-20160816; b=xVoY6+VbHrmH87gpRGSx6BAID+sgrskiVZG1DX8wUHa81hCdlqenokTN8r6xERyND4 9rCSYEjr4CACEwB4E5i5Mhzt753al3k5dYJ9V1LV3vx3F5Fj3d6UCIgJwQ8Veamy/Q0J nBjhawcElsPvT0mmuigZqgWLxWIIBr6Nm3BOakMgpGO+/tS91d+7a1Ktsv6xZmeFeJRp mS0QYGnUjs2OXeDJThAUiIXkdQ2IObZJNm9rjGXKCYwk9qQU9vO0YHHSxXyRPhTFhNnu RABwY2PqTSsk958KHAQNw29SM7N8PncX1nrQWsxIXlqiZoYyArqAl7z4eZ9NOLyP1tSH nojQ== 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=OBDois/Fg6FQ2KCodebLYuwtq0EdhZA9PIS9bB64tuQ=; fh=ESoUtITuKOz7R8JwLCQ/9ksxzjmxkE4Pag9VgZZjcYI=; b=GSEMqQxSdY537vHNxI383B/MZ9sn26fEpS87kSmdWICP0q+S0d5kvVEUV0klc/+kho TUfBPXSwfaITVKl0WB33OZZ4/HZk6UWLg00wmd/MpYMs3btudah5jFmZcZ4zB24+by2i 9i+poD69xP8t01AWpjvoywoPYie6cFZkx9dF2jg3vLn4KW+/LXUPL4/qkWowA3cU5Pnu KNp2VqvoRCkhPuHGwRscDhNgpD5GCkTwk8ghBGn0A+KY4x+AvSF0kWMGhLwjFu+nHljM O/ehaX2pPHjSSGq8LhdvdNyp9tS1Q5VNBV+0da+kiXLoZGoIUALdRIgJGZjzVgt4+Z9q sKKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001c61bd9db5csi1822926plf.317.2023.10.05.09.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:07:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E6FFA875FDA4; Thu, 5 Oct 2023 09:07:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239182AbjJEQGK (ORCPT + 99 others); Thu, 5 Oct 2023 12:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237610AbjJEQEJ (ORCPT ); Thu, 5 Oct 2023 12:04:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D49B3D1E; Thu, 5 Oct 2023 07:28:42 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="449939152" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="449939152" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 01:38:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="842305045" X-IronPort-AV: E=Sophos;i="6.03,202,1694761200"; d="scan'208";a="842305045" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 01:38:41 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qoJsU-00000002ydG-0uwr; Thu, 05 Oct 2023 11:38:38 +0300 Date: Thu, 5 Oct 2023 11:38:37 +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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED, 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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:07:08 -0700 (PDT) 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. -- With Best Regards, Andy Shevchenko