Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1125229lqp; Fri, 22 Mar 2024 06:26:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULdAjoe0e75Pm49X7HhvFxjWiR+txuBlniReoDz+8PmbubpCvwDXeeTXCkEkKbE9Ne29LIHSsod+H2A1/SpfGuYmsJ30t9L4XstTSLWQ== X-Google-Smtp-Source: AGHT+IF/qJiwiCLY8VwFjB34mxojtoF+AIJFT8SUhD3aXOa2gXjwSHLVyfu2Lw5Q7ionuQJYjJTZ X-Received: by 2002:a05:6358:6583:b0:17e:4cad:a11b with SMTP id x3-20020a056358658300b0017e4cada11bmr2663514rwh.19.1711114004963; Fri, 22 Mar 2024 06:26:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114004; cv=pass; d=google.com; s=arc-20160816; b=cnuGDfDMx12BUR5sgonyK+GtRgGM0WbCDv/tafvfXAOhK0XgcHwhdQ7MM74wyTtrYK HhuV35z6Fb3isYchl65hdfl1wcX5U1RyEBFxgqCQ+gm4EurdVkCacc3/yebm72lUcTmz rjfstGJZNxR2vwoeqdZPFNZ47QG39YqIwz/20kndTOjYtbOnESPk9lIKa+Cyy0OD14qf 3bSRhMVHUaD77LW5fJ2iEa7P5HMpwP+cYsxn4t+3OX1HOcPNK1jhyj5LrEqgLqr9Mj/i vPag2TSoGZEXAd99tEtfbAT5kqP968QV+AXoUF1F3ok9onSGPpKyLeVJBOsVlgzDVhGC eKcA== 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; bh=bOf4HkOrzle/FyJG8mZHPOABnHhQv51u3vi0fpeyQ5Q=; fh=GliBa5V6q08i72PEbtVdzPnPxifFiQ7ldpdjRVxKExk=; b=JtJuXWIHIdPxK1ft7a4uzXyun6MoFEJ6oQnvdkicNW6HUiiS4BGfGId8vclW3rMNMt xLF4i8/7WuVmSsevcCCBVJdm9YZ792x+G4g7+vzkaSYCG+CGGypcP+nU1CtjTXvarT8V vi3So6YPbHLRgqb4jLwivRiEWXYtanNb5YXJj90uGfNkOc+4Vvk1ckXGm4ndOqXww5MG hyZn6xMPwQFvWZU4MDUaoJVHMsPpZlK74dvAKXlOsTB+Wn3xVqeQtYHapCYoYglnR3YL K8D+ox50rFW2A2Yvfq1wSZao+Eb9qA7RmYqccjA1x1WZ4OcfbuNHrfby0Fc7tm8zX35X gXWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=a6wbfcte; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111478-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p28-20020a634f5c000000b005e83f543dbesi1891962pgl.611.2024.03.22.06.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111478-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=@sang-engineering.com header.s=k1 header.b=a6wbfcte; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-111478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111478-linux.lists.archive=gmail.com@vger.kernel.org" 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 928AF281643 for ; Fri, 22 Mar 2024 13:26:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 067D945C0C; Fri, 22 Mar 2024 13:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="a6wbfcte" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 5E70046421 for ; Fri, 22 Mar 2024 13:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113993; cv=none; b=C62aHbIizOGwzuFAzDdNVoLvXPDEJUs9I4HYBaI46HEeDmNFfdnFWxRWVKHOxuqQZuQgiiOlMTTAlGhkj1bcGiaOglUCkBLqwuWPRpIBkEXVnc/kv+AprhvqfE6yWfBU+1R2JzHd18AV+SC9rwZS+nbV9TdaDCQ2TUn+xTybJis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113993; c=relaxed/simple; bh=dkHEK5fRN4ISlL8OBFqYbKAYt0DED3N3Yfj6qrUQoVQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dkRTduvZpsx5JDyEjds+6K/jXgHHl4A/m2QiN4OGjFrR4e5XZojITBg61UEPLgP+0COKhfx04SVxxWmAzFf28ylHBZ1SpC9zG//SUueBzTfgCTaog4Zdm5uzTOAckVKnNjG7e0pOoquOtWb5dmb4LRJwMANXKLszR1zTtYO3cCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=a6wbfcte; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=bOf4HkOrzle/Fy JG8mZHPOABnHhQv51u3vi0fpeyQ5Q=; b=a6wbfcte3+iXXCHibc+JrZzTin6dRv R/KSB8hp01+LD2eYy9sHlg2rk631UWOsn12Y+n+kLseFY+llqMyTkAsXsa6SiRwh MWm4LoN2zRJucl7AcBuXiztmbKc/EIBM7mZDtMCuyBPr9HgJZmeZ/QrbcrtglWHS XN+P7gn2zQD/Lze6LmCDGEGHL9G2ujuVTWCU21W3oIUiV/btIhr/tqNO2UzK6c7u GiqtIoKlD88U2nMoYFxi6SLiCaIBiXxhRRTMJxL3pZ9O0lWnbgR868o+Ty13YBXb C70pYVUa6DcFGd/ysTyvqG2U7fdTnfOcmCXLvQLbrSiCtbkj8qjVIAVA== Received: (qmail 3869988 invoked from network); 22 Mar 2024 14:26:20 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 22 Mar 2024 14:26:20 +0100 X-UD-Smtp-Session: l3s3148p1@LoLvxD8UMpNehhtF From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , asahi@lists.linux.dev, chrome-platform@lists.linux.dev, imx@lists.linux.dev, linux-actions@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, openbmc@lists.ozlabs.org, virtualization@lists.linux.dev Subject: [PATCH 00/64] i2c: reword i2c_algorithm according to newest specification Date: Fri, 22 Mar 2024 14:24:53 +0100 Message-ID: <20240322132619.6389-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Okay, we need to begin somewhere... Start changing the wording of the I2C main header wrt. the newest I2C v7, SMBus 3.2, I3C specifications and replace "master/slave" with more appropriate terms. This first step renames the members of struct i2c_algorithm. Once all in-tree users are converted, the anonymous union will go away again. All this work will also pave the way for finally seperating the monolithic header into more fine-grained headers like "i2c/clients.h" etc. So, this is not a simple renaming-excercise but also a chance to update the I2C core to recent Linux standards. My motivation is to improve the I2C core API, in general. My motivation is not to clean each and every driver. I think this is impossible because register names based on official documentation will need to stay as they are. But the Linux-internal names should be updated IMO. That being said, I worked on 62 drivers in this series beyond plain renames inside 'struct i2c_algorithm' because the fruits were so low-hanging. Before this series, 112 files in the 'busses/' directory contained 'master' and/or 'slave'. After the series, only 57. Why not? Next step is updating the drivers outside the 'i2c'-folder regarding 'struct i2c_algorithm' so we can remove the anonymous union ASAP. To be able to work on this with minimal dependencies, I'd like to apply this series between -rc1 and -rc2. I hope this will work for you guys. The changes are really minimal. If you are not comfortable with changes to your driver or need more time to review, please NACK the patch and I will drop the patch and/or address the issues separeately. @Andi: are you okay with this approach? It means you'd need to merge -rc2 into your for-next branch. Or rebase if all fails. Speaking of Andi, thanks a lot to him taking care of the controller drivers these days. His work really gives me the freedom to work on I2C core issues again. Also, Renesas deserves a honorable mention here for increased support of my I2C activities. Thank you! If you have comments, hints, etc, please let me know. Happy hacking, Wolfram Wolfram Sang (64): i2c: reword i2c_algorithm according to newest specification i2c: ali15x3: reword according to newest specification i2c: altera: reword according to newest specification i2c: amd-mp2-pci: reword according to newest specification i2c: aspeed: reword according to newest specification i2c: au1550: reword according to newest specification i2c: bcm-iproc: reword according to newest specification i2c: bcm-kona: reword according to newest specification i2c: bcm2835: reword according to newest specification i2c: brcmstb: reword according to newest specification i2c: cadence: reword according to newest specification i2c: cht-wc: reword according to newest specification i2c: cp2615: reword according to newest specification i2c: cpm: reword according to newest specification i2c: davinci: reword according to newest specification i2c: digicolor: reword according to newest specification i2c: dln2: reword according to newest specification i2c: eg20t: reword according to newest specification i2c: emev2: reword according to newest specification i2c: fsi: reword according to newest specification i2c: gpio: reword according to newest specification i2c: highlander: reword according to newest specification i2c: hix5hd2: reword according to newest specification i2c: i801: reword according to newest specification i2c: ibm_iic: reword according to newest specification i2c: imx-lpi2c: reword according to newest specification i2c: iop3xx: reword according to newest specification i2c: isch: reword according to newest specification i2c: ismt: reword according to newest specification i2c: ljca: reword according to newest specification i2c: lpc2k: reword according to newest specification i2c: ls2x: reword according to newest specification i2c: mchp-pci1xxxx: reword according to newest specification i2c: microchip-corei2c: reword according to newest specification i2c: mlxcpld: reword according to newest specification i2c: mpc: reword according to newest specification i2c: mt7621: reword according to newest specification i2c: mv64xxx: reword according to newest specification i2c: octeon-core: reword according to newest specification i2c: owl: reword according to newest specification i2c: piix4: reword according to newest specification i2c: powermac: reword according to newest specification i2c: pxa-pci: reword according to newest specification i2c: qup: reword according to newest specification i2c: rcar: reword according to newest specification i2c: riic: reword according to newest specification i2c: rk3x: reword according to newest specification i2c: sh7760: reword according to newest specification i2c: sh_mobile: reword according to newest specification i2c: sis5595: reword according to newest specification i2c: sis630: reword according to newest specification i2c: sprd: reword according to newest specification i2c: st: reword according to newest specification i2c: stm32f4: reword according to newest specification i2c: sun6i-p2wi: reword according to newest specification i2c: synquacer: reword according to newest specification i2c: taos-evm: reword according to newest specification i2c: tiny-usb: reword according to newest specification i2c: uniphier-f: reword according to newest specification i2c: uniphier: reword according to newest specification i2c: viperboard: reword according to newest specification i2c: xlp9xx: reword according to newest specification i2c: scx200_acb: reword according to newest specification i2c: reword i2c_algorithm in drivers according to newest specification drivers/i2c/busses/i2c-ali15x3.c | 2 +- drivers/i2c/busses/i2c-altera.c | 4 +- drivers/i2c/busses/i2c-amd-mp2-pci.c | 8 ++-- drivers/i2c/busses/i2c-amd-mp2-plat.c | 2 +- drivers/i2c/busses/i2c-aspeed.c | 26 +++++----- drivers/i2c/busses/i2c-at91-master.c | 2 +- drivers/i2c/busses/i2c-at91-slave.c | 8 ++-- drivers/i2c/busses/i2c-au1550.c | 14 +++--- drivers/i2c/busses/i2c-axxia.c | 10 ++-- drivers/i2c/busses/i2c-bcm-iproc.c | 20 ++++---- drivers/i2c/busses/i2c-bcm-kona.c | 14 +++--- drivers/i2c/busses/i2c-bcm2835.c | 8 ++-- drivers/i2c/busses/i2c-brcmstb.c | 12 ++--- drivers/i2c/busses/i2c-cadence.c | 14 +++--- drivers/i2c/busses/i2c-cht-wc.c | 8 ++-- drivers/i2c/busses/i2c-cp2615.c | 6 +-- drivers/i2c/busses/i2c-cpm.c | 4 +- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 2 +- drivers/i2c/busses/i2c-davinci.c | 13 +++-- drivers/i2c/busses/i2c-designware-master.c | 2 +- drivers/i2c/busses/i2c-designware-slave.c | 8 ++-- drivers/i2c/busses/i2c-digicolor.c | 4 +- drivers/i2c/busses/i2c-diolan-u2c.c | 2 +- drivers/i2c/busses/i2c-dln2.c | 4 +- drivers/i2c/busses/i2c-eg20t.c | 10 ++-- drivers/i2c/busses/i2c-emev2.c | 10 ++-- drivers/i2c/busses/i2c-exynos5.c | 4 +- drivers/i2c/busses/i2c-fsi.c | 56 +++++++++++----------- drivers/i2c/busses/i2c-gpio.c | 8 ++-- drivers/i2c/busses/i2c-gxp.c | 12 ++--- drivers/i2c/busses/i2c-highlander.c | 2 +- drivers/i2c/busses/i2c-hisi.c | 4 +- drivers/i2c/busses/i2c-hix5hd2.c | 4 +- drivers/i2c/busses/i2c-i801.c | 12 ++--- drivers/i2c/busses/i2c-ibm_iic.c | 26 +++++----- drivers/i2c/busses/i2c-img-scb.c | 2 +- drivers/i2c/busses/i2c-imx-lpi2c.c | 10 ++-- drivers/i2c/busses/i2c-imx.c | 12 ++--- drivers/i2c/busses/i2c-iop3xx.c | 10 ++-- drivers/i2c/busses/i2c-isch.c | 2 +- drivers/i2c/busses/i2c-ismt.c | 2 +- drivers/i2c/busses/i2c-jz4780.c | 2 +- drivers/i2c/busses/i2c-kempld.c | 2 +- drivers/i2c/busses/i2c-ljca.c | 20 ++++---- drivers/i2c/busses/i2c-lpc2k.c | 8 ++-- drivers/i2c/busses/i2c-ls2x.c | 8 ++-- drivers/i2c/busses/i2c-mchp-pci1xxxx.c | 40 ++++++++-------- drivers/i2c/busses/i2c-meson.c | 4 +- drivers/i2c/busses/i2c-microchip-corei2c.c | 4 +- drivers/i2c/busses/i2c-mlxbf.c | 8 ++-- drivers/i2c/busses/i2c-mlxcpld.c | 12 ++--- drivers/i2c/busses/i2c-mpc.c | 4 +- drivers/i2c/busses/i2c-mt65xx.c | 2 +- drivers/i2c/busses/i2c-mt7621.c | 22 ++++----- drivers/i2c/busses/i2c-mv64xxx.c | 12 ++--- drivers/i2c/busses/i2c-mxs.c | 2 +- drivers/i2c/busses/i2c-nomadik.c | 2 +- drivers/i2c/busses/i2c-npcm7xx.c | 12 ++--- drivers/i2c/busses/i2c-nvidia-gpu.c | 4 +- drivers/i2c/busses/i2c-ocores.c | 8 ++-- drivers/i2c/busses/i2c-octeon-core.c | 6 +-- drivers/i2c/busses/i2c-octeon-platdrv.c | 2 +- drivers/i2c/busses/i2c-omap.c | 4 +- drivers/i2c/busses/i2c-opal.c | 4 +- drivers/i2c/busses/i2c-owl.c | 10 ++-- drivers/i2c/busses/i2c-pasemi-core.c | 2 +- drivers/i2c/busses/i2c-piix4.c | 2 +- drivers/i2c/busses/i2c-pnx.c | 2 +- drivers/i2c/busses/i2c-powermac.c | 8 ++-- drivers/i2c/busses/i2c-pxa-pci.c | 2 +- drivers/i2c/busses/i2c-pxa.c | 12 ++--- drivers/i2c/busses/i2c-qcom-cci.c | 2 +- drivers/i2c/busses/i2c-qcom-geni.c | 2 +- drivers/i2c/busses/i2c-qup.c | 6 +-- drivers/i2c/busses/i2c-rcar.c | 16 +++---- drivers/i2c/busses/i2c-riic.c | 6 +-- drivers/i2c/busses/i2c-rk3x.c | 18 +++---- drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +- drivers/i2c/busses/i2c-rzv2m.c | 8 ++-- drivers/i2c/busses/i2c-s3c2410.c | 4 +- drivers/i2c/busses/i2c-sh7760.c | 18 +++---- drivers/i2c/busses/i2c-sh_mobile.c | 12 ++--- drivers/i2c/busses/i2c-sis5595.c | 2 +- drivers/i2c/busses/i2c-sis630.c | 16 +++---- drivers/i2c/busses/i2c-sprd.c | 14 +++--- drivers/i2c/busses/i2c-st.c | 17 +++---- drivers/i2c/busses/i2c-stm32f4.c | 8 ++-- drivers/i2c/busses/i2c-stm32f7.c | 14 +++--- drivers/i2c/busses/i2c-sun6i-p2wi.c | 20 ++++---- drivers/i2c/busses/i2c-synquacer.c | 30 ++++++------ drivers/i2c/busses/i2c-taos-evm.c | 2 +- drivers/i2c/busses/i2c-tegra-bpmp.c | 4 +- drivers/i2c/busses/i2c-tegra.c | 4 +- drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- drivers/i2c/busses/i2c-tiny-usb.c | 4 +- drivers/i2c/busses/i2c-uniphier-f.c | 22 ++++----- drivers/i2c/busses/i2c-uniphier.c | 12 ++--- drivers/i2c/busses/i2c-viperboard.c | 8 ++-- drivers/i2c/busses/i2c-virtio.c | 2 +- drivers/i2c/busses/i2c-wmt.c | 2 +- drivers/i2c/busses/i2c-xiic.c | 2 +- drivers/i2c/busses/i2c-xlp9xx.c | 4 +- drivers/i2c/busses/scx200_acb.c | 4 +- include/linux/i2c.h | 24 ++++++++-- 104 files changed, 460 insertions(+), 464 deletions(-) -- 2.43.0