Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1100492lqd; Thu, 25 Apr 2024 06:12:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6v4BDgiV0YTspDT9GuD2vC+7v4Iu+tAYQVdRD9m48C6B75R/Y6AFCM1yLu5wc8NtnnFuY+MkFw7LNljTWNiL06Bv8QdSWEYW6ucYm8A== X-Google-Smtp-Source: AGHT+IEYYVKFEvCHWPsI8avj7yPsKCtrzCMqs/4Ud+y7sCLTPjPG1L6/L2k+aUPc+tb0K1KvTqiy X-Received: by 2002:a05:6a21:3991:b0:1a7:c67:82ff with SMTP id ad17-20020a056a21399100b001a70c6782ffmr7419320pzc.13.1714050736731; Thu, 25 Apr 2024 06:12:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714050736; cv=pass; d=google.com; s=arc-20160816; b=e/AEKxCC5LKB74EnbWftBIkU+tEe6ElohzshxSjOJaXNINnDVxuou3gVj+D9HFRWxV dLbo72iyjRox5nc1SLMxY7LUdmmSyadYk/wuLwzjOXvUwMD0jfQIvuFClgMNxoTddQW5 VIuu/KXyujU8lVNdE4Ouuuf6xbeACRT476XbHFov5SzZtlc7v7AQWNEqJCes3bHuU1t7 xGljocXkH33O+lPg0d5H4y+f9PvPCcsB9pD3gHaF6APFB3IYWyD9/dHq0YHLKYyhkccw WNVMHluFhTkYvIN2LutL6KXt4XV7oLgsjZzmJQxW9SMmIUVKGfzxb+XBj3UomM0MMHhP o29Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uSx16J6DazZzDM1v5x2kl84ZCk4Ia9ON4jSCiVvVzwg=; fh=h6kmVjLMd6NIruRtlb4m64NUv3M+UflKdlvoufpUbEI=; b=k1KAG48m0zMSNao7MTwyQ9UjiajvdqzbD0gTrRjz9oP22N6+CoruOf2SAL0FGSmsRQ osxVbwMPywJkPjnE4Vye9kgH7rvb/hPxKYfAklj3jTw8Vc7FdlDCfzPVV4PZtwS6ynaF mv4Wb+m5HTQincfgIQ0vZWZ/j4WttSeuhcX29Uv1iaZ5RFfLehZxKV4Ie77W4MluuYuP a/A5nejwAI0XlXkg89xv1EvRJ8bU+sWze4ZAFm3GQsPm4FNtGewWcTVh4nrXH1L5bsoD ToToi7I2HiVTJppB5l/g8/DUIypVMyzA+ApJlxibV9Ctot/ax40SD2wtvXadbzzbDFky mWBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JJD6JBgB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e19-20020a635453000000b005cf8b79f90csi9822980pgm.501.2024.04.25.06.12.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:12:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JJD6JBgB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-158571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 61388286AE9 for ; Thu, 25 Apr 2024 13:12:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72D98149C69; Thu, 25 Apr 2024 13:12:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JJD6JBgB" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 A280A149C44; Thu, 25 Apr 2024 13:12:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714050727; cv=none; b=TuKUlgihAE+WCMHYbjN0st0Zo5LCleeS+cZRCeCXp3ZLACTnvEfD75kqt88EUCeUGU1+K0m+QNaR5kex++uwc9wiMh+fv3FqN5P86ko06kwbc/+nXXCALa99WbDPQgDypLVL1J2zwlSbTW0mAWbmd6dIXnv3xBqsEHXV3I6+YZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714050727; c=relaxed/simple; bh=6oZ89fNLVqBFlw2FqXYow9IUd50x0ChIAGq7WZrSWb8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=vAIbOgKkWZSE/NRVExmdIG9ykJqigN10Li3t5qOOM0dNHsEe+g8I8mGOJOilZB1Juv5ulpKXqE2My4iHvoirSseAZT8Awt9dyrky9Oa0dOkGSugDeXD+Y067G/qwLwkSFi2vpb+bz7InsKAV1s9sj2RcUtc+87qI7ZymmhAQ1Ng= 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=JJD6JBgB; arc=none smtp.client-ip=198.175.65.10 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=1714050726; x=1745586726; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=6oZ89fNLVqBFlw2FqXYow9IUd50x0ChIAGq7WZrSWb8=; b=JJD6JBgBGFhGEhO0E2Tbaf5masdI2+xUR1EccyJtiHWcoetP0Jv8Xgh2 BZpwiaSiXkuRt/0KAjeyxESLMUZOv8bt5f1keWElTgqF8qJJyEVuqm7DM 8usw7LKalCq8GG3Vk+nWMeSC8+NWmzetAFFR6z5Lp4sY1L4e+6oye9EVO rmHQCU8qHt53b6x6UT2woqHr9IvQEylVvo1HATeYk4CsCA8WXNyafjtHO rywqBo/8Vfb5PCIMAHNoWagsHTID/S2i3AHJq5FK3gtN2vDQ+nmWfu0AR NIFYgZqGvrVGGWutYBOziQjpoheQrw7+Jl5t/Eo6hsVd4gmYm6n2Ha1Vj w==; X-CSE-ConnectionGUID: qGJhRqLnTmqE67o8RNBtPg== X-CSE-MsgGUID: you8vt16Q4KW4dBFnUJbeg== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="27190441" X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="27190441" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 06:12:04 -0700 X-CSE-ConnectionGUID: gJLLNdAVRh+rRxXktGAXqg== X-CSE-MsgGUID: OlnglW8xS+6HlMR2Clurrg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,229,1708416000"; d="scan'208";a="56010371" Received: from ehlflashnuc2.fi.intel.com (HELO [10.237.72.57]) ([10.237.72.57]) by orviesa002.jf.intel.com with ESMTP; 25 Apr 2024 06:11:59 -0700 Message-ID: <62e58960-f568-459d-8690-0c9c608a4d9f@linux.intel.com> Date: Thu, 25 Apr 2024 16:11:58 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/4] Define i2c_designware in a header file Content-Language: en-US To: Florian Fainelli , linux-kernel@vger.kernel.org Cc: Andy Shevchenko , 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" References: <20240425002642.2053657-1-florian.fainelli@broadcom.com> From: Jarkko Nikula In-Reply-To: <20240425002642.2053657-1-florian.fainelli@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/25/24 3:26 AM, Florian Fainelli wrote: > This patch series depends upon the following two patches being applied: > > https://lore.kernel.org/all/20240422084109.3201-1-duanqiangwen@net-swift.com/ > https://lore.kernel.org/all/20240422084109.3201-2-duanqiangwen@net-swift.com/ > > There is no reason why each driver should have to repeat the > "i2c_designware" string all over the place, because when that happens we > see the reverts like the above being necessary. > > Changes in v2: > > - avoid changing i2c-designware-pcidrv.c more than necessary > - move constant to include/linux/platform_data/i2c-designware.h > - add comments as to how this constant is used and why > > Florian Fainelli (4): > i2c: designware: Create shared header hosting driver name > mfd: intel-lpss: Utilize i2c-designware.h > mfd: intel_quark_i2c_gpio: Utilize i2c-designware.h > net: txgbe: Utilize i2c-designware.h > > MAINTAINERS | 1 + > drivers/i2c/busses/i2c-designware-pcidrv.c | 3 ++- > drivers/i2c/busses/i2c-designware-platdrv.c | 5 +++-- > drivers/mfd/intel-lpss.c | 3 ++- > drivers/mfd/intel_quark_i2c_gpio.c | 5 +++-- > drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c | 7 ++++--- > include/linux/platform_data/i2c-designware.h | 11 +++++++++++ > 7 files changed, 26 insertions(+), 9 deletions(-) > create mode 100644 include/linux/platform_data/i2c-designware.h > I have mixed feeling about this set will it help maintaining and developing new code or do the opposite. Surely misnaming as referenced above can happen but I think it's not too common pattern while having single define header put under include/ feels added burden. Also I personally like explicit strings put into MODULE_ALIAS() since they are easier to grep from sources and modules.alias file when debugging autoloading issues. So change like below makes that debugging one step more labor. -MODULE_ALIAS("platform:i2c_designware"); +MODULE_ALIAS("platform:" I2C_DESIGNWARE_NAME);