Article View: linux.kernel.netdev
Article #15671Re: [PATCH net-next 1/3] i2c: xiic: allow platforms to require 32-bit register accesses
From: netdev-bot+sashiko
Date: Fri, 13 Nov 2026 10:21
Date: Fri, 13 Nov 2026 10:21
63 lines
10104 bytes
10104 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Commit "i2c: xiic: allow platforms to require 32-bit register
accesses" adds xiic_i2c_platform_data::force_32bit_access and theβ¦
--
i2c: xiic: allow platforms to require 32-bit register accesses
This commit adds a force_32bit_access flag to xiic_i2c_platform_data.
When the flag is set, xiic_setreg8(), xiic_getreg8() and xiic_setreg16()
perform aligned 32-bit accesses in the detected endianness. The target is
the LitePCIe bridge on the WiWi Time Card, which cannot handle subword
MMIO accesses.
> diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
> index ba560462d4513..d13cfb0127a20 100644
> --- a/drivers/i2c/busses/i2c-xiic.c
> +++ b/drivers/i2c/busses/i2c-xiic.c
[ ... ]
> @@ -1480,6 +1498,8 @@ static int xiic_i2c_probe(struct platform_device *pdev)
> return irq;
>
> pdata = dev_get_platdata(dev);
> + if (pdata)
> + i2c->force_32bit_access = pdata->force_32bit_access;
[Severity: Low]
This isn't a bug, but nothing in the tree sets force_32bit_access at this
commit. The ptp_ocp xiic tables and timberdale both leave it false, so the
new paths in xiic_setreg8(), xiic_getreg8() and xiic_setreg16() can't be
reached yet.
The later patch in this series, "ptp: ocp: add WiWi Time Card production
image support", adds the user in ptp_ocp_i2c_bus():
if (bp->wiwi) {
wiwi_data = *(struct xiic_i2c_platform_data *)info->data;
wiwi_data.force_32bit_access = true;
data = &wiwi_data;
}
That copy is then passed to platform_device_register_resndata(), so the
flag has an in-tree user once the series is applied.
Could the commit message say that the user of this flag comes in that
follow-up patch?
>
> /* hook up driver to tree */
> platform_set_drvdata(pdev, i2c);
[ ... ]
--
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261111041904.48916-1-ahmadexp%40gmail.com
Technical Details
Message-ID:
<179456531820.2199510.7014507677375597007@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362559-linux-kernel-netdev=dewy.ruReferences:
<20261111041904.48916-2-ahmadexp@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362559-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/3] i2c: xiic: allow platforms to require 32-bit register accesses Date: Fri, 13 Nov 2026 10:21:58 +0000 Organization: Usenet Network Message-ID: <179456531820.2199510.7014507677375597007@kernel.org> References: <20261111041904.48916-2-ahmadexp@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1321077"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:fbfww/HDNvJL4O6NP2ck0dKeGaY= sha256:MB1/qsE+otguQkZBFwap37eeKtIP9mLPMKOYiY07Krg= sha1:4rjeWuUjyo/eEc+bF2hBRycVsw8= sha256:CqDYYyN8q6qn8NAujkeUB2WthShe8QCdywXCwrSvAAU= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 8754A1144ED; Fri, 13 Nov 2026 13:56:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id putoybpIloHD; Fri, 13 Nov 2026 13:56:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362559-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 69EED1144E0; Fri, 13 Nov 2026 13:56:39 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 0872326AE40; Fri, 13 Nov 2026 10:22:49 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794565326; b=GFIF5ZtNG3yKcgLpVuPYZey8Vl3vBDQpy1zJQAeF0lff4EF/6ALGv7cOlmNZHXpZVkTr kREi19J9p2kTiS8uMx6+HkOltNoWKJrgGExcLixFOHzje9VOIp48qUOCeCe8IqLZEVH17 uL6jae97N7E6fxp0xPBHVdf73adOAYVs67QHfX/FTqOm1kUiy/eGEDFt6Rx49pSs2da+N YTbz9CBfLUW7BOzzZEOMRi8rmFds30BedAb9K5bau5LYsrl23H55wF47ngX1qDxAQHXK8 dFRvMfymKYkD6ATVqW7F1Znd57xrC4Q9IfcHD34CakY8mqhkD3xb9Q22mQds/yPT0Gg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794565326; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=zxzEdBeY63DTXC51lPS/dShr0mdq/ohbGMQhsyL/SBY=; b=zsqG3fsbhSTotc55L/aImbAH7+9gpT4rUXIopYztlasxyP1SJTu1F5yZkKmYKVlP+qAB CT2CN6GuVbi4v8iRADugCbxqnWqTZ6TV3hHZPfuh7n2lwRN61mkVd7y6vpsEIQbhOWV0Q Cm7ChQIYVrF7b/EZv5JGjRGrqv252C6ECIg1EtWR0Hrn0PoZpYmbXMRFCw41buj7BNZod 4dF0+KpSt9Jkb84xitbeMB7dbnxGtMi7XLNjkg6uXgB3G0+hcz7uY9ZxFX06NUyLu3Ast UZfw2HDVrvZx9yaxqX08m9rhB+OvgXtvkBU7CqgyDPPJMUkmcGtM7D+zOtanQkVtcUg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T6fAo8Pt; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16C9A60A261A; Fri, 13 Nov 2026 10:22:06 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T6fAo8Pt X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794565320; b=YS9wscmXn2tERKwXauFGoNre5hAt8hUvDvveYec85i+ogC5G08DA34rckkr6eUA8v5CA enFFox+Hfzh5nxg9eufGhPF+i2V6nLPDWo2rlnyEyjnRfq2vsodvp2x5836v/H+nDpBl2 BNyPYSyqzhokzpmt0YipcPWRwL3/WiZqvVUB0qHq3WsFcyTocUXVibvPFB8RuFC8p4Cgb Og8zxpdgPYwGMONfWPwsWfyevwRFRjAMVZKbbQSp23fGOfJ8O0j/uadXkiLOHucd3Qbut W1+IODP6a7ltCEbQ1TLTaI8xXbv4QWLyUUlCWNPRRBDpU4p0chocPbJ+A0K485d8MyQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794565320; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=zxzEdBeY63DTXC51lPS/dShr0mdq/ohbGMQhsyL/SBY=; b=iij0GGY0yrUOygiA3y38rQTjzTPrCMvfYDJm7y96eELbqzOzms+HFXSJNAe6zVMO/rwC +QiF/TJes1H6RmN+kL+B9G8WwdJMqMP1EpH4zdtMl2tYsWAHJa+WgzZPIL7/H7ik/2Uq0 O7Bl9/cyKZFANEEyDUkCDkDf+ceZ4wWz/QOv+gWJOKym99850jis5Zu4O5CInW/WBwXL1 h0Ddgt5Siy2CZOns2d8yL+RWbJaYhZy/VeJjskDnQankMfJP5SXLyz1nKyEhqAr1vdQT3 0lmmnO7Fyjl4hxZyMkFuyCJL2T2TUZF9exRbNXUJ1Zs9ToAWkRfZFC6pmFBpaYoWEOA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=T6fAo8Pt; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31942606A31C; Fri, 13 Nov 2026 10:21:59 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B21421F000C7; Fri, 13 Nov 2026 10:21:58 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794565319; bh=zxzEdBeY63DTXC51lPS/dShr0mdq/ohbGMQhsyL/SBY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=T6fAo8PtK4rkJZfNv5ZKNLtl2rxvFu/Ljsju3+ow1D43oeqI53NF61ubm75dZBvem cQuGU8uBKmcXXV0Go7hMPN/TTI0yKsF9HFgs0LAGTNe3RKvePkl8oX2+BqOLGo/zFC Pe+ff7OD9I/1gYKeoN0Z6Xvc0GffgpNtCLZWr0ayQAQ5w1MmNOjcTcja0M93k9ITH9 zpdGADVsZftv8pIK2MpKvD1JKhh4qxH2RzbqxwZTS6cGWw9w9061y6nZUyMJWzDhsR P8yzNVlJbms/3k3u4cEZQiLojbF6WgMSiMqwAyUDtLo+/4bwl+NqLhSGYqpy7gRh51 aCW5WFiqEBxPg== X-Cc: netdev@vger.kernel.org, vadim.fedorenko@linux.dev, andi.shyti@kernel.org, linux-i2c@vger.kernel.org, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, richardcochran@gmail.com, andrew+netdev@lunn.ch, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261111041904.48916-2-ahmadexp@gmail.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list