Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp993816lqd; Thu, 25 Apr 2024 02:57:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV2GwGVHiMncOn5SlZZ8VU3JN1CkKsIZ7NU/JqY9csuEUtVgEBlcOPTnuOPW6AJXgKiWoanMV1tN/5Bygnl54fx/i4RRLlClHx0oYOjAw== X-Google-Smtp-Source: AGHT+IF2FD0vOv6UOLCw5ejIBM/CpJlTDjTHmTo2vbem4vc8gmOmnDcSVLT7ixD+aGDsT792A04h X-Received: by 2002:a05:6a20:daaa:b0:1aa:5e75:d31f with SMTP id iy42-20020a056a20daaa00b001aa5e75d31fmr6002887pzb.16.1714039032936; Thu, 25 Apr 2024 02:57:12 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jw11-20020a170903278b00b001e2bfcaace2si12334270plb.141.2024.04.25.02.57.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 02:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158314-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=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=nGbQx4yH; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-158314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 DF759B26721 for ; Thu, 25 Apr 2024 09:39:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAD5D84FA2; Thu, 25 Apr 2024 09:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nGbQx4yH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (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 7EBA084D12; Thu, 25 Apr 2024 09:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714037970; cv=none; b=I3W/F4UlM6mYOOJvzAvV2zkOXTnZpTgc0Nq8KMBjAH6PuSgehQP0Sab+/xVXb5IrZBRXkLcD8XM4+PiC60ObjaKOT3QAUptaGR0xTBe3PSXb0pkWmJvk62jG2s7UF7CxSK+3gwvOFgqcbON+rYta9SDKNedFEbDJzEoYmSUjjjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714037970; c=relaxed/simple; bh=Qb3feMqyrxMO7slwFnpw9BneoXU35QtdGm80mHnaeT8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eN3+dCgkeyW6tWmccWoPr1eTZl/1pkRKS8LCZfd6T5GGQ4psqYDGIy9tg82HxOi1qzkZfSf3B/G9/BlDxya+2hOO//2qAavgu9arWC2nQeUBZFZwPZpK+63bP/BNc9g644F+I7/ixGDFGB7uUDdi4rw1bJxtSnCkDB+ARrxlzho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=nGbQx4yH; arc=none smtp.client-ip=192.198.163.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714037969; x=1745573969; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Qb3feMqyrxMO7slwFnpw9BneoXU35QtdGm80mHnaeT8=; b=nGbQx4yHWf728dfvjY9Ll+MahJu3nfbPFaZczFEPvfPS8MECseFJK0BG 8yiV57LheItUfaJexCpyBwi+Yap7lVBrhMLFT/XVpNuoMVDQx4FRDHPj8 2rrjPBcVqPZYIPgfkTWTZnFKNRV8TbBhnOs/KDhGZKspS1Ub47FWyLxOj /4d/hzv3cKwzI+ZmP0Pn4QGow1YPpC4hVA0huLNzX7wcAJe37lmJmGTY2 TCQWrtkFz/9kbmCnFzLSzSpM1G73bkQd8F6ATckMqiqVthKOATH/QBwUe bw+1D2/OjKx4GhAkAfHTEVJ01Xa7+Yqtc0960H5M/Ioib6Y7txSYGinUl w==; X-CSE-ConnectionGUID: m3zWgUqgQfKQ9Pz5cJmz6Q== X-CSE-MsgGUID: YM19h1GIR7mdOjBrBT0FoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="13496808" X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="13496808" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:39:28 -0700 X-CSE-ConnectionGUID: OgANpoOISYC+ySNvnDapjA== X-CSE-MsgGUID: Q2oq5WXaRAq/QuxnGkZeFw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,228,1708416000"; d="scan'208";a="29474489" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 02:39:23 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rzvZY-00000000wyF-2W3w; Thu, 25 Apr 2024 12:39:20 +0300 Date: Thu, 25 Apr 2024 12:39:20 +0300 From: Andy Shevchenko To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Jarkko Nikula , Mika Westerberg , Jan Dabros , Andi Shyti , Lee Jones , Jiawen Wu , Mengyuan Lou , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Andrew Lunn , Duanqiang Wen , "open list:SYNOPSYS DESIGNWARE I2C DRIVER" , "open list:WANGXUN ETHERNET DRIVER" Subject: Re: [PATCH v2 1/4] i2c: designware: Create shared header hosting driver name Message-ID: References: <20240425002642.2053657-1-florian.fainelli@broadcom.com> <20240425002642.2053657-2-florian.fainelli@broadcom.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240425002642.2053657-2-florian.fainelli@broadcom.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Apr 24, 2024 at 05:26:39PM -0700, Florian Fainelli wrote: > We have a number of drivers that reference the string "i2c_designware" > towards two goals: > > - ensure their device gets bound to the i2c_designware platform_driver > - create a clock lookup reference that matches the i2c_designware > instance number for the i2c-designware-platdrv.c driver to be able to > lookup the input reference clock > > Since this string is copied in a bunch of different places and since it > is possible to get this named wrong (see [1] and [2]) with unintended > consequences, create a header file that hosts that define for other > drivers to use and all agree on the correct name to use. > [1]: > https://lore.kernel.org/all/20240422084109.3201-1-duanqiangwen@net-swift.com/ > [2]: > https://lore.kernel.org/all/20240422084109.3201-2-duanqiangwen@net-swift.com/ Make them tags. Link: URL#1 [1] Link: URL#2 [2] > Signed-off-by: Florian Fainelli > +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include Please, make it a separate group after linux/* and before "xxx" below. > #include > #include > #include .. > module_pci_driver(dw_i2c_driver); > > /* Work with hotplug and coldplug */ > -MODULE_ALIAS("i2c_designware-pci"); > +MODULE_ALIAS(I2C_DESIGNWARE_NAME "-pci"); As Jarkko said, please get rid of this. You may take my patch from here: https://lore.kernel.org/linux-i2c/20231207141653.2785124-9-andriy.shevchenko@linux.intel.com/ and incorporate in this series. .. > #include > #include > #include > +#include As per above. > #include > #include > #include .. > /* Work with hotplug and coldplug */ > -MODULE_ALIAS("platform:i2c_designware"); > +MODULE_ALIAS("platform:" I2C_DESIGNWARE_NAME); See above. .. > +/* This is the i2c-designware-platdrv.c platform driver name. This name is used > + * to bind the device to the driver, as well as by the driver itself to request > + * the input reference clock > + */ /* * Use correct multi-line comment style. This * is not the net subsystem, we use traditional style. */ -- With Best Regards, Andy Shevchenko