From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9FD80C44507 for ; Wed, 15 Jul 2026 19:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Xl+FyxL5gvlUQRFWdVXyFBYc8UGBwOVS4dpFmQIuCgo=; b=bxhWnpkHaxEr/7 Sy8XLZYcj6IvO5y60piM5z4aKGr1iuIgHLiJmiT7RKHcbPo5ps+MzjRJgl9k8LAmXL6sm+G8zJbYm bIOcEoSFS95JMmE+QrXoP1pceQ+OhiMI0XjT+KCWWRIQlMg1+hW705CjS89dQIK45pX0fvuBf1ABt Ymdia3BAlqExINDQNlLTzk5qbycvrGGyC/PoZONZbBVVJ9P7hxxMtYuHTWdwyv/SPU7k9qy6F/BLV 2ZPPHJKZl+ZLBGTp+Q+ZO1SwQir1ErpXxnM0RRecS+FbSIohlznJ6Vrwfu8MQ4gTZs0V7UFDPcUXM HHj/I2O3bJqTFXJXM9Mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wk4yq-0000000Fl5m-44DM; Wed, 15 Jul 2026 19:09:16 +0000 Received: from [2a01:e0a:1040:9780:49:5ff:fe41:d261] (helo=luna.linkmauve.fr) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wk4yo-0000000Fl4O-27t4; Wed, 15 Jul 2026 19:09:15 +0000 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 7F6AFF40D2D; Wed, 15 Jul 2026 21:09:06 +0200 (CEST) Date: Wed, 15 Jul 2026 21:09:06 +0200 From: Link Mauve To: Andy Shevchenko Cc: Link Mauve , Srinivas Kandagatla , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Sakari Ailus , Tianshu Qiu , Bingbu Cao , Mauro Carvalho Chehab , Aaro Koskinen , Andreas Kemnade , Roger Quadros , Tony Lindgren , Lee Jones , Arnd Bergmann , Greg Kroah-Hartman , Bartosz Golaszewski , "Vaibhaav Ram T.L" , Kumaravel Thiagarajan , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vladimir Zapolskiy , =?iso-8859-1?Q?Andr=E9?= Draszik , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Praveen Teja Kundanala , Kalyani Akula , Michal Simek , Alexandre Belloni , Joshua Kinard , Antoniu Miclaus , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , Daniel Lezcano , Johan Hovold , Ronald Claveau , Salah Triki , Yury Norov , David Carlier , Achim Gratz , Alexander Sverdlin , Patrick Wicki , Markus Heidelberg , Markus Perkins , Uwe =?iso-8859-1?Q?Kleine-K=F6nig_=28The_Capable_Hub=29?= , Bjorn Helgaas , Abd-Alrhman Masalkhi , Chen Ni , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, mfd@lists.linux.dev, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-rtc@vger.kernel.org, linux-sunxi@lists.linux.dev, rust-for-linux@vger.kernel.org Subject: Re: [PATCH 0/8] nvmem: make reg_write() take a const void * Message-ID: References: <20260715175229.24672-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Jabber-ID: linkmauve@linkmauve.fr X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260715_120914_732546_8DA137C9 X-CRM114-Status: GOOD ( 23.30 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org T24gV2VkLCBKdWwgMTUsIDIwMjYgYXQgMTA6MDI6MTNQTSArMDMwMCwgQW5keSBTaGV2Y2hlbmtv IHdyb3RlOgo+IE9uIFdlZCwgSnVsIDE1LCAyMDI2IGF0IDA3OjUyOjE2UE0gKzAyMDAsIExpbmsg TWF1dmUgd3JvdGU6Cj4gPiBUaGlzIGNhbGxiYWNrIHVzZWQgdG8gdGFrZSBhIG11dGFibGUgdm9p ZCAqIGZvciBubyByZWFzb24sIHdoaWNoIGNhdXNlcwo+ID4gdGhlIGNvbXBpbGVyIHRvIGJlIHVu YXdhcmUgdGhhdCB0aGUgdmFsIGJ1ZmZlciBzaG91bGQgbmV2ZXIgYmUgbW9kaWZpZWQKPiA+IGJ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nJ5IGFib3V0IHRo YXQuCj4gCj4gV2l0aCB0aGlzLCByYXRoZXIgc3RhbmRhcmQsIHdheSB5b3Ugd2lsbCBmdWxmaWxs IHRoZSBhYm92ZSByZXF1aXJlbWVudAo+IGF1dG9tYXRpY2FsbHkuIEFsc28geW91IHdvbid0IG5l ZWQgdHJlZXdpZGUgY2hhbmdlIHRvIGJvdGhlciBldmVyeWJvZHkKPiB3aXRoIHRoaXMuIEFuZCBh bHNvIGluY3JlYXNlIHRoZSBjaGFuY2VzIHRvIGdvIGluIChtYXliZSBpbiBhIGZldyByZWxlYXNl cwo+IHNwYW4pLgoKSSBvcmlnaW5hbGx5IHRob3VnaHQgZ2l2ZW4gaG93IGZldyB1c2VycyBvZiB0 aGlzIEFQSSB0aGVyZSBhcmUgaW4gdGhlCmtlcm5lbCwgaXQgd291bGQgYmUgc2ltcGxlciB0byBm aXggdGhlbSBhbGwgaW4gb25lIGdvLCBidXQgdGhhdCBtaWdodCBiZQphIGJldHRlciBvcHRpb24g dGhlbi4KCj4gCj4gLS0gCj4gV2l0aCBCZXN0IFJlZ2FyZHMsCj4gQW5keSBTaGV2Y2hlbmtvCj4g Cj4gCgotLSAKTGluayBNYXV2ZQoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX18KbGludXgtYW1sb2dpYyBtYWlsaW5nIGxpc3QKbGludXgtYW1sb2dpY0BsaXN0 cy5pbmZyYWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGlu Zm8vbGludXgtYW1sb2dpYwo= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from luna.linkmauve.fr (82-65-109-163.subs.proxad.net [82.65.109.163]) (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 DCF53400986; Wed, 15 Jul 2026 19:09:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.65.109.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784142571; cv=none; b=IJKQW8qM7CaXgjoRk42GqvRv236rtAXD9NoMaBY7Y3Zvy6gg1xhXd5M5qlB/3wUQfABRKZsyF+BCcP4gPMhLPYPOvOKqhJ9yU+uEesaEuUCsCw1rBNLiY80NYdn/XKhADFwgrkYZJrSORXHIg0FIt+hxTle+yFWhZW38+b4SS5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784142571; c=relaxed/simple; bh=66x5PoM5bVTx1CXpsNEXknXuxFVHsPvPsPCs90jO+30=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q+m+///HOEzU1q8J6ukbq1RQ0lV9HeZ8w05dm0C2BWewMdYGjo0dlBgU9t+CwVLL2p24Gfigf6Yqc08aP04COa6uf/iYy6+y1bzh6AFoj0SYoYkJo6TNJ79CkEzRhmnmGLvqXYii5rlhcVT1ahaoTIdje0hXFKHHkXch0HpeQIc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr; spf=pass smtp.mailfrom=linkmauve.fr; arc=none smtp.client-ip=82.65.109.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linkmauve.fr Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 7F6AFF40D2D; Wed, 15 Jul 2026 21:09:06 +0200 (CEST) Date: Wed, 15 Jul 2026 21:09:06 +0200 From: Link Mauve To: Andy Shevchenko Cc: Link Mauve , Srinivas Kandagatla , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Sakari Ailus , Tianshu Qiu , Bingbu Cao , Mauro Carvalho Chehab , Aaro Koskinen , Andreas Kemnade , Roger Quadros , Tony Lindgren , Lee Jones , Arnd Bergmann , Greg Kroah-Hartman , Bartosz Golaszewski , "Vaibhaav Ram T.L" , Kumaravel Thiagarajan , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vladimir Zapolskiy , =?iso-8859-1?Q?Andr=E9?= Draszik , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Praveen Teja Kundanala , Kalyani Akula , Michal Simek , Alexandre Belloni , Joshua Kinard , Antoniu Miclaus , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , Daniel Lezcano , Johan Hovold , Ronald Claveau , Salah Triki , Yury Norov , David Carlier , Achim Gratz , Alexander Sverdlin , Patrick Wicki , Markus Heidelberg , Markus Perkins , Uwe =?iso-8859-1?Q?Kleine-K=F6nig_=28The_Capable_Hub=29?= , Bjorn Helgaas , Abd-Alrhman Masalkhi , Chen Ni , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, mfd@lists.linux.dev, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, imx@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-rtc@vger.kernel.org, linux-sunxi@lists.linux.dev, rust-for-linux@vger.kernel.org Subject: Re: [PATCH 0/8] nvmem: make reg_write() take a const void * Message-ID: References: <20260715175229.24672-1-linkmauve@linkmauve.fr> Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Jabber-ID: linkmauve@linkmauve.fr On Wed, Jul 15, 2026 at 10:02:13PM +0300, Andy Shevchenko wrote: > On Wed, Jul 15, 2026 at 07:52:16PM +0200, Link Mauve wrote: > > This callback used to take a mutable void * for no reason, which causes > > the compiler to be unaware that the val buffer should never be modified > > by the callback. > > > > This was found while drafting the nvmem-provider Rust abstraction. > > > > I’ve split this series based on the subsystem each patch affects, but I > > think it should go through the nvmem tree in one go after gathering the > > acks from the other subsystem maintainers. > > It's an option. The other option (and often we go this way) is to introduce > a new name, convert users, convert the name back. Thanks for the hint, I’ll go for this route for v2 then. > > See, for example, how GPIO subsystem changed a proto of .set() callback. I will, thanks. > > > I’ve been told previously to not include too many maintainers in Cc, but > > I don’t know which ones to remove from the get_maintainers.pl output, so > > I’ve still included everyone, sorry about that. > > With this, rather standard, way you will fulfill the above requirement > automatically. Also you won't need treewide change to bother everybody > with this. And also increase the chances to go in (maybe in a few releases > span). I originally thought given how few users of this API there are in the kernel, it would be simpler to fix them all in one go, but that might be a better option then. > > -- > With Best Regards, > Andy Shevchenko > > -- Link Mauve