Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1053617ybx; Thu, 31 Oct 2019 05:06:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0SsSLVOer8/ZqczI3rB7itRAHlCHP+bZDoB//cNbcNuY647T2n2pXmGeI+6504dHFFK0n X-Received: by 2002:a17:906:3946:: with SMTP id g6mr3501738eje.49.1572523606926; Thu, 31 Oct 2019 05:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572523606; cv=none; d=google.com; s=arc-20160816; b=yiMaNSD+OGg0lobfCRpsHW1Ti+l5wVddpSVJCjZYcBOVcZNLyX7EOCDnSn4XyLgRpt n9DVzc3DcrdCoD2odtiroyMoi6MCc2pP4EZLhNuWmleTcnwt1mTKQt18BAwxUKWuIxsG bwFuBl1QIeXbYqWEx7bjUdHn5RL454V4Uw3SoxsBWX7otwlemsqfD7WCqv1h8gTAPQYk b0W6nLb91ZOLy0IXqsM5CyejQUCptNOuA8GDrnRW00CbTTjExoro9X23p4zYvPYx8YOe c81AMD0+YROVbjLXbBOC7Kq9TvzmlAmIhc0XokfSz/ttmMt+IIMnhtlQRtcjqIuWynsE TlHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=PcGQnSReXhyM128oRsBtTsDB5hLICsQiO95tJ4bJ6us=; b=mrwPmQLzYIS8eq5gjF9KIWvtBNqDnGVVTD3bVaiO//s9SCBQePw7xJmtZBumrAHoZ5 1ZctMNPnAtD67Okc96dR7f3KuJcEXkPcvtJG1jIdnPfZHvCmF6yADdEo5opBJeu4cVg3 slhXhO5s8MwbCMBmuBiskosOy5aBQ7ss9AEprjcaJ4MRRoGWSca6Q9RtUCNZMe0/x5KS DWIyRhZiX6EfVzDB2bBQ9fW7M2iN+K7gTI0zXMNXC4AoftIaepCKo0rF23ole2V7OyQy ELepQ7CTso/6Kp8aOGF11oe7agS3QPi2JMwWSpj4K2AkD4BXYuJhgLPMPmXRZ5oV4TXe Cy7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cES5yBB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w30si3785743edd.137.2019.10.31.05.06.21; Thu, 31 Oct 2019 05:06:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cES5yBB/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfJaMDd (ORCPT + 99 others); Thu, 31 Oct 2019 08:03:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:41454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfJaMDd (ORCPT ); Thu, 31 Oct 2019 08:03:33 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 97D3A2086D; Thu, 31 Oct 2019 12:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572523412; bh=PCgpgl5TvROz0Gbm25l3kuycLpN7y37Y2PSEmcK//es=; h=Date:From:To:Subject:References:In-Reply-To:From; b=cES5yBB/8oCqueLi5bsvAcXmS39D5iPrOpxzDP624XUXSRf31gQ8Eq1XNIxWwWpx0 zHeCfsdTPGGAG9UT2U1uTiJLtK7U3/b9WSHEu6JQNf3JVa9BUrxGtG5+FatO9RJuC6 OcUF/8sJ7Qd4ScxdaqU8v64N8WjOx+RD4iIZxx6Q= Date: Thu, 31 Oct 2019 12:03:28 +0000 From: Will Deacon To: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Robin Murphy Subject: Re: [PATCH 6/7] Revert "iommu/arm-smmu: Make arm-smmu explicitly non-modular" Message-ID: <20191031120327.GD26059@willie-the-truck> References: <20191030145112.19738-1-will@kernel.org> <20191030145112.19738-7-will@kernel.org> <20191030230941.GA8188@jcrouse1-lnx.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191030230941.GA8188@jcrouse1-lnx.qualcomm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 05:09:41PM -0600, Jordan Crouse wrote: > On Wed, Oct 30, 2019 at 02:51:11PM +0000, Will Deacon wrote: > > @@ -2235,12 +2237,16 @@ static const struct dev_pm_ops arm_smmu_pm_ops = { > > > > static struct platform_driver arm_smmu_driver = { > > .driver = { > > - .name = "arm-smmu", > > - .of_match_table = of_match_ptr(arm_smmu_of_match), > > - .pm = &arm_smmu_pm_ops, > > - .suppress_bind_attrs = true, > > + .name = "arm-smmu", > > + .of_match_table = of_match_ptr(arm_smmu_of_match), > > + .pm = &arm_smmu_pm_ops, > > }, > > .probe = arm_smmu_device_probe, > > + .remove = arm_smmu_device_remove, > > .shutdown = arm_smmu_device_shutdown, > > }; > > -builtin_platform_driver(arm_smmu_driver); > > +module_platform_driver(arm_smmu_driver); > > I know this is a revert, but wouldn't you still want to be at device_init() > level for built in drivers? It always preferable to not defer if given the > choice to do so and device_init() is the right level for this driver IMO. Hmm, not sure I'm following you completely here. With this change, module_init() is used to invoke platform_driver_register(). For builtin drivers, module_initx() expands to __initcall(x), which itself expands to device_initcall(x). Or are you referrring to something else? Will