From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5103C3B6C09 for ; Mon, 25 May 2026 07:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779694006; cv=none; b=KwMYBFJeTsAjR7sVCIBTRlqommYn775HLgdyR9yJw2lKptdqHfjqoJQSJieXpJtFyYU6HVZMJTb6WAvwtGdO2euEgNyoOce7hzBX2FmEvvL6VrLHYg/gs/Ro6dv/LXPY9W1CqSDgG34UBAGmOTOpsRkYTERBggp4yAhOtSrWHwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779694006; c=relaxed/simple; bh=VUGI187LbyURwGio3hctbiSTY5kdZTW5jVv9fi/0Ru4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pScPv7u24YrE+3oU2EZhN4eQMBDa4uHdGRqBOSO9bZzyn03fNfyYDaSMLBJzm+M/aifjcaCm6z14iQ2BE13E2OJ++6L4RuwnxwDdiqtb6VOzjTbh451yvccMZIIZS+of2hO/iW8rNh9fiRGGtPZtiJr4exvTfCOtrPUzqRZVqJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=nBaY/qZe; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="nBaY/qZe" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-43fe608cb92so5574848f8f.2 for ; Mon, 25 May 2026 00:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1779694003; x=1780298803; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VUGI187LbyURwGio3hctbiSTY5kdZTW5jVv9fi/0Ru4=; b=nBaY/qZexASnj4DXB71/ziGDnQUTp2oC+/nzYMVMAlK3fqQVVbzDAt4uWvudp+0znl SK5gyfLB/6l2cqy45JJ40WbEPUFnsPo0w+igp5XEYAklCbbh+dAsg0YLs/17HmTeRoIy 2sLZl5KOV56zqrf4wqNguFjVSnqc6TwgQy0gV0/XP2sU7ekFGofJhmL3Y8f+5LEU+sh2 Dawd8zjt7HAAWCKYHYJbtVn5Mx4Zw80UcDlG9Q9qwpY8USmnyY5bAAzDG+/93rCOn1de vr4Svi/pTl4Hp6LPgBMPbLPM14aNEHtKdSL3pEXUIFP0+UPjsVSxQhMzjjauUZe9Ee/a Z5Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779694003; x=1780298803; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VUGI187LbyURwGio3hctbiSTY5kdZTW5jVv9fi/0Ru4=; b=hRoMa2Jyde/dBZb9DM/ajbysdBLFzCBJhjDH015bJFyyuF6Y9V1lK9KqMQ7q/y5nCs zWxTR/pO24guJVXotUDgHixIU5xK0AzmvruEg0Uai5Ysj7o4OsaBQOsPbo0WCuGEFJao Yb/in+zWHfi4dzKWbqtRXgYY43pUW982WcO/Yvk3tIDMKtLdD9syJadLGVUYE9JDIHa1 aJoS/7QFQLDzbDEmsquY0qkuhEQR3mdn/zEdCloK2u4++Oor7JtQtKPt8CxDz3OaMfI6 m2yWV26u6ryNMxiL3iiMkoL7+olVIoNe3rPhyK5swnQfQz1v8cM1XOwnrLmpNzGyyMo3 SwZg== X-Forwarded-Encrypted: i=1; AFNElJ/mCBAWQriSIAX7H6g2QRXbZiFi/qdeQN7KaVPkZrZ8H2olKiH3Z9kEy7io2j2sjt8y9O+/n7DGJjmAl1Y=@vger.kernel.org X-Gm-Message-State: AOJu0YyEl3mGLJQZhy51KsrPaZ4LN9Df3DjzPHF1VreKaOBCo3VaXY4Y tSDx0h0TOhzK8N3zlh+McjwmG449L51vXV/yuD28Icnfcoo/hlSdAIQ1IEuFwifTxP8KycDPQ7+ FxLi1rtM= X-Gm-Gg: Acq92OGdUa126dg3INYvWrZ8jnDSLo7cW7Px3MFvv6CpUMXnqqhzZEPoVnNoEc+cxPY Bt456sCdUuSJWsx57lwZpnq3rTIF5J4nxo7+AydlgYgr4+2HIKlS6BQpHeKYByD8usLMjaWnfX/ /YT/Vr8eIMauFvVykEszVLfrHwVOf+nC7rtThqBX/owwZtaCseN9/y7laIqMhFQI23fhqzaSfo8 T4w4PGyPkSNJMtzv6Sn1ffNhM4IoF8qGmyyYdMdZpfTHpvaE3gGJ27Lmibe/D5boS4NCW1cZ1Ko 3Hc4sso4OckvT5rOxFooo1GfnjaE/rt4oqi8wRjGzo9q1V0csyp8/F4WpQxYe6cwbrFIyEvSR4x xXT1Bj8jEOsVSVF7+xFJ47EY08bDt1Vq597snOYsBA/29eGkQMJ3GB8gI7Y/MSNJrD/b3cWZnHa V5KW7U6fGvPdLFkKSfVg3uhXjuf/To X-Received: by 2002:a05:6000:2c10:b0:43d:7a97:78b5 with SMTP id ffacd0b85a97d-45eb38d63a7mr22301124f8f.33.1779694002754; Mon, 25 May 2026 00:26:42 -0700 (PDT) Received: from localhost ([2a02:8071:56d1:2de0:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-45eb6d47b82sm24823111f8f.19.2026.05.25.00.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 May 2026 00:26:41 -0700 (PDT) Date: Mon, 25 May 2026 09:26:40 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= To: Jarkko Sakkinen Cc: Peter Huewe , Jason Gunthorpe , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tpm: Use named initializers for arrays of i2c_device_data Message-ID: References: <20260518134035.644762-2-u.kleine-koenig@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5nopveidoqhxaoas" Content-Disposition: inline In-Reply-To: --5nopveidoqhxaoas Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] tpm: Use named initializers for arrays of i2c_device_data MIME-Version: 1.0 Hello Jarkko, On Fri, May 22, 2026 at 03:44:05PM +0300, Jarkko Sakkinen wrote: > On Fri, May 22, 2026 at 10:16:39AM +0200, Uwe Kleine-K=F6nig (The Capable= Hub) wrote: > > On Fri, May 22, 2026 at 12:43:23AM +0300, Jarkko Sakkinen wrote: > > > Clean up can be side-effect but not a purpose. > >=20 > > Oh, I disagree. Having code in a state where you can easily see what > > happens helps to concentrate on the parts that are more complicated. So > > it's a win for maintenance and lowering the entry bar for people who are > > not used to Linux kernel code. There are parts in the kernel that are > > complicated, and we won't get rid of them, because operating systems are > > complicated. But my POV here is that making it easier where it's > > possible is a good thing and a reason for itself. You might call that a > > paper cut only, but these add up. > >=20 > > Also with the union in i2c_device_id the compiler warns you if some code > > is lacking a "const". So it becomes harder to make mistakes, this is > > also a reason that in my book is good enough for itself. >=20 > Actually what I said is more important than ever before given AI agents. >=20 > If I start to accept pure cleanups from humans it's like invitiation for > slop. This is actually an area where it would be advicable for any > maintainer to tighten the acceptance criteria. I also disagree here. If a patch improves something (be it security, runtime behaviour or maintainability) that should be reason enough to accept it. If it's created by AI (or a by a newbie with the help of AI) that's a reason to make sure the patch has the intended effect, but that's essentially the same for any patch. I agree that AI might get problematic if it floods maintainers and effectively becomes a DOS attack to maintainer resources. But that doesn't necessarily makes the patches it proposes bad. Best regards Uwe --5nopveidoqhxaoas Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmoT+aoACgkQj4D7WH0S /k55kAf/WirBb5saUL7Ev1pLCl0q58GbEQKdqUbGyrvbSGc8cYglVsjopgwdVjFp ymNsegq7ZumAxs1QumcIGgBgJTXh4eKCr9zk1FHJFQRoTQuXoEbTwXjgXsXlz43J P48HBaRfkRQtMIAuvnhE8pfEW7KJIABItUfU+kigDHRHTqXJ3TscK+b8MosASlKa Ov+7gbB4C8G68C0+TWv7gF/6rOqDERrUyC4DxbODXEN4GJubP4IXA3JyhZBAGrb8 gNxvnxN6OilwrQdTwoBLLUy/mrVsO/yu/R3a49aAa1EBlQrHPeLCoJ0YfoCe5MY/ Oj9A1we/OkHpCZteDY4mRxrhwhBtaw== =Y5x4 -----END PGP SIGNATURE----- --5nopveidoqhxaoas--