Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1301730ybx; Thu, 31 Oct 2019 08:34:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGkL3aM9z1Nd4KUeFC/gTvn8qK1aFYm8+JpiyBLtrEDdQYtjO4P+Iajveg+Z2giQPO1l0Y X-Received: by 2002:a17:906:670c:: with SMTP id a12mr4617526ejp.273.1572536073643; Thu, 31 Oct 2019 08:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572536073; cv=none; d=google.com; s=arc-20160816; b=q3zeXhWO1V9WmUbmDdMKyDU6oObEedQQ228e0fR+o+A391WzCwrkL4pQCM8IFKL8A0 SYeeOYn0jwxS5FSNCbS76ZQmr7M5jRkdYGPddgqwdflUh83rKL5DorJIOam1Pxveki19 L7LT0UDAZ93R5u3N+XyFvNMqCZe1ENeJlx2xvo4YAagwgdj1lnmAtjDtlfO+pVIDkMdf DCWca3nxo5MFtaXge0qyFlGZ/uB9Tqqcm01qYkdpFNaduQ4wWM2r3BcAkvICkhoRycWu QQU7/K2QGI2A63hyVpxBiP8adBVfNgkNWVZ7AEUHAW1oztKtyUqfsec/uKCyPuksSJK0 hQ3w== 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:mail-followup-to :message-id:subject:cc:to:from:date:dmarc-filter:dkim-signature :dkim-signature; bh=QilJA9GoqEV7DEuTi90yOde7a2NNfnNSKTueAqsndTg=; b=mi3VT6emNdi8ldTafzVDAzfXHcHDiVt7Av0ja5RmYwhMPBwySQECMbwP4vDjoMCvvc J7B205xs7+SwUEghe2Y3bXFP7ysV3rXMbQv4YHZ3698m/SFpWUGhlRi6LV+fi+UPVEnT 0rDjL03sd1yPNSkdA+48x9fTA+YyGDZ8sGi0VcbJM8pr4wN7VCK7Zq1JKhIBBWXgsWFz 2zMlhuzBL7+B5IPsOrl1y07isUMOxxAjvroTZA4edegr4ITVMx8qtwk+Qw0OAcnOve/r 6NlY25ZzpVSx83+LqLrVhq9NQDzVwAtanI6F75AfJJrkNzjTKpcTAI6VznSGAwPRNJzz 2cCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=H6w56olD; dkim=pass header.i=@codeaurora.org header.s=default header.b=BixRIEE2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si4909005edi.385.2019.10.31.08.34.09; Thu, 31 Oct 2019 08:34:33 -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=@codeaurora.org header.s=default header.b=H6w56olD; dkim=pass header.i=@codeaurora.org header.s=default header.b=BixRIEE2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbfJaPc7 (ORCPT + 99 others); Thu, 31 Oct 2019 11:32:59 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46704 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbfJaPc7 (ORCPT ); Thu, 31 Oct 2019 11:32:59 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 50BF26020A; Thu, 31 Oct 2019 15:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572535978; bh=Wu1p4lTlnkRIn2ZFKfaTp50Re4Hzw0Tp88nEqxRXUxk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H6w56olDKvHUqqwcMWNv6CPNBxXRXHVmTJStViy1ihrGv7rlpUJ2er5e7b5VAaLyt Fq2cCtmjYFNyxVqK6Fhp7QCu9ZlstaFrNecEmo5rMUpWYKFXHLXIT/oBLwX9AR/Xg/ 1NDpRvZXOD7aL7nhyxf/xFSBvAaXDyjPrj0nKrlg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 423F46039E; Thu, 31 Oct 2019 15:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1572535977; bh=Wu1p4lTlnkRIn2ZFKfaTp50Re4Hzw0Tp88nEqxRXUxk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BixRIEE21yHa0q9XH28ahzi56AT/NPqXB5o4qHpBc3ERHsj3xe+eB91QJ7dod4cUX QOdIkeC7/Pahx4aCosYbabFoZIgFFqGrHVs7CS0wPPlRKUlgv6xXxTnAIPf1FtJV4j L3hacs382z2DMq/ZklkJc2iTOJ9KIWhm2wANi4aE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 423F46039E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org Date: Thu, 31 Oct 2019 09:32:55 -0600 From: Jordan Crouse To: Will Deacon Cc: 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: <20191031153255.GB8188@jcrouse1-lnx.qualcomm.com> Mail-Followup-To: Will Deacon , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Robin Murphy References: <20191030145112.19738-1-will@kernel.org> <20191030145112.19738-7-will@kernel.org> <20191030230941.GA8188@jcrouse1-lnx.qualcomm.com> <20191031120327.GD26059@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191031120327.GD26059@willie-the-truck> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 31, 2019 at 12:03:28PM +0000, Will Deacon wrote: > 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? Oh, yep, I was off. For whatever reason I thought device and module were at different levels. Sorry for the noise. Jordan -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project