From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B81DE772A8 for ; Thu, 5 Oct 2023 16:06:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239282AbjJEQGL (ORCPT ); Thu, 5 Oct 2023 12:06:11 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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