Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp837558lqd; Wed, 24 Apr 2024 20:16:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6VblUF+LONXGmu95wdSko3e8npM9p1vuF2pVtr8yLDjh6LwQCAx+Fq3MLUvxe+cJLud5OSFiCZCCv9AdRwx1CrhGQU+j0qqZAIOmo0A== X-Google-Smtp-Source: AGHT+IE2zEurPC84/8OOQtpShq0omVM+B+e+rX9Z+k+zvZjwgSzqSthBTOtr78kbgQqUDqNxLuk5 X-Received: by 2002:a50:cd8b:0:b0:56e:2daf:1edf with SMTP id p11-20020a50cd8b000000b0056e2daf1edfmr1344807edi.21.1714015010340; Wed, 24 Apr 2024 20:16:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714015010; cv=pass; d=google.com; s=arc-20160816; b=Jpq4LsgE0FGH7fH5VAi1iun7jeIhoBCFloQ9wzutHtgStLlqqyxm9m/nnprn46OJQb bzmHZFK2oh7ojzX8W4XZb912rQlleDZ8qtQNOibCnwdO88hPMjDqt3mYXQKmKCyK4rPW CQviE+qNUCwrmtPCvROF8bhGdvhSMEVEygwIcHgYaN5pytF5M1OOfpry3WmOih0sxam6 b0bOKb83EKrFVO7IdtXNUpVdWMApffghChwSVVU3KBA0E/jAzHuLyb3rF3ZzCzY+OxPp NqAfm3jlu2m2svvacs8z6MeqU/dcTWkoipOLkM9IQA9pt7tk30msnCHXW4/NKvwFkJkP DQpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=FJGIs0oDmn96n1q+3CPP4tklL/lDvKShi56aDIfuK4E=; fh=cpD+ehYTg5Kkp9rm1NbzIZqwMaDwDybTA/27fbyX18M=; b=yl1+xZrfTqLF/X4CP+I6jwYhBkPer5D/QhVdLOfe7ktaEzFAcKyJ5LpF0Ud4okMB4V opLc5rbw/xUp2zfyRIKTFrKgWTcgtyMVgEZz6EFs6Nu914Ad6jd7HCWgPJnvM0Z6NZBe f/iJoBBl6zRIBO/JAb54R5SD8HopTYODAZWhv6yLSyjlGGkrpaTTjy9GFCB3cB+j0Oxj K8fdSP684DPPQItFeh16MrGOWeUkqWEaALOdkszhDrG42JhKqoZCmkesUU0TOfF1QyN9 K6k98xikL7UwSN5WWNL8se+93QL4NGVoGgSdFC/wQWP4Zm8XIsf17Z40Lrc2SRNx+ybf txdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=OyS2bB6v; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-157880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k18-20020aa7c392000000b005722ff218bfsi158887edq.419.2024.04.24.20.16.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 20:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=OyS2bB6v; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-157880-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.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 am.mirrors.kernel.org (Postfix) with ESMTPS id BA2831F22E9C for ; Thu, 25 Apr 2024 00:27:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FE651C32; Thu, 25 Apr 2024 00:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="OyS2bB6v" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.209]) (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 01E9C80C; Thu, 25 Apr 2024 00:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.209 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714004812; cv=none; b=dNoGujq+BM+tdgMFlLUARWVI+HxL8hLFRz2iClIyj3pGe5eWrs5UgsRt2yO1RVh25PuISkxQ2tPggALCq4a2cqA+oWOE10c85+5c+GsD7MWqS2/yDgm0WCku+HobnL8SoKNCBdACTpUgsmDJ9S9E1L55o7n9AYjEdoMdnL6PHyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714004812; c=relaxed/simple; bh=HaoBt4MFIs7rbpfYTrZqabeZi67RiKEBJZpjORx5boU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JoLOJomGEA+TSdrMk9o+x8WLMo2tHb7emA/HAdiq91o9QaSOhciaP5j0gzKFKZz9mWyIwRGxa6q0BB+edj8izBYi0u1IHhqDJeBOebnl4t/nbAYLXyaIH6rJUBKUWDjlFsN3azXy3r7+KBJ1A4BLMSXglhL1fCjd9meoqiaGOvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=OyS2bB6v; arc=none smtp.client-ip=192.19.144.209 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 73625C000C69; Wed, 24 Apr 2024 17:26:44 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 73625C000C69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1714004804; bh=HaoBt4MFIs7rbpfYTrZqabeZi67RiKEBJZpjORx5boU=; h=From:To:Cc:Subject:Date:From; b=OyS2bB6vg2HUhY6PRyT79pN/UZlr0BgM1GlLS13HMVzc464bjkWvQCKkN1FQZkZpD mZV11MHPOVHTuVBtNtIpjgTWSKz3JFHJjHChAas8yJYj6mJJkVH9JmemPJ9b4pZMU8 L5tuzz5C9sk9BEAqaQRaIV/PMSX1kyBZuj553cLM= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 7AD5118041CAC4; Wed, 24 Apr 2024 17:26:42 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Jarkko Nikula , 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 , linux-i2c@vger.kernel.org (open list:SYNOPSYS DESIGNWARE I2C DRIVER), netdev@vger.kernel.org (open list:WANGXUN ETHERNET DRIVER) Subject: [PATCH v2 0/4] Define i2c_designware in a header file Date: Wed, 24 Apr 2024 17:26:38 -0700 Message-Id: <20240425002642.2053657-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.34.1