Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp863809rdb; Tue, 30 Jan 2024 00:14:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFY5a5FASG02Eo7iU4KQMwPVJCu/gSPJJ4QSJKoBLE64yNZjs0ZfOXa+7sj+5MYOBx05E1q X-Received: by 2002:aa7:8c4c:0:b0:6dd:a32f:d383 with SMTP id e12-20020aa78c4c000000b006dda32fd383mr3957259pfd.29.1706602481336; Tue, 30 Jan 2024 00:14:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706602481; cv=pass; d=google.com; s=arc-20160816; b=Qb05rfhS5IIwof9Mr0PJ/NqADItnNSJpd6Xlx4QpHeIzZjMq/+KsPY8eGFE+H4y+j4 QgCNUha2QGI4wnELPjmX/FC59kQ9sdnGhBHXh4DzA+lqFTC0Xkoijy8FPa8sdHfhiPH8 fo3MZ1oMNMPb1mxMmBAi4ZsX706qGU/2pX+E0PUU8ycyHmGT4oSmzreC0cfk+COr3SAD QoHenHU3G8tbHU75KypifxbBvWC425fEhm+vEAPOqopoI03xkAiOsMEM6kwd4py8XaA7 ZNE7D7KN3xtkoRF0GqDtI99RCdgl9KfBuaO5JzUk1iAQSnml065/kNqAf6kXMLW9inYv x5/w== 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=bINPXWUsofqUb7iTKWlpnPujRgQekJhouPuchLvF6co=; fh=FhDb9nm4o9ojrcM3mLNvO1+eSmY4sKGz432NSasjwpY=; b=fAFwhBGK/QYolbm29LFS5DmpmuzDQUQp0PTS2o2g0fqTK6322/lFaMdUrmg9ATToN7 UwGXX83p6VOufjNBeJ0DYwsptOibiLw6cazHb3YMslxSYMeRLydIVHW+MkqChAL+2TAG kd9XyaLIz6cnzeA03qzyWf7AtfnQEZ+XRkxgN7dm5FvidJ5Gpe1SPEADhuzQKaMJiBtC bno5fbamUF/3CytY13ktrrFOllhfrKebl5MAG6oCd+9OS5f7IwcJ5jsUuCWBCf6Ggac5 YlMVlpwmYwmp5XcZKzRGDR/Bq0FvTlyvDIWc4iAwG2xZ//7j4TXvW6camYb98AtU6ASk saJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VLPlyD1L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-43935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t2-20020a6564c2000000b005cee03d1803si6797100pgv.750.2024.01.30.00.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 00:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VLPlyD1L; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-43935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43935-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 44406B24534 for ; Tue, 30 Jan 2024 04:34:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE137381B4; Tue, 30 Jan 2024 04:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VLPlyD1L" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 64376381A2; Tue, 30 Jan 2024 04:34:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706589275; cv=none; b=VkPvLLBV9IXN7o072Bhi0gPjH2wWjTKTeEM+sfu+tb6vOKgTnM4lhiNj9uEORbFBCRkPyBcOLSmXEOtL9NL6h0S2PrASqO9rCS2Z/LPsvZodSvO9U4e99bt4io2hKGcOpNfWgWdEeGivCfJSZqxf/6JSWxAgfzQJbLKtLfstAtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706589275; c=relaxed/simple; bh=xriwrT8PK5ZnMFWSAiOQ0+sQh4cRZ169864/lire6Kw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YegMJT1XXxuWrjpp8mrYe6EupJ8MblTFLS0TqewLiLdzfP1bMGD3Fux8z59PGZmogLA0JHcOi7O8gC5r1om9g0TU5yXVSHHMMGP39Ut97If9oyzXCIbnaIsS3FD19NnJ6PsYM5pnRLIigpznDVvb172LYooFQRHl5rKByLP1/oU= 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=VLPlyD1L; arc=none smtp.client-ip=198.175.65.14 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=1706589273; x=1738125273; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xriwrT8PK5ZnMFWSAiOQ0+sQh4cRZ169864/lire6Kw=; b=VLPlyD1LSzMSQed3d83ih9aHEWWGMSz16eiNeUKZvWNIXkc/7uNI/px/ MWuGqArH2pBrmCdn+R1vxFsk01eSFlYUV7r28mKxau4rdaW62UlCkVwJc /2QzW0iXwRe95Ihdr5sZc7eDI9gHTFDOxaPWRyy3p8v9FSzIXAd18c/JJ IjeE95Z5SW0FUqtq3mZ7b8/KBVpMCnxXp8AXark5GKcDY6tvqCgH7IKnA nhmbyOwe5efOZUM4NZepo2aLr2CjgNMJXcHxD/ie5pox2eT8IBnceWaGD 7aavG403yYpTOtjR2LgFt6zP3QvqVcJIkDd99mt7djUbTqH/tzVNUKap9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10968"; a="3042805" X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="3042805" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2024 20:34:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,707,1701158400"; d="scan'208";a="30022513" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmviesa001.fm.intel.com with ESMTP; 29 Jan 2024 20:34:29 -0800 Date: Tue, 30 Jan 2024 12:31:04 +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> 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: <20240111160242.149265-2-marpagan@redhat.com> > +#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. There is still a RFC prefix for this patch. Are you ready to get it merged? If yes, Acked-by: Xu Yilun Next time if you think patches are ready for serious review and merge, drop the RFC prefix. That avoids an extra query. Thanks, Yilun > +#define devm_fpga_mgr_register(parent, name, mops, priv) \ > + __devm_fpga_mgr_register(parent, name, mops, priv, THIS_MODULE) > struct fpga_manager * > -devm_fpga_mgr_register(struct device *parent, const char *name, > - const struct fpga_manager_ops *mops, void *priv); > +__devm_fpga_mgr_register(struct device *parent, const char *name, > + const struct fpga_manager_ops *mops, void *priv, > + struct module *owner); > > #endif /*_LINUX_FPGA_MGR_H */ > -- > 2.43.0 > >