Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1839368ybn; Thu, 26 Sep 2019 03:02:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnZeF9YsMsPj41KQ+cLZ5Rn3u1CKQWpJD0IQPDREzdwaSru4omoeph+tI6D4JvahHn8+oW X-Received: by 2002:a17:906:3298:: with SMTP id 24mr2277180ejw.136.1569492148362; Thu, 26 Sep 2019 03:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569492148; cv=none; d=google.com; s=arc-20160816; b=S20qZWxB74WAqr7PeUF9y/rTs0iOh1dK6j4DNHyUtcKp5K21BXtYmcL4Yl/C4LouHm Dv0NIHWIi5FeO4N35IDfvidy0Kd74UUObPhJoK8NllkMucuC2zaFoXUwHw+AZUaHE7DR yW6y5cM+yoVoe46wddRxQ+x31WDHJqklgQY0QCVc60Iz1NZFS1S2phoejF8uStJ8QJev MYCcFBo5K/AkV+FnFDF3Y/7vLtpMo6Ox1zAvrKw5MDMvb2nC7/WOJjuh8Ji+E9d/Jgmq ms+C/7FpkOljAeJKi/dTJCWti52BCvGUwJlGsT3n9tx89YV1U1HvmvheSaysoqlVE0Ny H9pQ== 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 g5si710433ejp.350.2019.09.26.03.02.04; Thu, 26 Sep 2019 03:02:28 -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 S1727688AbfIYVuI (ORCPT + 99 others); Wed, 25 Sep 2019 17:50:08 -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 Content-Transfer-Encoding: 8bit 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(-) 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); -- 2.20.1