From patchwork Wed Nov 13 09:42:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179272 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347268ilf; Wed, 13 Nov 2019 01:42:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwaEJ+iodClF2+rjAfzBEe2/KmB64BE42wDP0egTzTX/0zsIpUOJgteUcGQDo65JeZJ1NpJ X-Received: by 2002:a17:906:c789:: with SMTP id cw9mr1877429ejb.40.1573638147637; Wed, 13 Nov 2019 01:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638147; cv=none; d=google.com; s=arc-20160816; b=cPGAxihJ2i9qGaFROlQmzBQbFrckmovXGrqRHupCYiS9k7PZhpH/ndDwl+fFi7h42W jDcudPt5O76vCPaRt9SEFxwYKBeDcRjuPyJOsEW3LVcfEVMcCZmDjc8JN5d6W+d9asa8 LePjCG2GJ5CujKY0bpA7Jic61ptzPQL2W+VRvWpvmBMuCF7HLLkF965iQuJBbtcGyMaG FPeqGcqRLK6l8hSdRr3LbXDUSJ+zx/l1ZS3nzPGaJ33r+FJUOorKP9gobUi84lVAbilc glCLkM782IxhSOiLQV4cXGR+Nw0YyStke+Y2XOqbEo5E61/AmCnCxQYpbfQ9fP2APuZE hdcQ== 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=fegJH3XV5JIUuk6tq+IcogbPbzoSxpz/U7cv/ovDxeU=; b=WrZFv0bMeTgg3i2zjBqhXSOt8o4lYNch5LoeKYfdFddjEEw2pY+KjHGAoRXxrle0XX jQc7K9vayiEpqD8Pfp/TZQ8w86LNlAZkNQuufF7jkWa3jA8eNXSsTqs7ZEtF3/oljPEk WsCzM00kLGelUo/FxBJshCAEHaSubIB6UvXkzSPd9uh7nNPBmZNs+cmLfI17FyEIYeKc teE8Ertk4jNqQN9bguKeDxceFKJU+1ewe7kaw142Gnx5iP84lfCp8DToE7Ven9AbBTvs 8ch7k297p/yRXwbpCaK5G90lc4jRWQ6yaqA+WynZD2EjNgHik1XvQudC/Ur40HRkvt3j dIOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ne6/6kT6"; 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=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 d44si978101ede.149.2019.11.13.01.42.27; Wed, 13 Nov 2019 01:42:27 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ne6/6kT6"; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727460AbfKMJmX (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:23 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57270 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbfKMJmW (ORCPT ); Wed, 13 Nov 2019 04:42:22 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9foGi063727; Wed, 13 Nov 2019 03:41:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638110; bh=fegJH3XV5JIUuk6tq+IcogbPbzoSxpz/U7cv/ovDxeU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ne6/6kT6gu1dhq1MZy+1TiIi/OY/Lx9nNz2sJL30WdvZQRES1IKMyPJ0eUL+EZRBs dejMHpbqYUPUOFao6R44aItdChTPale0Cg3cLrLjsGnqQNTGLfnHTmoQ6nj3X8p9JZ AL4k+aoQVYY/LKavjzLPL6klUzdv+mLn4Br7ElCk= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9foXw001714 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:41:50 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE105.ent.ti.com (157.170.170.35) 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:41:32 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) 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:41:32 -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 xAD9feM1072663; Wed, 13 Nov 2019 03:41:45 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 1/9] spi: at91-usart: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:48 +0200 Message-ID: <20191113094256.1108-2-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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-at91-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 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-at91-usart.c b/drivers/spi/spi-at91-usart.c index a40bb2ef89dc..88033422a42a 100644 --- a/drivers/spi/spi-at91-usart.c +++ b/drivers/spi/spi-at91-usart.c @@ -132,7 +132,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask); - ctlr->dma_tx = dma_request_slave_channel_reason(dev, "tx"); + ctlr->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR_OR_NULL(ctlr->dma_tx)) { if (IS_ERR(ctlr->dma_tx)) { err = PTR_ERR(ctlr->dma_tx); @@ -145,7 +145,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, goto at91_usart_spi_error_clear; } - ctlr->dma_rx = dma_request_slave_channel_reason(dev, "rx"); + ctlr->dma_rx = dma_request_chan(dev, "rx"); if (IS_ERR_OR_NULL(ctlr->dma_rx)) { if (IS_ERR(ctlr->dma_rx)) { err = PTR_ERR(ctlr->dma_rx);