From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755659Ab1JQL3S (ORCPT ); Mon, 17 Oct 2011 07:29:18 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:54473 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755356Ab1JQL3P (ORCPT ); Mon, 17 Oct 2011 07:29:15 -0400 From: Ohad Ben-Cohen To: Cc: , Laurent Pinchart , Joerg Roedel , David Woodhouse , , David Brown , Arnd Bergmann , , Hiroshi Doyu , Stepan Moskovchenko , KyongHo Cho , Ohad Ben-Cohen Subject: [PATCH v4 7/7] iommu/core: remove the temporary pgsize settings Date: Mon, 17 Oct 2011 13:27:26 +0200 Message-Id: <1318850846-16066-8-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1318850846-16066-1-git-send-email-ohad@wizery.com> References: <1318850846-16066-1-git-send-email-ohad@wizery.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that all IOMMU drivers are exporting their supported pgsizes, we can remove the default pgsize settings in register_iommu(). Signed-off-by: Ohad Ben-Cohen --- drivers/iommu/iommu.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 91df958..ff8d524 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -49,16 +49,6 @@ int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops) if (bus->iommu_ops != NULL) return -EBUSY; - /* - * Set the default pgsize values, which retain the existing - * IOMMU API behavior: drivers will be called to map - * regions that are sized/aligned to order of 4KiB pages. - * - * This will be removed once all drivers are migrated. - */ - if (!ops->pgsize_bitmap) - ops->pgsize_bitmap = ~0xFFFUL; - bus->iommu_ops = ops; /* Do IOMMU specific setup for this bus-type */ -- 1.7.4.1