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 70B08C44512 for ; Thu, 16 Jul 2026 17:54:41 +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=L1G7GykcMQWGRr19wFyKPBZfMLl/UhOujkQZmeGJk/g=; b=rjFf7eZ5M3LMm3xh8JKwEd0zns 2PTwjb0ZQs2iRiclLzrKPcyazQwrMkXRC120saJWE/GEqPdbx+4UlE8SumqWJTRxpz11MoQWJDhNe CX9OzibFFouCV1arvfNgWUVBs3BcoW2r+5uBAbbXa6lHgdL/AkN3WmhTVN2fDdR+PtQdNj44mUiCc iipwl4IkW3PG6Ub+aCvxOS8r2CVJ4c3ZsAPyTk0ZGpvWrd4iFcrZnr/Jcek//khQC3KgILxLbmlz4 HRWUlpGy5httnEJR0ik+5wVRF5Kws6Xfk2giPFwKPmCnGH+7l2NNTw5Hoh7rSgG1ipqSIlXHz2oAN F4GoYXew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkQI6-00000000Jwj-2K2i; Thu, 16 Jul 2026 17:54:34 +0000 Received: from mgamail.intel.com ([198.175.65.15]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wkQI4-00000000Jk2-14mp; Thu, 16 Jul 2026 17:54:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784224473; x=1815760473; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=xxOjee7glhv2bbNIZZyyAk70a5eC9HP+MBjlGBfZqNA=; b=QsaWTJmd3rOE6TFNtRHlsumFLT7nr2txQhjVuOllbEb4twhhUaU3MHv7 g69r2pFjOBEpn3SRy0bZ3GOgGgokcc/tLddiqe4rb1KQm2dvlfHu+5hYJ yTNhd7UmekevgKM3tyqqdz+9mVzfae/tOaEcP85BEuIl8cY1sNa48jfX6 LOPNiVinF7c4/9hv5kUtpz5bCzEXHhsnnpzSRjhQOyhotpHhdo6eqNgOZ dA/aGMX06Zcz10Jkw0JCRl3Hj2vwbWS7Lc1hMus+9ddipflgmLCTthVoM C+cyCjTKSczF7GkTr8xDCvlIWLmdA+ZfzXMPAmwMTUGfGSl2O15q7ZWhN w==; X-CSE-ConnectionGUID: q0nd2Q8ESG6RjccRkLuy+g== X-CSE-MsgGUID: 4kJ6lOBYTy+oYswWJLjWuQ== X-IronPort-AV: E=McAfee;i="6800,10657,11848"; a="88569125" X-IronPort-AV: E=Sophos;i="6.25,167,1779174000"; d="scan'208";a="88569125" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2026 10:50:35 -0700 X-CSE-ConnectionGUID: KSXdeNBXTx+whu28zmJl9Q== X-CSE-MsgGUID: ISrJSJNIRJu4vj7xXuRo5w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,167,1779174000"; d="scan'208";a="260854065" Received: from conormcd-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.245.26]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2026 10:50:25 -0700 Date: Thu, 16 Jul 2026 20:50:22 +0300 From: Andy Shevchenko To: Link Mauve Cc: 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: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260716_105432_334998_700333C8 X-CRM114-Status: GOOD ( 13.86 ) 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 01:29:44PM +0200, Link Mauve wrote: > 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. I meant all the driver in the kernel that are going to be affected by this change. -- With Best Regards, Andy Shevchenko