Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1094501lqz; Sun, 31 Mar 2024 13:37:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVD9hrFhUPjE9ueJCnQz8JU7DHPOawectVJhvRA2RICwoWQX07Db/gcW5T06z+dw0VGssfjBLkrjkoJ2nqKL7VWjk4YNPA5+kymrtvwJA== X-Google-Smtp-Source: AGHT+IGf/JdDnvguf9OkaaA7yxz8P6NyTDc3pame/cdLZnGkpxfn0Vn7jdmOm0sNdiL0R7PZY1IK X-Received: by 2002:a05:6a21:6816:b0:1a6:fdfe:e7e9 with SMTP id wr22-20020a056a21681600b001a6fdfee7e9mr7735606pzb.23.1711917459503; Sun, 31 Mar 2024 13:37:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711917459; cv=pass; d=google.com; s=arc-20160816; b=Ora62mjBaTf2XZ7ssPqqAN/vW2gLlPFCbJ7/3nL6yAbP8C9lUrjWpa0O34342F1FCr 6rEl0wB9olDj4J0aGn37UoXsDE1bWfy2jZpsYctFRkO8fN/LALDFoltFOFadlqG5N/Sc cJH5tbgXoYOAFisIkvBIskWXv7goSJMSWLKtzsyff4YnJTfj40aneG/MKwPnR6SmzM0b QFDV7YQ/Qn55uAwvpmKMPlFQlQXg1OyDNlSrq9/pJptUKxnPQNzKKXn9LNUWjCMk5Yw2 EolhhpRP7lTJh4IyDpjH11ygd+CQASXXvwOZCJznRnEozy3tlGdH/Ht6EpUYJD/NEOqH 4yqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4J4UxMw8vCu/e4YwDL2de2cwdYJiMGR5S+olW6/Wq0o=; fh=9LjvLk6lQcOpnWHgM2c3tXP5n2qsSGjb57C39Sa0bFE=; b=ShoSMOODN6y8QueEhLjM1plI3n/vRs6EljG0/3OHSc3Ei4aWugsPZGv1PB7al9YeQ2 qLwRxz9JbkoAXEaIc/IxwGRKDP0+HkRgkk1kc4w6HIFayM+8zCVEbQu85YCL+Rm4GW9S 9mSEznorCwV6XZS4d1j9yZfaweRCr+SWTdgaFZTUQYwkeOBnTCUOWshGB+edZlueUlcg OB5+ncCk+vs0adR7xQN7NeHN/9SNNDivEdP9LWeDRW60FF8DXDKTkGkqf3RaiNAbhilz orMlpqol3yUaVckeRsnnyWqYOW4DwxeicL/bHaD2+veerHEGDtglSDwfHtyan+J55Ewz Dkyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=oAZWgVnq; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-wireless+bounces-5703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l37-20020a635b65000000b005cee0fe93aesi7643160pgm.472.2024.03.31.13.37.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=oAZWgVnq; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-wireless+bounces-5703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 2B8E528330C for ; Sun, 31 Mar 2024 20:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C9D463087; Sun, 31 Mar 2024 20:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="oAZWgVnq" X-Original-To: linux-wireless@vger.kernel.org Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 018E8433A6; Sun, 31 Mar 2024 20:37:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711917455; cv=none; b=g7SDHmtBBpTSWRoZuYaQfblOlW/8I+7q9qzOjCKHvRV8XksDCMKyyHzDvZy/OLGhe2oB01RocpKTyREmwNgXiyX9DH580ckBCji3t77/Hc+4yzhhtrXDO68tx79l8+RW416vjfYEA+nicaP58f1akEW8UN/AN+vgLyzMNZyb960= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711917455; c=relaxed/simple; bh=I/ZnOtCPhHLN9eQSnKGa5MWdlOxMIBa92bbKwdR2sWk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MPUtU7g3Qcxs7MiSIsZg+LbjIWfFm14/nQCosw7g1ObpkrB7cnTtlubEJneCUCtXu8gnu8PtKxfhfxpfPJUs2XpK+mTccW1JsGVyn8sJ17q/vKYNYS3EmpIXpNyMwPXlPSkW/PGRwzoLa9x9O2hDRnG2ckq+bQrL5P5f91g6Ecw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=oAZWgVnq; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 907CA1FA4F; Sun, 31 Mar 2024 22:37:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1711917451; bh=4J4UxMw8vCu/e4YwDL2de2cwdYJiMGR5S+olW6/Wq0o=; h=From:To:Subject; b=oAZWgVnqbpNY/NnnmLvGf4jms0+WYBdOHuj6GVG2+twoiY2kvJ59PArKOwyHgrBFu /MGz/tkWe+HyJtFWVkp5epS7wje5jgCr+lMQ4ElORxQO6762OoDo81tvY6X4FwXtNa HtADJytvzwGNfGcbyBDGljlmMSyQ8Dy7odJIiQ1jHODmYQLfOU1g5/m4W/jjtva54a Q/u5I2zChQUKUzs781NCH5eFrqXybF+IgTiw37MCg7aj8nrUAtNk1lSZF159sZhKP8 C4OKL4DuR+tHGgQgT6myIyyFmHPMFt4OTBBONnZQayJGV06MpVBND6girIBxOdCYJr MPrpOIkJWhgrQ== Date: Sun, 31 Mar 2024 22:37:29 +0200 From: Francesco Dolcini To: Krzysztof Kozlowski Cc: Ulf Hansson , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Brugger , AngeloGioacchino Del Regno , Kalle Valo , Jeff Johnson , Arend van Spriel , Brian Norris , =?iso-8859-1?B?Suly9G1l?= Pouiller , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com Subject: Re: [PATCH 1/7] mmc: sdio: store owner from modules with sdio_register_driver() Message-ID: <20240331203729.GC4116@francesco-nb> References: <20240329-module-owner-sdio-v1-0-e4010b11ccaa@linaro.org> <20240329-module-owner-sdio-v1-1-e4010b11ccaa@linaro.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240329-module-owner-sdio-v1-1-e4010b11ccaa@linaro.org> Hello Krzysztof, On Fri, Mar 29, 2024 at 06:24:31PM +0100, Krzysztof Kozlowski wrote: > Modules registering driver with sdio_register_driver() might > forget to set .owner field. The field is used by some of other kernel ^^ double space here > 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"). > > Since many drivers forget to set the .owner, this effectively will fix > them. Examples of fixed drivers are: ath6kl, b43, btsdio.c, ks7010, ^^ and here > libertas, MediaTek WiFi drivers, Realtek WiFi drivers, rsi, siano, > wilc1000, wl1251 and more. > > Signed-off-by: Krzysztof Kozlowski My nit comments are irrelevant, but given you did the same twice I felt like letting you know. Reviewed-by: Francesco Dolcini