Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp294272lqh; Thu, 28 Mar 2024 02:10:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxvY+YJ8vIRboiEfXTxptCpZLTCB56tDB5RKt7HQn1QrQft1dGgqxUFoDdX8wOITz9q/7DvAYue/Mr46247XoKrLIAFTDvcyn9wQyLXQ== X-Google-Smtp-Source: AGHT+IF7184iarhrI8mIZWY4dANQ3fO8VCv0X1Fb/XlbVzQbB7MxSG17objM0C0rsu6Yl0BmN1vQ X-Received: by 2002:a05:6214:528e:b0:696:3e55:5535 with SMTP id kj14-20020a056214528e00b006963e555535mr2614175qvb.37.1711617008421; Thu, 28 Mar 2024 02:10:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711617008; cv=pass; d=google.com; s=arc-20160816; b=W8RnGO5FwvPj9ZcrLrGtQZ1y6vlBctVbqEsGaGY3c4Ou5lwD1wIIjHcjWdOznKZn/O e0Pc0HDCts75ZVtrm6dG48bw8yzbRZ2i2ttjbJh+lkcmcjjfrYuA0wm1UpraxAgR9sGy n112GVgZThGnCiTtcWV3GayfStmzrWj2fikuF7IH7ITYvw58R+QlUYdhPqsVTxC7srOP NYurDf40AZZDYUz5yhWvINGsb1yRf/+99Eicmr2nlm3azaubNJz3cAGwMzHmdJ4O7jz1 jRqHQOhwVf2yKdAN281/Sr/P1zAkltcRRK5lH2FhQigU3uhbrkYE3XNp4Qcb3dpC4lGd 28yA== 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=zCJpF0RgDxuQbqozrCh+gzCpxDdlBWjw8Ik4wJnbaSU=; fh=VfL6uBK30rODQowug2PXykJTyaqhZTHf+IntoZmqGd8=; b=JDjhkPxLdFvLvITVk8dUyaN0WQOvJ1uC80VfU2uUWQtta7HqSUePY1DXzqdvJcfa22 cu9C4E9JntYUMybFqfPPtIjTe3ggRdz8ClQmKe2+thTvVjU1fX2bRyN+RGH7y2q4YlLP WctIpuCXQkEOv5dANcSL/SOOU9ZG5DUZGnUP7w92FoqDyfcgBbnDRJLGVfBD/xDnDYlV 6qOdto4eUqYqfeiM7ANXqPmJKHSfQHBe7J8OTufVIuWcSoQz6gQk6A3ngq1bYxLoVHOR SDAMgEOcLWi54MEOW8xqogf1i1ZrF41URpuEbVyMZ8nqwZtgcx1xjnn8yY6DroCctLdy oHiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFLlSdaF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k12-20020a0cfa4c000000b00690afd34f3esi971991qvo.28.2024.03.28.02.10.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 02:10:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFLlSdaF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-2986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2986-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A3AF1C25FCF for ; Thu, 28 Mar 2024 09:10:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B54E5F569; Thu, 28 Mar 2024 09:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OFLlSdaF" X-Original-To: linux-crypto@vger.kernel.org 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 405BF3C0B; Thu, 28 Mar 2024 09:10:00 +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=1711617001; cv=none; b=lbtHWiyLLQa+F4ct5N0vjDYAYFDUsEi0qArHcVoy6YrRKDzIWbId3BF37ZOIz4mUsYfEHue9VLXraYep4Rt5eGVb5TDQOnz6zJuHphr8zFrR5SwPZ5NF4LTKwgLjHhzaaABA1WgRbOJ4DP8rei/Z1HA2NDHCK3oFSFEUP0ct8Xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711617001; c=relaxed/simple; bh=buN5Ppu9AGNZtC/if8g17RcZZEQzgqGlib2VdnuWvYg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=llnRjhtlzYMgw9mR22yVZWJIz/eVD+RxtsnbndqRTfr3ths1g80V92Jk4Q8QoNii8e04StK1eEeITfG9bqzhHNWT0IuIOuEcQkyiO9DAVl0CsPwTshgg2Jt2KQpz13Qofgek37N2gpByTQ4i8U2jZCDoUlAISgbzeGst2QfCGj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OFLlSdaF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DAA8C433F1; Thu, 28 Mar 2024 09:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711617000; bh=buN5Ppu9AGNZtC/if8g17RcZZEQzgqGlib2VdnuWvYg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OFLlSdaFgLJfwlccYTUQ07QIz60FOyuC8o6pcVV92LZbtE4gq7IAodXVpi6MWqQKD /P4Fl8Qvp5yVtqoZgDTztgedrMv69WkJQHT0+Txctf1PpT/Xt7GN34m4JFuIr7B2Ob ZenIk9jv0ixo23yCmoRslgOW7owKOyIYOaTT9eixAfQmT/MLYqxgdsDEciF2ow33fx 8Bp/LnCK2rxFLnCW0HllcXCOe0nR3LyIMLLjxk5pVqhide4zeg+ntfoRA3RYM/BQBD 2/XHLh2NMuIq7tdO8199Pn4n+qV0Z9Lu1bznDyMzbl74t5Y9igoKy2SgIRxUTfCqJ8 VO6OdnuV01Mcg== Date: Thu, 28 Mar 2024 10:09:57 +0100 From: Andi Shyti To: Krzysztof Kozlowski Cc: Russell King , Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , Maxime Coquelin , Alexandre Torgue , Linus Walleij , Olivia Mackall , Herbert Xu , Vinod Koul , Dmitry Torokhov , Miquel Raynal , Michal Simek , Eric Auger , Alex Williamson , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-i2c@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, linux-input@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 01/19] amba: store owner from modules with amba_driver_register() Message-ID: References: <20240326-module-owner-amba-v1-0-4517b091385b@linaro.org> <20240326-module-owner-amba-v1-1-4517b091385b@linaro.org> <6p4cdmbhrezm7fqbe3kgrkblqgrhaq4fgiw5x4n5dnptii7kjp@vmbj2pkjglp7> Precedence: bulk X-Mailing-List: linux-crypto@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: Hi Krzysztof, > >> /** > >> - * amba_driver_register - register an AMBA device driver > >> + * __amba_driver_register - register an AMBA device driver > >> * @drv: amba device driver structure > >> + * @owner: owning module/driver > >> * > >> * Register an AMBA device driver with the Linux device model > >> * core. If devices pre-exist, the drivers probe function will > >> * be called. > >> */ > >> -int amba_driver_register(struct amba_driver *drv) > >> +int __amba_driver_register(struct amba_driver *drv, > > > > ... > > > >> +/* > >> + * use a macro to avoid include chaining to get THIS_MODULE > >> + */ > > > > Should the documentation be moved here? Well... I don't see any > > documentation linking this file yet, but in case it comes we want > > documented amba_driver_register() rather than > > __amba_driver_register(). > > > > That's just a wrapper, not API... why would we care to have kerneldoc > for it? Because everyone should use the wrapper while the real function will be used only once or twice. I see also that this is a common practice which I don't surely like. In any case there is no documentation exported for AMBA so that this discussion does not bring any tangible benefit. So that, considering that it's a good improvement, Reviewed-by: Andi Shyti Andi