Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1775146rdb; Sun, 4 Feb 2024 00:24:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZbbSx8GOMJjLT9BQNs+qHMOPNMPVz5Q+pedsmhGPyiplOAR6TIEVjaudkYG/eAK3PBjaw X-Received: by 2002:a17:902:c3c1:b0:1d9:411f:4303 with SMTP id j1-20020a170902c3c100b001d9411f4303mr12382470plj.9.1707035067921; Sun, 04 Feb 2024 00:24:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707035067; cv=pass; d=google.com; s=arc-20160816; b=SlY1fkW3P8LN+7JG9CRUW6cVsbckunoukBGUwmsie8P7APrlQEoZ8PUrF+tdvXrn40 suDpRxp54qh1o0uILZRZUfGfCT6MLvv9/Xjr0rXdzF7Bd47HygRE+uulYyvqW7ISNowL aT7ls5ii0pM+HiccD9rEvO30w1RZWgPsURM6oWdEdkNqOWOQYufE9KejHN1Vdeowlzzr AcNid6XDJALjWJXSGDXV3hjqlpV1HEwaIm/E4nJZn9Dl+dz5SjXJu/gqV613eXTMqi1n sw8WwJG1rBdKFdQybDCd5G5HNoB+qf7rHENgmm2/rcNC7NDmGg45qPJKL3ORMtmv7ICB STUA== 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=22gXT6Lk4GCIOB5fAwT1DkL1QmNDZwQuETByHrVECOE=; fh=2UYpYs1C0d4+FllzNqczl3esWTeGOGJpqyALx6IBPI0=; b=T82iIm/awbY7quxmVe7V/l3pF9XDwKvZqQOndLWf+ETtIZTvQVbSpTuT511NURR+HQ LFrYeV/YXkp1eRaXKRBCbCIdE/ersPyCW8uvb3nXsxbxxtu539s9nGiljRulNyS5gFYS Y+1kCweY3TM4rypkjo/wUcVIlSnIOc0GBqB1ZjeNxbiUwcmHP6vzL88aLMW3KxlQ7yfx df4AIKSJvD3/6fgmg22QBuKtRg0tUeGdJuZd5c90LFVl8FpBXEhS6VmKwkWOhI450oIe X8C0kaKQ9KKz8AZHD/1j/z3Yf+/XQC+Vchl4aSd3ZlvUs6O8X5CisWkajRuWHHuvdpe5 EvJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DVkmGt+L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWHqTJnfadnZMfW/y/0oWxjoQ3LhI4UMHCDDW5FUr9GEzb1PSDl38vwdAWVeo6nxYMEY9OMrWMH9CeC/M+0e3Kvj+szyKbqYaxYsLvTCw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q80-20020a632a53000000b005d8c1b5a3bdsi4071443pgq.216.2024.02.04.00.24.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 00:24:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DVkmGt+L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-51435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C9EDB210FC for ; Sun, 4 Feb 2024 05:19:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C1A16FD1; Sun, 4 Feb 2024 05:19:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DVkmGt+L" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (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 ED12A6119; Sun, 4 Feb 2024 05:19:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.134.136.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707023953; cv=none; b=FwWIp9xkCNdm5oqzMPHVAfNL+ullsOoUEYRw7BdrSW+FaoMc9YvCsUkNlElT5uexFiUSfTo+lk2Z/SeKsE/y3+vOboUh3aG2/OCewfg7iDGUb+5XZSEhgjTZ4ZibcjCm+GSAdy6L99NKs8BfQop1YNfNP0swRvAED97gb5mvd6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707023953; c=relaxed/simple; bh=P6VGiDl0jduaJYu6jiH+VhGE0WfXIZzpvflkq0mKjH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TiwuX0CWgeqXJuwVM9JA60kpe3mhM3WMIMCWvk3x/sBd5bPHcnh7HLq8bj6tiQF+WKJHLQ9G2s5qdPS61ssdC5fn46GV2TudhDZ8QsOLgCI2+dOzPgkKz6pcQGMcqnIkmF22PgCzyIiPlrMaFslziPYRTjtb+JCZFocea7t4wBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DVkmGt+L; arc=none smtp.client-ip=134.134.136.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707023952; x=1738559952; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=P6VGiDl0jduaJYu6jiH+VhGE0WfXIZzpvflkq0mKjH4=; b=DVkmGt+L+gvx+1jrSn94ZVGw7jn9EePrfnUiO1KIMFg7nyXQ9NdwaSaP yLUfc84f8vCNqxbHAGkaX/Cv2dLEu4qHq4W3VFEoxVQlEsISGO6A9N95U i/ZFh+rFQH/Gfgm9V5IEhcksH/pN7glLC7Bu1hGgjX0hNhZKWkCF09hhZ +ROFFYK5yz1GxETiQFU+lUdIXuP5oq1LmJQaldgEcF6bgzCW37vma+BYT llVdOfdUjVajkWzlBFje2jHli1x+c5YurDYqbKryI6tX1S2w+sXE9dJ5c o2WLvoToBs0Va3t1GGP5e1yn4aZiaaecpXK8dp0HhS/2SaJk27EcRHr7L g==; X-IronPort-AV: E=McAfee;i="6600,9927,10973"; a="394787343" X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="394787343" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2024 21:19:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,242,1701158400"; d="scan'208";a="23694652" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmviesa002.fm.intel.com with ESMTP; 03 Feb 2024 21:19:08 -0800 Date: Sun, 4 Feb 2024 13:15:35 +0800 From: Xu Yilun To: Marco Pagani Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , Jonathan Corbet , Greg Kroah-Hartman , Alan Tull , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fpga@vger.kernel.org Subject: Re: [RFC PATCH v5 1/1] fpga: add an owner and use it to take the low-level module's refcount Message-ID: References: <20240111160242.149265-1-marpagan@redhat.com> <20240111160242.149265-2-marpagan@redhat.com> <0720eb91-72f9-4781-8558-8a1b0a3691c2@redhat.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <0720eb91-72f9-4781-8558-8a1b0a3691c2@redhat.com> On Fri, Feb 02, 2024 at 06:44:01PM +0100, Marco Pagani wrote: > > > On 2024-01-30 05:31, Xu Yilun wrote: > >> +#define fpga_mgr_register_full(parent, info) \ > >> + __fpga_mgr_register_full(parent, info, THIS_MODULE) > >> struct fpga_manager * > >> -fpga_mgr_register_full(struct device *parent, const struct fpga_manager_info *info); > >> +__fpga_mgr_register_full(struct device *parent, const struct fpga_manager_info *info, > >> + struct module *owner); > >> > >> +#define fpga_mgr_register(parent, name, mops, priv) \ > >> + __fpga_mgr_register(parent, name, mops, priv, THIS_MODULE) > >> struct fpga_manager * > >> -fpga_mgr_register(struct device *parent, const char *name, > >> - const struct fpga_manager_ops *mops, void *priv); > >> +__fpga_mgr_register(struct device *parent, const char *name, > >> + const struct fpga_manager_ops *mops, void *priv, struct module *owner); > >> + > >> void fpga_mgr_unregister(struct fpga_manager *mgr); > >> > >> +#define devm_fpga_mgr_register_full(parent, info) \ > >> + __devm_fpga_mgr_register_full(parent, info, THIS_MODULE) > >> struct fpga_manager * > >> -devm_fpga_mgr_register_full(struct device *parent, const struct fpga_manager_info *info); > >> +__devm_fpga_mgr_register_full(struct device *parent, const struct fpga_manager_info *info, > >> + struct module *owner); > > > > Add a line here. I can do it myself if you agree. > > Sure, that is fine by me. I also spotted a typo in the commit log body > (in taken -> is taken). Do you want me to send a v6, or do you prefer > to fix that in place? No need, I can fix it. > > > > > There is still a RFC prefix for this patch. Are you ready to get it merged? > > If yes, Acked-by: Xu Yilun > > I'm ready for the patch to be merged. However, I recently sent an RFC > to propose a safer implementation of try_module_get() that would > simplify the code and may also benefit other subsystems. What do you > think? > > https://lore.kernel.org/linux-modules/20240130193614.49772-1-marpagan@redhat.com/ I suggest take your fix to linux-fpga/for-next now. If your try_module_get() proposal is applied before the end of this cycle, we could re-evaluate this patch. Thanks, Yilun > > > Next time if you think patches are ready for serious review and merge, drop > > the RFC prefix. That avoids an extra query. > > Okay, I'll do it like that next time. > > Thanks, > Marco >