From patchwork Fri Jan 27 06:14:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 9540607 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DD3E3604CD for ; Fri, 27 Jan 2017 06:21:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDFC927F85 for ; Fri, 27 Jan 2017 06:21:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2BE827F17; Fri, 27 Jan 2017 06:21:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CF3C28112 for ; Fri, 27 Jan 2017 06:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753870AbdA0GVu (ORCPT ); Fri, 27 Jan 2017 01:21:50 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33334 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753898AbdA0GVt (ORCPT ); Fri, 27 Jan 2017 01:21:49 -0500 Received: by mail-pf0-f196.google.com with SMTP id e4so17893633pfg.0 for ; Thu, 26 Jan 2017 22:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=0Bh+Bra43h8uKKyKDJ2Ljg4Nl9PI62airwRplt2dw3o=; b=tkSpfBI5SXBtMcSFisfLjj9Y0yVe0REd1HJg5vS5Yc83sN5xJXVVkgGZET2DErtXZb JIMoHkJmSXDq1gsxlkpdbd3sJahCYocQpJ1yVop7+HAe57q6hlDsIcfwEjX6VQtQH56z MLnMLSdG+4PITXj7PTd/eBd6vVmkTiTvIshikOW0aowJBHplkPJeFMdggAOhFiyCmYLZ TTMfAGJS1fPPlOBBs0DQKfbizmGI5zQM1fK6z24x9vpEIiFYSt/phHoPxyZhKFc0dyjI mf68hRx6NAT9Q6cAJA67EkKkZLXJ0+NxJYszCPh9FgUyuKT1mxvIUCIZZEUhw/Eq03B0 QwHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=0Bh+Bra43h8uKKyKDJ2Ljg4Nl9PI62airwRplt2dw3o=; b=fkXlKVfea5Iq4yub1m7CzVUw/HdfH0OXKbf4FuR3LfOCX1WLIOZ9QikJPoWAnnEtt6 SEufGMkVzVT4XkdjEgpLGD2X/AUa43bNqrHE+qCMqXcUdUGkzs0wKqWykvarLsZoKsOJ qOv/STa0iEZSGobH9oPTB8jEk6Ty+EnX9/DELU38xaHk17O8HoOD9UfrCazrvTSLRwZE Veigwt/zUkemX0r6s9IROnBjrxE3XqntLuozi1+hh+6yYZENGdo7V7vmZBf3jKGjtNq2 IBe+98k6r01qTpxKOpI6DqsQejmASI6c+vCxsjFzyeL0INgJ51RLHGh4GUQsxUqZA5Sq gprg== X-Gm-Message-State: AIkVDXJi3IVyxzngNP32jX7nEcy/v5u1pyYbTqSw7EbvSEqk3nngmJ8RkCIvrItn3RyATQ== X-Received: by 10.99.171.5 with SMTP id p5mr7564731pgf.182.1485498045059; Thu, 26 Jan 2017 22:20:45 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id l25sm7775843pfb.24.2017.01.26.22.20.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 22:20:44 -0800 (PST) From: Magnus Damm To: iommu@lists.linux-foundation.org Cc: laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, joro@8bytes.org, linux-renesas-soc@vger.kernel.org, horms+renesas@verge.net.au, Magnus Damm , robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org Date: Fri, 27 Jan 2017 15:14:25 +0900 Message-Id: <148549766541.22203.15197831330522408915.sendpatchset@little-apple> In-Reply-To: <148549764733.22203.16459470412085471955.sendpatchset@little-apple> References: <148549764733.22203.16459470412085471955.sendpatchset@little-apple> Subject: [PATCH/RFC v2 2/4] iommu/ipmmu-vmsa: Get rid of disabled device check Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Since of_iommu_configure() now skips over disabled devices we can simply drop this check in the IPMMU driver. Signed-off-by: Magnus Damm --- drivers/iommu/ipmmu-vmsa.c | 7 ------- 1 file changed, 7 deletions(-) --- 0001/drivers/iommu/ipmmu-vmsa.c +++ work/drivers/iommu/ipmmu-vmsa.c 2017-01-27 13:09:36.840607110 +0900 @@ -1051,13 +1051,6 @@ static struct iommu_group *ipmmu_device_ static int ipmmu_of_xlate_dma(struct device *dev, struct of_phandle_args *spec) { - /* If the IPMMU device is disabled in DT then return error - * to make sure the of_iommu code does not install ops - * even though the iommu device is disabled - */ - if (!of_device_is_available(spec->np)) - return -ENODEV; - return 0; }