Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1926235lqz; Tue, 2 Apr 2024 01:44:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+VLNpRJKT8isQna9gU+mWUKt4iWBVMv/clclJOj+ctJP+JuMX2TcV6MMtUp6+vkbWLpyeauD/GCP73qhOlKq6O1Y49duojMoab10GKA== X-Google-Smtp-Source: AGHT+IGfzR05bxrkzq7XReX0V9TG8J8p3loGlB1uts9xPBBbIhr+mxjFGRyuQTyIdADR+nsYvdzb X-Received: by 2002:a17:902:ec81:b0:1e0:58e:88a8 with SMTP id x1-20020a170902ec8100b001e0058e88a8mr14918478plg.52.1712047498252; Tue, 02 Apr 2024 01:44:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712047498; cv=pass; d=google.com; s=arc-20160816; b=jf4qoSoM9Yh6HR8Aum6i8tpo2FeJznkjChjffK2ssZcks5hoam0yLp88fmOuARGIQn 5kahoNo89jUAU7Sbd7WsBsD5l779nonr3zmq2NnnaMPSiUFGlNwb95UalF+uAUG7gB/W r0PrCS+4eI1H6Cr4nNEOI9pUUnUvHepFLwVdLJQXfJYRGuN6BIhk1wJF88IlkPBC6aOV 109gTk+tcAxsZ0UXCmUwj/YZnw2FU8VlNi+NW4QKAoNy39+QtW3rGTZACQGXfPaQS1QN CuRkuHCKAeD1hOK2y0OWtDrEqCDKjJHrQDlopPkvYkhoKVeruVcaRfO/BK9/GVpv7Qee Qm+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:to:from:cc:subject:message-id:date:dkim-signature; bh=TM1LrNJsrVDNDHhDqbdB4wW58y0p2fxLOsHdILIt6Zg=; fh=1o+KuDUuhsZZDR6tF89fTmsqVK6KKnGqm+Wr2krDgNY=; b=GM1l0U8rEcHZEUyVsdc2jU9abtT/Ss/XD6Zt4U1vZg6d6cI0xtoWvtCzRbi7gRkNRf qQFzzoa1HiIUgah+3GbbCMs3I1jkiqRgkuyVLqoMuIw5Jf3+FDLmUkZE3EY0skSL1QKZ F89EV1yCdItrFKsnSMI8p2ZZnd+FRV2LYV0Wf2PmDODch7UG/X7/1tF6Uhn6C8dycAzI l44cGn5B1xOZbKaYkM/o9wPTIXztRFIrRS3XlrAtrXiu6nWCg+4M78xDorruFllp2suH Ixzm9UTQNqJ5w+iWI+A0GdxfCwA8luX4xaEQW1VwmKWMv2SDoB1Gz4m20DoAoDhysWWq AWnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P1IO3xRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127567-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127567-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b17-20020a170902e95100b001e2037d4657si11121555pll.174.2024.04.02.01.44.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 01:44:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127567-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=@kernel.org header.s=k20201202 header.b=P1IO3xRO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-127567-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127567-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 0DCFA28523E for ; Tue, 2 Apr 2024 08:37:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F6793FB14; Tue, 2 Apr 2024 08:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P1IO3xRO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C66071772D for ; Tue, 2 Apr 2024 08:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047047; cv=none; b=pHMyvnF+xUmRLG63uUStI6BqRWEp1MkuvMnnsfEck+FfEh0Oj3gJE9yVgdIk8hEb9CNmjvjYt4hZmf+5QAutOgoVvx8HLo251B2MlwzHZgb7U6Jrx2r4R+bM9/IaVE0XAhHpmAIP1845KJs8J4tt236abocbOxHRp+xaxz1qSeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047047; c=relaxed/simple; bh=OHCex86ejAIFqX000VOlgpmI23A1qiIbvTNM5wesSIU=; h=Content-Type:Date:Message-Id:Subject:Cc:From:To:References: In-Reply-To; b=XlOcozchV1jf3NTyfa9LXWWMo6AVNnMcMn5UX5kKM+BYXZCvTY1z4ILNdxqj9cQygrsdnLj3pCRmwlY0i8JZW5g4pekXgDS3uTQKF2rjGb7yAmOPEtpOFAOn3OYNW3laVeVSpzOzZE7KY5Zs0kJ7Gc5akFa6KUOoLuY/Fd0n7v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P1IO3xRO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5258AC433C7; Tue, 2 Apr 2024 08:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712047047; bh=OHCex86ejAIFqX000VOlgpmI23A1qiIbvTNM5wesSIU=; h=Date:Subject:Cc:From:To:References:In-Reply-To:From; b=P1IO3xROQZGS2fCZ06UxWybjaAvUHfySV+PL9Lk/sdZX0HSDZqNn8TzMqg6B1atOP NpzgdA03rRe+GmeaDJS4XjpJ8owWSw7BMiAO2dINP7wuSImLIJ5730esclltvIC0or QwI+D87nzxVwJ3mpj8Oo4FKhGF+cNhfL8mWppEQzzaWBN7mASJ06fajusyPARVNTNQ ++nLF+qIwMOlMjSFXZeeIsFpqid0PTSKgiHnTPzzXKRU0EtV52dwWjnXKq+VYeIFUH BKLELzpvOVTvNNTC+AnYyiUfLL8p9RfuDY2TBDyKlq3CAjkK61BJ3vmbTndmkTbAh3 KNHTlO9iKb91Q== Content-Type: multipart/signed; boundary=da0864b69030f7d19a4d86df6475a90ba83b3b0f6fe192d174a168ba9ad7; micalg=pgp-sha384; protocol="application/pgp-signature" Date: Tue, 02 Apr 2024 10:37:24 +0200 Message-Id: Subject: Re: [PATCH 1/3] nvmem: layouts: store owner from modules with nvmem_layout_driver_register() Cc: From: "Michael Walle" To: "Krzysztof Kozlowski" , "Srinivas Kandagatla" , "Miquel Raynal" X-Mailer: aerc 0.16.0 References: <20240329-module-owner-nvmem-v1-0-d700685f08e1@linaro.org> <20240329-module-owner-nvmem-v1-1-d700685f08e1@linaro.org> In-Reply-To: <20240329-module-owner-nvmem-v1-1-d700685f08e1@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --da0864b69030f7d19a4d86df6475a90ba83b3b0f6fe192d174a168ba9ad7 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Fri Mar 29, 2024 at 5:13 PM CET, Krzysztof Kozlowski wrote: > 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. > > 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"). > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Michael Walle -michael --da0864b69030f7d19a4d86df6475a90ba83b3b0f6fe192d174a168ba9ad7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iKgEABMJADAWIQTIVZIcOo5wfU/AngkSJzzuPgIf+AUCZgvDxBIcbXdhbGxlQGtl cm5lbC5vcmcACgkQEic87j4CH/iyWwGApFLJ3/8u7BW1Nu9VLng/g6AXHPywIVXs y58D+lf5bN/DnIsCHk88i8axaeAc3XiEAX4gazxHDDv8Gg01blW6Jq6aE5pHrSeG lZpOUdqiPEEOo6WFxWDOn+/oh96hIDPcz9c= =avti -----END PGP SIGNATURE----- --da0864b69030f7d19a4d86df6475a90ba83b3b0f6fe192d174a168ba9ad7--