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 2EF01C4450E for ; Thu, 16 Jul 2026 11:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type: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=31cmrFpa7CXwowfN2iYtJU7yXWn+71D58bnXmoDXbPo=; b=a06stjs1BSaUR93zSv/yzi96IN 3U6vW7ee5cWYn7P7G8V2jOj9mxqMgAzzWLfdX009uI6N9Fyoti/+6CX010bFRtNMN1pMBG77ppojb cqtYHErLXtBF0ly4QmbarCKPMrBoRtdvwxD5ws6h2WKkQr2eX5ObmnJI/UyxE4z4jzVRxnjBNvPRA OAmhzz9GTN1WVoGa1Mi7JJojMOZridr+T8baVL8ivn/IVHt92n5YpxwGhh73VHncR3PQekqxsESoN UpafxUbOA10/3CZ4bmKSs5iT3Q+BAzNe6DUSQcWlZ8T6w5UDNT/wb6AkSwZe1Cmhqf/AHEVa70UYn ZyLvwwiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkKHr-0000000H83c-0Sty; Thu, 16 Jul 2026 11:29:55 +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 1wkKHo-0000000H836-2zH9; Thu, 16 Jul 2026 11:29:53 +0000 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 9FB37F40D30; Thu, 16 Jul 2026 13:29:45 +0200 (CEST) Date: Thu, 16 Jul 2026 13:29:44 +0200 From: Link Mauve To: Andy Shevchenko Cc: Link Mauve , Srinivas Kandagatla , Andy Shevchenko , Sven Peter , Janne Grunau , Neal Gompa , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vladimir Zapolskiy , =?iso-8859-1?Q?Andr=E9?= Draszik , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Kalyani Akula , Michal Simek , 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?= , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, rust-for-linux@vger.kernel.org Subject: Re: [PATCH v2 0/2] nvmem: fix a const-unsoundness in reg_write Message-ID: References: <20260715195520.25410-1-linkmauve@linkmauve.fr> 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260716_042952_889724_86842A35 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jul 16, 2026 at 12:03:17PM +0300, Andy Shevchenko wrote: […] > ..... TL;DR: you should fix the Apple driver (and might more if any of them > use that dirty trick). It was the only one of the drivers/nvmem/ to do that. Three other drivers use a pattern where they merge read and write operations into a single access function with a type=read/write parameter, so const safety can’t work there and I’ll continue casting from const void * to void * in the write function to keep that pattern working. > > -- > With Best Regards, > Andy Shevchenko > > -- Link Mauve