From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E1DA3AC0F8 for ; Wed, 8 Jul 2026 20:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783542403; cv=none; b=QMeldrXUWVmKwbSLB5Mfijdo/wvFJo9/GAgDKC9H93lv+fGx1fwkv+Iaqic+ZPFqqaoX5FjJcWL50CnFQZGnQwChgJBpY0sBTWhD0K0TciGjtEMtRB6PPrwYIPFdjeiOwxrnD8uyTpzC9cmc0HhNQmylpWaULto4C5bfmcfe9ms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783542403; c=relaxed/simple; bh=kzm6H+8j2pmFYFrh4XPjVA05YAKPzdpWTd+tGXPddKU=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=IlWY+IpgaX0Y8ANavp1vik9xXagHKJA29YHAPQh5Dq5+e/YDQfDzFDnU8/34pWff7PKf1ziG4R3WLaGH+vUFNm4F5bYnyzXStjefe65ugupwZGXA1Q3poSkusu3cqwrClrObbrD/sz1ncmo8BnidKx52evW4zpgvAGezTl6V224= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bEXSdwmi; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bEXSdwmi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C785A1F000E9; Wed, 8 Jul 2026 20:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783542402; bh=g8FlTmp6H6Y5u3jx+vuX4Chpfh/uAY1bPKyZ5GfjEwo=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=bEXSdwmikZbOqY7JnkfNwflCzVW+4x2qpfX6MzXceQdI7Qw2f69PIPXYdBEOBDtl2 Wm3RhqwcixXf1aIB5JObfHQB5zdXGU7CORv2Vo3wyVKt1Q5MvR50ikZWEn48yNXbkr GoiUAUsSc46gbcESdtpxpxuTsHnJNm2Eg62FwN0TWw2vfAA0d7Me3JHZRSkF9AMRXy jybMK8/XQ5GI2n/KudYUU9oQL40Mk23nrHrivptwWZuGXSAPaVPwCEmd8oG6R2WsJk tSsZTtvFmSuHEsCs6iygGE/95pk3jVaOPzaTCG7JDNE/mp++WaVMcjAcbF3JyS/ZJH 8hFIAAwqegsgg== From: Srinivas Kandagatla To: Bartosz Golaszewski , Johan Hovold , Loic Poulain , Bartosz Golaszewski Cc: linux-kernel@vger.kernel.org, brgl@kernel.org In-Reply-To: <20260629-nvmem-unbind-v5-0-233212f241c4@oss.qualcomm.com> References: <20260629-nvmem-unbind-v5-0-233212f241c4@oss.qualcomm.com> Subject: Re: [PATCH v5 0/9] nvmem: rework nvmem core and allow unbinding with active consumers Message-Id: <178354240050.448408.12632228727228648876.b4-ty@kernel.org> Date: Wed, 08 Jul 2026 21:26:40 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.3 On Mon, 29 Jun 2026 11:47:45 +0200, Bartosz Golaszewski wrote: > Sashiko pointed out some issues so this iteration fixes them. I'm also > Cc'ing Loic who seems to have encountered the issue of unbinding with > active consumers when working on the block nvmem provider. > > Nvmem is one of the subsystems vulnerable to object life-time issues. > The memory nvmem core dereferences is owned by nvmem providers which can > be unbound at any time and even though nvmem devices themselves are > reference-counted, there's no synchronization with the provider modules. > > [...] Applied, thanks! [1/9] nvmem: remove unused field from struct nvmem_device commit: 5409a299432b54f33fc47cb182df5e8b8166031c [2/9] nvmem: return -EOPNOTSUPP to in-kernel users on missing callbacks commit: c6c4594fc8c139a533a0e0b05727009911b06157 [3/9] nvmem: check the return value of gpiod_set_value_cansleep() commit: b25b0a566a91d2a3a38a27329b7d6034a08ad9df [4/9] nvmem: simplify locking with guard() commit: 376bc6403ac53e833014b4e834465ea5aec15de0 [5/9] nvmem: remove unneeded __nvmem_device_put() commit: fb564b9150b4271b6de24a7b38c320c538c7c9f5 [6/9] nvmem: split out the reg_read/write() callbacks out of struct nvmem_device commit: 15dcb6cc98a5c5011124b0dc62869ed6609381b8 [7/9] nvmem: simplify nvmem_sysfs_remove_compat() commit: 9e81282a54bbc091c9e98d7eb3b1b5c247295dc0 [8/9] nvmem: remove duplicated reference counting commit: 0c0e7756ec1b5a1b76c9b196508b421881b77c3f [9/9] nvmem: protect nvmem_device::ops with SRCU commit: ea87821719eea4cf729e237e5cc417172f8b58e3 Best regards, -- Srinivas Kandagatla