Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp287338rdg; Thu, 12 Oct 2023 05:56:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEq1yKU4jywgiPp2BJbeKdwMzW/weg3Oaconxhdpj3Oun5JGHCGMPPpw9gAlICsdOHLnSDT X-Received: by 2002:a05:6358:7247:b0:139:4783:5140 with SMTP id i7-20020a056358724700b0013947835140mr29761158rwa.16.1697115388938; Thu, 12 Oct 2023 05:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697115388; cv=none; d=google.com; s=arc-20160816; b=fdzOUXYG6kebHu0P9nppoaQ0pPE4k4Viaz8Dyk4Y96knQuD/7GsgPhIuWOq+WlQsTL GID7YM4kF667Uvh4TK18zNTCTLhiieTnL6NIuCJAghN5zLv64SxIBEJxrfYrhQDl8sGe LI9t3zJYgPBYtSHdQmVWDI2PKJXjzYCHnUFq+RoSJnMfTcu3oPm7JbG/PMSLTKAAeQQM jqwClyqc6c37pW+C/ZsgGdQN0ZWMOvNCGCeWA8dOBXkRItZ0Qnt44UAyvDNdPDz8pyC3 Coe3aXumYceNfnsi3T3hkM7P4GitI7sCY0Simz66FJobK+gv3oor+6VW6GcKJWhxpIon 8isw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=E994VIDhdg9ltPSW6WjDiz1/V0W3dHuvgQ7GdXi2lAQ=; fh=2DQa/yv7VfNBDVie5R0naK9HsKqPyEbDMx2IYqfIw/w=; b=tA4nGYbQNfG9xgoxTc6EFCZvfx0eg3X6I5syByYjO8DL36708zaryRS9Blwh7bTlHz 1yxynbCCFMLacWBVSmjW0Uv/p6Do4cAFMIerz7GUQfXp5cxe2q1Sw9O9Xj/GXtvqYzKS wgcSgBlUSDkBCeCye1QIGbMW5PwLHqgCYNN2+jLm8Tjd0YI2Rf4ND9/bl/e/MjIt/DDp RF9dlZjEQ/w7Vu+KjOA8tyUN/V7APCOazWq1XEZuBAXpUohWeVqg5WGpsOVvXCSYfDPH e9abVLtVLBK5T9l2whVX3fU8PxfWXHEGHfAJFGulLBM9liITH+w+sHJH+lN902iv07rw n3qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDGE7WqE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t23-20020aa79397000000b0068bc0b772d8si13546119pfe.194.2023.10.12.05.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 05:56:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uDGE7WqE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DD9188031D40; Thu, 12 Oct 2023 05:56:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343995AbjJLM4R (ORCPT + 99 others); Thu, 12 Oct 2023 08:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343882AbjJLM4Q (ORCPT ); Thu, 12 Oct 2023 08:56:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F3DFBB for ; Thu, 12 Oct 2023 05:56:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 613C1C433C7; Thu, 12 Oct 2023 12:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697115374; bh=vNui3MSrHwAI++J+DJ8BgqwZ/T4bJhNXSFBtteOZtHM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uDGE7WqEjJP9fczYEAK2GxMtarIG+Mw1T4I/MMiGZ2e8RuFK6lB7xSJDsj2vch82I GGQh5SDSOfSQslY2IvZ5ynphv/hafD3WvIHGqCQC+joaRg775lstfsHAV7/RQz7wGL AE4D6ahH+D1IUzMNYTUp6609UQdAZaYazgWz9w5MzrozKT2aHsfbaC2bZuEz6Syw6v REIJfLp8gbKuwKyczeh/jJHI3icq15VMMeAg1cptLjzOv1QLx68uouTO0JC3KAzXDM FJlAj6r13eHhG6ARDsKWP3Z3ytqonFqIz7VN7uES2KjyyC+DFUxz7zPV15+FEPnsQq uhRuiaV+JKEGw== Date: Thu, 12 Oct 2023 13:56:09 +0100 From: Will Deacon To: Robin Murphy Cc: joro@8bytes.org, iommu@lists.linux.dev, jgg@nvidia.com, baolu.lu@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 5/7] iommu/arm-smmu: Don't register fwnode for legacy binding Message-ID: <20231012125609.GA12142@willie-the-truck> References: <3a5cd62dd21ed58f337bb9a389d301054e503dc3.1697047261.git.robin.murphy@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a5cd62dd21ed58f337bb9a389d301054e503dc3.1697047261.git.robin.murphy@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 05:56:26 -0700 (PDT) On Wed, Oct 11, 2023 at 07:14:52PM +0100, Robin Murphy wrote: > When using the legacy binding we bypass the of_xlate mechanism, so avoid > registering the instance fwnodes which act as keys for that. This will > help __iommu_probe_device() to retrieve the registered ops the same way > as for x86 etc. when no fwspec has previously been set up by of_xlate. > > Reviewed-by: Jason Gunthorpe > Signed-off-by: Robin Murphy > --- > drivers/iommu/arm/arm-smmu/arm-smmu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c > index d6d1a2a55cc0..4b83a3adacd6 100644 > --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c > @@ -2161,7 +2161,8 @@ static int arm_smmu_device_probe(struct platform_device *pdev) > return err; > } > > - err = iommu_device_register(&smmu->iommu, &arm_smmu_ops, dev); > + err = iommu_device_register(&smmu->iommu, &arm_smmu_ops, > + using_legacy_binding ? NULL : dev); > if (err) { > dev_err(dev, "Failed to register iommu\n"); > iommu_device_sysfs_remove(&smmu->iommu); > -- > 2.39.2.101.g768bb238c484.dirty Acked-by: Will Deacon Will