Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1895174lqz; Tue, 2 Apr 2024 00:16:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQ17CvFruqWg/tGXG5/XTNuDo/qkvI+dItY7nP5rWyEupr24BWhi56FAAlt9Vtg/khOqpm/CSm/KXM7aVxKiEdUbt41by7M3LRKa1/uA== X-Google-Smtp-Source: AGHT+IGtcYGUTgGH7PHYjXUfTH9fCxxc8zioQMl7vNqIYw4J5+M3Xq2QdFHR1M9wjBIH8+38BnK+ X-Received: by 2002:a17:90a:428c:b0:29c:7690:2724 with SMTP id p12-20020a17090a428c00b0029c76902724mr9603266pjg.16.1712042217690; Tue, 02 Apr 2024 00:16:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712042217; cv=pass; d=google.com; s=arc-20160816; b=lor+PXEEvny8MMOnyTaWh178i+83xwBBIT8rEat5yGcIaJPqZHoSAccvZ3uFori1dt wbH8KCUXkYFuVixutr/HQhmJBrXjDhfzxQkPtEfa8Dm2FbxFMSv7jsXy9QLZX7uWDDNu bgdCG90iUm5n612gWEIPqPEOnp3/dXSRo8bzH3yM3ebJv5z4g5vx7s0iT49w3kFH+dY8 Mg0unn+xSzu11jk/c6wQqRE+4ooA24fuMhP/VwHVGcOsrd7KIAoffxwFH+BSDu/QvsCY Mk3as0kB+Pkh2pYiPSug2KLp9RndVEOqabFBTdnOlACMWc0Nc0VEiRKMSpCp8M22c8e6 JD0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=MalrCMAsx389WOo6kyHlUvcg+zdx5CkaTnrL6g9pek0=; fh=G4AEqf3KgK7v4ajd2Lha3IiBld6emPPXZbTD81aI3AE=; b=uN3Q1CesT8iwnTNekbbyfHH3yBNOEMq0eDVdMSDu+Y6OcTcaOC5VVya20lg6DZFRVD M8vyP1giPbYa5UJp/mliVX7HCox9YC8HrhPNdQvA61v0B5kREhDl77VACkpt4bJWPtoj jtKtSMegsfolwjOqBmigZeCl4mcwgnP+VIqE83HyQFeoFPIOsJ7TscAgmee6AobJMqnU UsHaQbGZuV24nXN1mJFJ1itwVwW0mmCwy2TovlbrDHPD1VLxqvc0HlP29B+Lg6CXI2Om uEHJ9yoXXH2Bgs+cwMUPRQ87EAYjLtJN1KdfmVEg2BJow73gjO/V1RoinK+PQdyRo4Fy fn0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hranGnHn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127495-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t1-20020a17090aba8100b002a029fe52b0si13133680pjr.134.2024.04.02.00.16.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 00:16:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127495-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hranGnHn; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-127495-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127495-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A982C2813A1 for ; Tue, 2 Apr 2024 07:16:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D3C939AD5; Tue, 2 Apr 2024 07:16:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hranGnHn" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 C1FA238DD2 for ; Tue, 2 Apr 2024 07:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712042208; cv=none; b=PWiusAv73Vc4AhW4iO40SdYMegIy1hALxcxb7/DsT/cVtpKVLIC89ARZ+Gprx0tRQ7E4qkKJR24fXi/Nc26O5v5ICJqSNuzp5s6iUwwjJYpIzEQw+mOd5CVJdA40IcMWINt0JwXzrIaK4Q54T4vt636VDOftR+SMn/4DuC6kWBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712042208; c=relaxed/simple; bh=x2F2rU1R2DjIHbCuLiIdKs92iSF6WV6lSUhIxPCUgiM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NomNOEsYep3jGFj2OaysLQlIBR3mkap7zDafr+HbLvCNw4tBWFNZTSLmF9FKhigCGnsz+shvrEv6VBnL3lnHIwcf0IsjFSebmJ+FSxFuOujSlp6SXwz0EPhL7kvrFuL7qFHGHqmV4YMXiDhXi+f0+WcTIkflrZXm/3/NTc8Fqpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=hranGnHn; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C328F240005; Tue, 2 Apr 2024 07:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712042205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MalrCMAsx389WOo6kyHlUvcg+zdx5CkaTnrL6g9pek0=; b=hranGnHnGGI9cjRhn8XdbuTzJAYjXYOt+nLNTmTP0XmD3DzvU3hzLjk5DMqnokTEkiYJ3M +OY2t5ofUZP/DFLgG+dZcw1bK4aAhRE+T2ToRhudPKe8omRCuycBcnJMLS/0GY24gjv83d rbnhC0DTCSAHq5IXxUMHxU+Ii/wtc1baWk01FT2lPqIqb6S0Qg4tBYi349yQMGKksjfN2M FzJcRz0ALgHk+8NrHmOjH4tYVOI3HGVOanN1yyFo/V+ghug/eF0aOR9sowTpAlFwZGaTvN gZj+dLxgs+9KFOW/u1i3jAS62+ekcb+cTd4epbETL10sDnGNZiwkU79rgCawcg== Date: Tue, 2 Apr 2024 09:16:44 +0200 From: Miquel Raynal To: Krzysztof Kozlowski Cc: Srinivas Kandagatla , Michael Walle , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] nvmem: layouts: store owner from modules with nvmem_layout_driver_register() Message-ID: <20240402091644.35c7dac6@xps-13> In-Reply-To: <20240329-module-owner-nvmem-v1-1-d700685f08e1@linaro.org> References: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> <20240329-module-owner-nvmem-v1-1-d700685f08e1@linaro.org> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) 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: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com Hi Krzysztof, krzysztof.kozlowski@linaro.org wrote on Fri, 29 Mar 2024 17:13:35 +0100: > Modules registering driver with nvmem_layout_driver_register() might > forget to set .owner field. The field is used by some of other kernel > parts for reference counting (try_module_get()), so it is expected that > drivers will set it. >=20 > Solve the problem by moving this task away from the drivers to the core > code, just like we did for platform_driver in > commit 9447057eaff8 ("platform_device: use a macro instead of > platform_driver_register"). >=20 > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l