From patchwork Wed Sep 25 21:50:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 174426 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1205621ill; Wed, 25 Sep 2019 14:50:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsAS6tX4CYH0zh5nixBjimG3QGSTI/+x23KS5FPwLSqS0lRPJejL2dVN45tA3dOFGaaH6j X-Received: by 2002:a17:906:c310:: with SMTP id s16mr312296ejz.178.1569448210343; Wed, 25 Sep 2019 14:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569448210; cv=none; d=google.com; s=arc-20160816; b=ZUqpqbQRKyg/4loKUFkuPczGxKoG6quw9Zx354g6IdGR5mQYgmjh/ClALclXjWc2PD UTe7wQFKF/I6HXSYY9Cj+meboyT1hMtmQztZ+aWgUeottimPzaZ/CJoPzAvvvH2fhxtj ntvjaUStC3wnNoRGyQZkb+jmoctaRmcG+JytsHdaeNniT8AIVPq5sFwvW580UNQDpiIX UNhwxgybMh70VWIy7cK60prj8lJy21R3rWrnsK6eAwjV5bnZHnY5XCX36OByEA6Z/b84 8p/+i7yzcpv8vEsCA9/zcnJk5YGPVJz2FGTkBiZWBk4ReJz707L7zzlBMfM5XNDe+DX6 sL2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6cXLFB02TykvVAB5VHeIiQg5E1YhhmuVezg1VTNWACM=; b=nQgrwdRMn//NynvwKnkW6IaLJRVoNK1HuKrbc5iU1G5tigPt5fL/RO7y4JxnRO0nUa O3h9UviOIfBntSD3dou33nBw9/Zx/VQz6xwvZ9veUucQqkoTEekjyFrLVOOMEMdYhVi6 edcESwQ7e2Td0lm8aOl53dOEhvfrrDHklAGNpfDRhnu2kSvzNjnO7HnFo6EUzw2Zxm83 ciwPdDxHM79NTxw2ad5JzFbG/nKMREWtsPddUATUY5HHUSvWv9a4UcKd+SIT5Gtm817Q Ed/TvBoCCR8M+7ZL8ga6DPclx/SSDT/MdBx9mz6sVc4dTTuJbnf7fHpY9e3PFuiJVCDD rY5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si216554ede.126.2019.09.25.14.50.09; Wed, 25 Sep 2019 14:50:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727810AbfIYVuJ (ORCPT + 26 others); Wed, 25 Sep 2019 17:50:09 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41955 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbfIYVuI (ORCPT ); Wed, 25 Sep 2019 17:50:08 -0400 Received: by mail-ot1-f66.google.com with SMTP id g13so149743otp.8 for ; Wed, 25 Sep 2019 14:50:08 -0700 (PDT) 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:subject:date:message-id:mime-version :content-transfer-encoding; bh=6cXLFB02TykvVAB5VHeIiQg5E1YhhmuVezg1VTNWACM=; b=Mr87FURxyUahuC89iivXotmIn3m9jsmffi3rhXRNZ8IdIgXnL/diQe+jBm+8n9PIqR PJ9ihUaiySlzjUZUhs61IRTO0qulcP/lQ0ZQYZ+DgNXNdEBRdPNT1MaeeuOQPjVle92I oSZgkbahIb4Ok2TN0MKBqnRNUjq+UkHoLvW9NRk7R6tWGm81JGB5zz3bN3trCpJO8LNe SWjRwvmyZmIo8ziq0KZQ+odJhydcehQIJ/ZfGsNzaclJYarKndIZ6HrMLCE1kfLwlIfh /03yGK8RZqSpCYkqP3uq4baEnccATioYqSCI5caMyQ2/g9umY8z4jeS5c8LKiAGF0cQW k6oA== X-Gm-Message-State: APjAAAVoNwaAdE+n05X7txQ8GOBysvRx7eBJM/BDt+3PcZsNSaKhcUqu BnHOuv50BaWRBJLvhESQwg== X-Received: by 2002:a05:6830:1d8:: with SMTP id r24mr215060ota.217.1569448207485; Wed, 25 Sep 2019 14:50:07 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id q199sm78792oic.16.2019.09.25.14.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 14:50:06 -0700 (PDT) From: Rob Herring To: Oleksandr Andrushchenko , Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, Robin Murphy , Julien Grall , Nicolas Saenz Julienne , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org Subject: [RFC PATCH] xen/gntdev: Stop abusing DT of_dma_configure API Date: Wed, 25 Sep 2019 16:50:06 -0500 Message-Id: <20190925215006.12056-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the comment says, this isn't a DT based device. of_dma_configure() is going to stop allowing a NULL DT node, so this needs to be fixed. Not sure exactly what setup besides arch_setup_dma_ops is needed... Cc: Robin Murphy Cc: Julien Grall Cc: Nicolas Saenz Julienne Cc: Oleksandr Andrushchenko Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: xen-devel@lists.xenproject.org Signed-off-by: Rob Herring --- drivers/xen/gntdev.c | 11 ----------- 1 file changed, 11 deletions(-) -- 2.20.1 diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index a446a7221e13..59906f9a40e4 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -34,9 +34,6 @@ #include #include #include -#ifdef CONFIG_XEN_GRANT_DMA_ALLOC -#include -#endif #include #include @@ -625,14 +622,6 @@ static int gntdev_open(struct inode *inode, struct file *flip) flip->private_data = priv; #ifdef CONFIG_XEN_GRANT_DMA_ALLOC priv->dma_dev = gntdev_miscdev.this_device; - - /* - * The device is not spawn from a device tree, so arch_setup_dma_ops - * is not called, thus leaving the device with dummy DMA ops. - * Fix this by calling of_dma_configure() with a NULL node to set - * default DMA ops. - */ - of_dma_configure(priv->dma_dev, NULL, true); #endif pr_debug("priv %p\n", priv);