From patchwork Fri Apr 19 16:55:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Murphy X-Patchwork-Id: 13636676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E473C4345F for ; Fri, 19 Apr 2024 16:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+UKeZNoWXCTZO2RpVJ0zQawKfHhRIHAkCyryXvvZxo4=; b=hPHL86akUBIqiD UZ3m3RKjtnZiG08SpS2QkbsLmarkYJ78OxBpNwadO3BHogg9fbZ/EPK1ohNUW9gs1V8ysSEnIMJhj h2MejcYYYl7fuTG6MYPeKz0uXqlo5nWDKFkWqWnqSdPG3hXxUeDNWp79iDjlIXqdB4E4vzaIKK/vY hdbyOxfR4oQZf87ogvxk0hLHkpu2/5JxkFXIcWiSpwYZRkoGfd2WjjZW6QdQfsm53JD4m2dvYibcx oYKWnOShiihHNDX8TZqr1yZSUFF60QC8P9vVZMyXdv+eThbb4q48pCFTAPfJP04ztVy/HpNG6LANp NeR/MVh5XfncIeVcQ0bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxrXS-00000006S27-3hn5; Fri, 19 Apr 2024 16:56:39 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxrXD-00000006Rs2-0eeZ for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2024 16:56:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D3F1339; Fri, 19 Apr 2024 09:56:49 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1EA7A3F792; Fri, 19 Apr 2024 09:56:18 -0700 (PDT) From: Robin Murphy To: Will Deacon , Joerg Roedel Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Rob Herring , Saravana Kannan , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , Jean-Philippe Brucker Subject: [PATCH 0/4] iommu: Remove iommu_fwspec ops Date: Fri, 19 Apr 2024 17:55:58 +0100 Message-Id: X-Mailer: git-send-email 2.39.2.101.g768bb238c484.dirty MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240419_095623_489441_6BD97643 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi All, Building on top of the arch_setup_dma_ops() cleanup[1], the next step down the chain is {acpi,of}_dma_configure()... There's plenty to do here, but it may as well start with this fairly self-contained little cleanup, pruning yet more redundancy and exposed API surface. Thanks, Robin. [1] https://lore.kernel.org/linux-iommu/cover.1713523152.git.robin.murphy@arm.com Robin Murphy (4): iommu: Resolve fwspec ops automatically ACPI: Retire acpi_iommu_fwspec_ops() OF: Simplify of_iommu_configure() iommu: Remove iommu_fwspec ops drivers/acpi/arm64/iort.c | 19 +++------- drivers/acpi/scan.c | 38 +++++--------------- drivers/acpi/viot.c | 11 ++---- drivers/iommu/arm/arm-smmu/arm-smmu.c | 3 +- drivers/iommu/iommu-priv.h | 7 ++++ drivers/iommu/iommu.c | 20 +++++------ drivers/iommu/mtk_iommu_v1.c | 2 +- drivers/iommu/of_iommu.c | 50 ++++++++++----------------- drivers/iommu/tegra-smmu.c | 2 +- drivers/of/device.c | 30 ++++++---------- include/acpi/acpi_bus.h | 3 +- include/linux/iommu.h | 15 ++------ 12 files changed, 66 insertions(+), 134 deletions(-) Tested-by: Jean-Philippe Brucker