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: 9540615 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 AA4FA60429 for ; Fri, 27 Jan 2017 06:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9870327F85 for ; Fri, 27 Jan 2017 06:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C0E728112; Fri, 27 Jan 2017 06:23:21 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3616027F85 for ; Fri, 27 Jan 2017 06:23:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cWzwG-0003Yq-T1; Fri, 27 Jan 2017 06:23:12 +0000 Received: from mail-pf0-f194.google.com ([209.85.192.194]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cWzvB-0002tW-Nr for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2017 06:22:07 +0000 Received: by mail-pf0-f194.google.com with SMTP id y143so17954239pfb.1 for ; Thu, 26 Jan 2017 22:21: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=QRkShrVsq2oQWEGqrVfmEGbzYUkD8ttZTDTCAxyFA7Nlya/ItcQaqjK8krXy+rYXpF RYlFUxiA1cQXmaCSknmx0Q3KDjCJrhJ4UQO+tP9mI5lTb9qjWu1PWCJCzguZRvqjN+CA u2wzIsSzvb6K7Q+SdMya5ujs4JluXYCW9kHH9K5R44xpWEhkm+0dS4CnbmM5+LRM13ES uAMirNsta4WXISiBWZFXHqlfpEb4emYPHUwImrIbz6D6QvnmCgslJf0OdR3owksHPUVs 5bREGeUABAW6E0QeNFrEf9UAYw6EVzKEvMLfXNIHH9A4HFRXpBGbd3wlxB1tWjkoJlOY TN0w== X-Gm-Message-State: AIkVDXLtqY88YfOmElTc7II4QupKIKG2uxp1xecflZlipxUdevdBrqJKqG6xnBY7QtdUYg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170126_222205_809460_0BD7BAF5 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.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, joro@8bytes.org, Magnus Damm , linux-renesas-soc@vger.kernel.org, horms+renesas@verge.net.au, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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; }