From patchwork Wed Nov 13 09:42:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179280 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347790ilf; Wed, 13 Nov 2019 01:43:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxDddxhoMqjjnUWJEY9ia9hFMhSJRG7ya84mD9MDQR0SLRWLaY5lv3igZlcQDs9RXTqK8zp X-Received: by 2002:a17:906:5e52:: with SMTP id b18mr1780475eju.318.1573638185292; Wed, 13 Nov 2019 01:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638185; cv=none; d=google.com; s=arc-20160816; b=CfymZUBPPeT5PYsEiDhuyDTeh5fvR4DoAmgIIpMWAyv9bX0AQQ+LlLuhOjE2HOlNrX YAxvkn/sgBx27ASPLzUtWH+i+lPCAn7KSdHbtO1pCr/3vBxC7xcJKHs4K6aCpDkm4wIK /pP9zbxCIiIDg0vrzSWGtWsl5oKiNKQBNT2EdvDi83dvHhdVPLVaa6E3OyHtEbAnclKF bkC2w9LXJwi3tQsB0vmaOXnTQ2r+YLNfzMwGaUtD/HIEzZiiIBNQixtWUAA5nAkhwUqk eq8RDa3sWrCga8W3DeraTs2wRYUKBERtArD989nD6wjGCatIVeV/Cwuu2agerjSqfSO1 r/aw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3x3rU9RLW9JRC3Q9uswDVAWWOQCpRFv6hqsq7AAr2eA=; b=eWYDLEdx2QrjBT+hGkG31BmP06biyKiEPJ3rV0/o7QgyszFH47+/zrdOCS12fk/txz /hTIN9vR3ulAAseIvhGLSbO4SkCBXsWWauUadheSkEzfV8nDFK21pOTocWNPTtCZNZV6 HxSa43HMB8uQIeOUUtTbwRPgBofR8Lsq11a0l0ZENjDhLSuE7/rPh2bvXt1MVvtMn+9d Mk6qTPdYFILMtyGoUZry6bMf6UEreOSwa3MxA764hTPkH2j5QCDYlh3Al7YVMSSqnG/6 srjDmJE5Tk42IOnNLaC0EwBzyIMDWgAD4ILlX/XdMX1N1UthOBjRGBtpgT7DQlHLM+vC +NfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pxyY6Rmo; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9si808746ejb.380.2019.11.13.01.43.05; Wed, 13 Nov 2019 01:43:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pxyY6Rmo; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727632AbfKMJnE (ORCPT + 2 others); Wed, 13 Nov 2019 04:43:04 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:58636 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJnE (ORCPT ); Wed, 13 Nov 2019 04:43:04 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9gMsZ082912; Wed, 13 Nov 2019 03:42:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638142; bh=3x3rU9RLW9JRC3Q9uswDVAWWOQCpRFv6hqsq7AAr2eA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pxyY6RmoRry+v7ZDPTbg1OZkA6tj+IY/Bx/zIEw2DtfWFnLKbqw4KaE9yjaPYlEON Hezoe3HPRTz0lTXk9MrkdI22tQHMgr9wJfeF0BaQsi4hQ/9s5kcH/Dzkk253Ji93Ai g+WXaoBJHMkp5hzjJK5+xnSJ3FZM6X5RsEcK7qlY= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9gM7n063299; Wed, 13 Nov 2019 03:42:22 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 13 Nov 2019 03:42:04 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 13 Nov 2019 03:42:04 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9feM8072663; Wed, 13 Nov 2019 03:42:17 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 8/9] spi: tegra114: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:55 +0200 Message-ID: <20191113094256.1108-9-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113094256.1108-1-peter.ujfalusi@ti.com> References: <20191113094256.1108-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org dma_request_slave_channel_reason() is: #define dma_request_slave_channel_reason(dev, name) \ dma_request_chan(dev, name) Signed-off-by: Peter Ujfalusi --- drivers/spi/spi-tegra114.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/spi/spi-tegra114.c b/drivers/spi/spi-tegra114.c index e6a450d9b4f0..fc40ab146c86 100644 --- a/drivers/spi/spi-tegra114.c +++ b/drivers/spi/spi-tegra114.c @@ -666,8 +666,7 @@ static int tegra_spi_init_dma_param(struct tegra_spi_data *tspi, dma_addr_t dma_phys; int ret; - dma_chan = dma_request_slave_channel_reason(tspi->dev, - dma_to_memory ? "rx" : "tx"); + dma_chan = dma_request_chan(tspi->dev, dma_to_memory ? "rx" : "tx"); if (IS_ERR(dma_chan)) { ret = PTR_ERR(dma_chan); if (ret != -EPROBE_DEFER)