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); From patchwork Wed Nov 13 09:42:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179274 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347326ilf; Wed, 13 Nov 2019 01:42:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxfEMWYX1nPQjqcs01jKnc9DxA9QbDlt/9oCvaE/nPxfBZJFkiExOOW22fA968XLaIGTXy+ X-Received: by 2002:a05:6402:1049:: with SMTP id e9mr2445929edu.91.1573638152154; Wed, 13 Nov 2019 01:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638152; cv=none; d=google.com; s=arc-20160816; b=ssVwH1U0do947j6EznCHGPMF8CTQbGh+nXSJlKFQ36wqYvXBEpT0ADdEzOTumF6rcW 7ucAVuY30++jzTNj0GRick/vDwat+KnJSo8ND0arMJD5Sg9cTuGKy6LNI5LkFTQ/y3+0 RK16zCRwlnwoxj/AMl4pNqBAZfHwA1rtb91INyeeFe6jLZGUqdZ2MhONMja9b9Jm4k4d pCULMXkdmRTzLfVxQ68056HD8I2TAj+8AZhwkppHe5pgh0jvjHOMY3qSUb7V18kkQ5ri ykemrXEvURhzYvjj4YlBr6dQvnFu2rz1SGSmsBWRCdu4LY03SyeL1iQJrvzycQPX9sJR ZJAg== 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=Y/q+Uc0kJcnsEtkPZLoAUqklymOGD37m/W5bZPJJsVQ=; b=yCqYB1pv+n5Q+xHSHjx68rhirdE7mVdtAPoO3qvcc/g6tUKhABm0JGCrGOCtt92RsH bSy6JOkTH23OYZ9WVciFJYBCvbnBk+jAvGuX7FJTuu6lH8oA5Bc3SAr4+e7sW/OB5Lx7 i+IkwjoM9uPGm6OwB8+yy54wJTR7u2qBIq2I0QUuktrHZ80aNVGGwuCif8uO63UZ/XF7 ZtBdWoGQBbvS/pIAZr4N7qfrmv3merh8Hdl6Lyy0MljtWI+ep8anUfUjBQPT8TnJ1WYL 5WP1lalQP5I+CgJ6ltV0thxnlkd0AlaaFhEDZNObpisIdl60YLRw97bJC+1dre3eSAyz I3yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qM8xxdXr; 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 cc4si890423edb.237.2019.11.13.01.42.31; Wed, 13 Nov 2019 01:42:32 -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=qM8xxdXr; 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 S1727527AbfKMJm1 (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:27 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38540 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbfKMJm0 (ORCPT ); Wed, 13 Nov 2019 04:42:26 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9fsRx086527; Wed, 13 Nov 2019 03:41:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638115; bh=Y/q+Uc0kJcnsEtkPZLoAUqklymOGD37m/W5bZPJJsVQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qM8xxdXrkusmZ3sgm2XTnAE//X1gCECey1qDrpUhcYTYRgKUks1s8GcJ0nXmYFGaO bXl9pXLWW88Xu1+oxRFZWEKwibOykiD0OjBRNCbvZB2/DI/Ye3IcBhmZaieuBfh7Id tGOmbfanD3wdWwvnYPMLcrbgGd85WoHJTBps7iBY= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9fsFm083389 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:41:54 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) 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; Wed, 13 Nov 2019 03:41:36 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) 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:36 -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 xAD9feM2072663; Wed, 13 Nov 2019 03:41:50 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 2/9] spi: atmel: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:49 +0200 Message-ID: <20191113094256.1108-3-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-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 9e84a93083bc..56f0ca361deb 100644 --- a/drivers/spi/spi-atmel.c +++ b/drivers/spi/spi-atmel.c @@ -511,7 +511,7 @@ static int atmel_spi_configure_dma(struct spi_master *master, dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask); - master->dma_tx = dma_request_slave_channel_reason(dev, "tx"); + master->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR(master->dma_tx)) { err = PTR_ERR(master->dma_tx); if (err == -EPROBE_DEFER) { From patchwork Wed Nov 13 09:42:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179273 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347275ilf; Wed, 13 Nov 2019 01:42:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxHgBy6WyvcxEM/pQaE8cFnCo+r6gZZ92NGrfE1ymGs/XT41GUbsqLpmsgVaaWKG6fCVulc X-Received: by 2002:a17:906:6d59:: with SMTP id a25mr1813069ejt.57.1573638148183; Wed, 13 Nov 2019 01:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638148; cv=none; d=google.com; s=arc-20160816; b=h+CSxatytNkSI9mR+ALQMaEhNtloqJ+uBuOKk7etHSEqcty04I3Td/ImessWVDVUeR vnyAR+W8ZH3lDC7/lR6cRNJdhX1AcHerjEJ5wWhoJHC39j6cuSBjnxzl6w348Ndh/gHX 1S6TyGxkjP9jVEhwsdMABa0NHgqtTZMgEF1sj9lGr6wpGequQxethnjp3kJ3AwGoWlvB 0VCdNydmhd22vbBmkbnev16i2nmzF+MA/FUF25aW5wv3KbBMnx2CyQbiGiGQSY7Fy+eq 1vfkT2mumR/nrubOzsOtsJaidloYWCEOvVyriH1r1Ho6z+r3E9DuJ6503oTYADaI+Cxq IW/g== 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=of9+YUnlenzcOQnPEXYg3kP/q5s7kswFH3PKUJ8PaDE=; b=y4kvGX5o7V/DdoTD+PgpNpwAOUD8L9QThbo6M4jBHvAkI5xVz6HVLuZG/fBro4qsVi ZlvKm6a5TxF6JVOw74VcBFEwMsbZwxdkDXtk9rtMkLw69/MVWHOg7W6uXsczvb3Mi4mT 8uzBroAvvQyNNa9Il5035Y367IO5FvUchsmo0DLzfegVjZj8BlS6bQ5/2d1Z10Uvywgt Cq3xhsM1Ew/+tb0q2ri7qfV2e39MujnW75kQJj57CYWEQVc0MXBF4C2h0CBlD+7s4Rwb wVh3IvGraZcFNqkTfH2EksLeBt9knuIDEmMsElEuMkZTofyXY58RfgEg44qGk6jQHx9a vFRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="R2P1fiX/"; 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.28; Wed, 13 Nov 2019 01:42:28 -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="R2P1fiX/"; 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 S1727503AbfKMJm0 (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:26 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57276 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726155AbfKMJmY (ORCPT ); Wed, 13 Nov 2019 04:42:24 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9fxZo063758; Wed, 13 Nov 2019 03:41:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638119; bh=of9+YUnlenzcOQnPEXYg3kP/q5s7kswFH3PKUJ8PaDE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=R2P1fiX/UUTrDgFWBml9TN0Mmdqz0wV7lnggRWwBAN0HRnw8UHp5YmfY7xZ326KM8 fnPl0BL1P3R+kg6VWIf9wtbcjEsbn7yfxiGvPg5ryElI54AUjU92Z3FpWcYBGtrIPq mFrBUkhC07xXwJ/s345+QgYm44axoPwwP0to8lq4= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9fxDt080913 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:41:59 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) 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:41 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE115.ent.ti.com (10.64.6.36) 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:41 -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 xAD9feM3072663; Wed, 13 Nov 2019 03:41:54 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 3/9] spi: fsl-lpspi: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:50 +0200 Message-ID: <20191113094256.1108-4-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-fsl-lpspi.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-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index 6f4769a53f8a..2cc0ddb4a988 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -675,7 +675,7 @@ static int fsl_lpspi_dma_init(struct device *dev, int ret; /* Prepare for TX DMA: */ - controller->dma_tx = dma_request_slave_channel_reason(dev, "tx"); + controller->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR(controller->dma_tx)) { ret = PTR_ERR(controller->dma_tx); dev_dbg(dev, "can't get the TX DMA channel, error %d!\n", ret); @@ -684,7 +684,7 @@ static int fsl_lpspi_dma_init(struct device *dev, } /* Prepare for RX DMA: */ - controller->dma_rx = dma_request_slave_channel_reason(dev, "rx"); + controller->dma_rx = dma_request_chan(dev, "rx"); if (IS_ERR(controller->dma_rx)) { ret = PTR_ERR(controller->dma_rx); dev_dbg(dev, "can't get the RX DMA channel, error %d\n", ret); From patchwork Wed Nov 13 09:42:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179277 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347466ilf; Wed, 13 Nov 2019 01:42:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxtgRjTi7m4MMqW7u1oq43J9x7o+EMX8enuV4TY8N3c5iJuOc+uQSoPyRuP4sWh1zCEpZ9N X-Received: by 2002:aa7:d64e:: with SMTP id v14mr2513531edr.88.1573638163353; Wed, 13 Nov 2019 01:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638163; cv=none; d=google.com; s=arc-20160816; b=Iuz05QSM3+za6Mf/iXZfsUnQAjIEs0Nwp5mMVs60NWRsYN+KwQKMBmAIZc6IfIPSQM Rqbt8skn4eUR4dL0LfaQIeaMg6YVHjzZYFyfiQ5+yDTcQhnHLc3pncILb0Oal3bGRhDM +kOncfXJWyGWRIQSDv5Ow5npqFLcPt3I2ana8E9ubzs4WlHCvr7c944eWDli4oHVkbjy BOiPsaKwexrSLoK6T+dMUdo3Nz2Q12yo9vN1GMyDLSmX3v02r1FeB9CUF1KHALqi+cvK SYcoDAzpgZsdCYOwel33VUt9JWHezGS3VfaqO02pTeZt3vjUMkWDpVpG208sC2LtBpgF NE2w== 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=oKXlql9xtM1tdFz/BhYu3y6UiOAVOfa3WHxAfaksDDc=; b=dMiJz12AqPUcjW0Z9sxV1SyFJ7D2FKYhaBNmp+9bO6JBPseSKUCuOH8fIDDFDKWXqQ /tOE5KxHl9BdZ6WEJdcFoymk4gMHsVQH8zvfHggPm1EDd27pmonZa5VUia2xXbo6Xu0E P9UI023yEyEzCMWgF3Xj/JtE4VMJ62BR9iMKdJwFLlaUyxuPLiviJEY+ujIxGA8wZA2K BiHT0qqPDN0TBnPFJItFtYtL00xpfwSBgZAUzqP0FCVtkBthZyTmyzD2F6cIE7/29/zV YqXXyHgzoWhSXCTCfSiFYCrAk1iOT2bDv0Eux5TBsy2oIQ14a3Ua1LFQBlJT3DATHJCy dJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OBwZGSwh; 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 q4si1088948edc.403.2019.11.13.01.42.43; Wed, 13 Nov 2019 01:42:43 -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=OBwZGSwh; 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 S1727574AbfKMJmi (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:38 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:58582 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbfKMJmf (ORCPT ); Wed, 13 Nov 2019 04:42:35 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9g35M082788; Wed, 13 Nov 2019 03:42:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638123; bh=oKXlql9xtM1tdFz/BhYu3y6UiOAVOfa3WHxAfaksDDc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OBwZGSwhW7kHcindeeiQoEfqcO+H0xHdvXTCytrnO7Ky9tE8bhqwK6hH+o+FyF05n ohodYl+aCbHWFh90m16JjPdUWB4mLLXymWIyUmo+xMlMfYcXCjyxKuJ1lHwEvmjbaD zpuRqYlnPPaNuH3Mn8Hb7S4nFs/cOiYzYkQusrD4= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9g3T7081084 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:42:03 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE100.ent.ti.com (157.170.170.30) 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:45 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) 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:45 -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 xAD9feM4072663; Wed, 13 Nov 2019 03:41:59 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 4/9] spi: imx: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:51 +0200 Message-ID: <20191113094256.1108-5-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-imx.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-imx.c b/drivers/spi/spi-imx.c index 09c9a1edb2c6..49f0099db0cb 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1272,7 +1272,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, spi_imx->wml = spi_imx->devtype_data->fifo_size / 2; /* Prepare for TX DMA: */ - master->dma_tx = dma_request_slave_channel_reason(dev, "tx"); + master->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR(master->dma_tx)) { ret = PTR_ERR(master->dma_tx); dev_dbg(dev, "can't get the TX DMA channel, error %d!\n", ret); @@ -1281,7 +1281,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, } /* Prepare for RX : */ - master->dma_rx = dma_request_slave_channel_reason(dev, "rx"); + master->dma_rx = dma_request_chan(dev, "rx"); if (IS_ERR(master->dma_rx)) { ret = PTR_ERR(master->dma_rx); dev_dbg(dev, "can't get the RX DMA channel, error %d\n", ret); From patchwork Wed Nov 13 09:42:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179276 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347418ilf; Wed, 13 Nov 2019 01:42:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzAfraENqCSKnvmms6gX+ni7qf9qm/Psr7bNi6OKpOYPpv9ss6LCK+eB0SDbPAwoIuxaTTn X-Received: by 2002:a17:906:f154:: with SMTP id gw20mr1746445ejb.279.1573638157884; Wed, 13 Nov 2019 01:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638157; cv=none; d=google.com; s=arc-20160816; b=oOQETCNVgizLi6dQGH3KKafBXHa74aqQwe3kys37ie4/6LuD4FxlZWwIdFhemhcggK KtWohzf7O5cc9V+4DMd/1ZyYL1Ad9Ovkk8vVRtzdYcy/SA+ZyzB6NnKpUzrmWm2AnCas 1pjUSRZr33ESUd4YPRdocmR6i5kcH7t6zbxOQYWjuFSYar1ZhS08VpXlx2+lDSrUv/5n l+r5dY8Tej4QtpJTP1o8NJeGZEVChKAjUTdIjWws9Sd4evnE7qTaG+PRlzy+mnMslRgU STumbmH3OplvkB68sN4BnPjhOUB+/pcdV1eRC3YIWm9hk9Qi6cvpQm5yrnNhiQtdQndN TwLA== 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=OqtLYKj0zrMlp4PwJ4rkxdZq/2B0NiRl7pWO/Td8PyY=; b=lJMSv8IqEpi0Ye31JSAo6qzkTIaTSBJjZqd7UFpmfp/wapcTGLG9HO4JNnJrVT5c8r vfXq1KaHNmkEmAXbxHPavzyP77QtEqt0tD9FmoYIn+JQa82t1goODwDI74MBuwY4X0L0 oiPwmBDOsyxJIeBgPk6lctRJ7Gic+bNxHAYG/MIdMaf2OJMC7CMIlx7S68kfWFXMuKAS m25URZUQI8hlxt6r4EVLHvc3a1DUHebYJU9gkC4Qk8ozzu5XhDPiibsMUMa3g7pBhc8k HOW//+ynhdXWYvjBqS2J5cs62iwohvx2aIkBBN6b/JCimYzv4X61oMmi9yJmcNIJowBM wwhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ge+o5HHx; 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 cc4si890423edb.237.2019.11.13.01.42.37; Wed, 13 Nov 2019 01:42:37 -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=Ge+o5HHx; 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 S1727561AbfKMJmg (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:36 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:57320 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfKMJmd (ORCPT ); Wed, 13 Nov 2019 04:42:33 -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 xAD9gCs1063831; Wed, 13 Nov 2019 03:42:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638132; bh=OqtLYKj0zrMlp4PwJ4rkxdZq/2B0NiRl7pWO/Td8PyY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ge+o5HHx1Y1Be2oLJo64/pQEj5SZaaBFIX1VoXVqyXsNyKr+cmPf14R6wM9ehwq5K OWFWKMCLBuZTTtLEwJ2LEE0pCamNy8ETqVZjz8ALnSZNNTcDOxC6MT9FC1riN1P1+B wYEZ3E/e9L1unOA0MK/zIvjJjt8ZuOUzdabSBFlg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9gCQA002445 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:42:12 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE103.ent.ti.com (10.64.6.24) 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:54 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) 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:54 -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 xAD9feM6072663; Wed, 13 Nov 2019 03:42:08 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 6/9] spi: qup: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:53 +0200 Message-ID: <20191113094256.1108-7-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-qup.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-qup.c b/drivers/spi/spi-qup.c index 2f559e531100..dd3434a407ea 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -932,11 +932,11 @@ static int spi_qup_init_dma(struct spi_master *master, resource_size_t base) int ret; /* allocate dma resources, if available */ - master->dma_rx = dma_request_slave_channel_reason(dev, "rx"); + master->dma_rx = dma_request_chan(dev, "rx"); if (IS_ERR(master->dma_rx)) return PTR_ERR(master->dma_rx); - master->dma_tx = dma_request_slave_channel_reason(dev, "tx"); + master->dma_tx = dma_request_chan(dev, "tx"); if (IS_ERR(master->dma_tx)) { ret = PTR_ERR(master->dma_tx); goto err_tx; From patchwork Wed Nov 13 09:42:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179278 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347537ilf; Wed, 13 Nov 2019 01:42:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxXGjuH/28f/yfdSnJGsez0C5RAmuNt1UItOhq6OpLMHJ/V/ENOZaM4AXZ3nxnKuoizCXfw X-Received: by 2002:a17:906:7c5:: with SMTP id m5mr1747838ejc.231.1573638168775; Wed, 13 Nov 2019 01:42:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638168; cv=none; d=google.com; s=arc-20160816; b=Zdk2NWkkyZ6mSJ89SAAFty7shv0v4e4cr2GfIYqJT99SX2VaelgYOLMIT0zQPbuRT5 zaUk+L6Fgac5ascHHeVf5p1LdfSNaJ/KAAD4r3G3kLJUPtUEtBRc3rFbiMEJ7TeXzFf7 WijtSNiq2or28vHgIiq216Pq3mvFTL6dxZSa9oiJOWrxGuNv86iAtUhiZCSUOJPsrgID lbNGmUOKup17Rqzj4Tna4HVIqoCO0IWR6wKFgI7jh0yaxPCtJEbLRZOQ+CAlE8RDPABu 3nBBlv8MDFm5g7WadeTqZ5dPHAaqFEhrDBExErvyA14UVNxoxtX0Gj30e7BUTG3uWe2X meKQ== 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=uYKBuyLdetSTRxbmHbnWaKxFuaOEFcU7Tdum2JoyQs0=; b=xLSY8KMSpKETbAMlH4UafORkDGaiqPRyDVF/s9RC3MYZ7u478BWo8VUa682p8s/phi JZlrY5qIMpZgyKmdRRcB6hjMZWrE5z+/3v2WX7n1+8TvUJKbrT2YZIJle2AJxWG3WUlf sXJ2XlrMS7SYpimubdiEdT0kE+Sf0A5TigAMXON99vIWGqDCoRGPpjyjFj7RwY+r6RqW zH+JvdT1pLoLOHqvJZMbxkhJ2ZD406GFqU7/CTQlWWzMUmzW4Y+sfTnGA7/XEnX8l4MI xQoxres9fainH49yJ0d1CT51h38SZX98yjY8r4HwTp8Y66+hCKOnJwGss8NLxBjqFnTh jS4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jIx3HQzN; 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 u25si1156663edr.22.2019.11.13.01.42.48; Wed, 13 Nov 2019 01:42:48 -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=jIx3HQzN; 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 S1727597AbfKMJmp (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:45 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38596 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727341AbfKMJmo (ORCPT ); Wed, 13 Nov 2019 04:42:44 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9gIlW086657; Wed, 13 Nov 2019 03:42:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638139; bh=uYKBuyLdetSTRxbmHbnWaKxFuaOEFcU7Tdum2JoyQs0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jIx3HQzN3FYZVi6o7k9ISO2e5Jdsg1n1nn4A27PdbaIEBNcx6yiIEQkiocDZMsdp7 vNEKObFNzuEgDowoQf4mHn6PX/X293mjHC9x54EwL8/FRBp/GGqCjIa48cqbBDHMPc Y7XYuFbkX6HduYKWXytB0NkNYxWV54W81wqSqX58= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9gIa0084580 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:42:18 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE102.ent.ti.com (10.64.6.23) 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:59 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) 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:59 -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 xAD9feM7072663; Wed, 13 Nov 2019 03:42:12 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:54 +0200 Message-ID: <20191113094256.1108-8-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-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 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-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 7b7151ec14c8..cf67ea60dc0e 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) if (!is_polling(sdd)) { /* Acquire DMA channels */ - sdd->rx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, - "rx"); + sdd->rx_dma.ch = dma_request_chan(&pdev->dev, "rx"); if (IS_ERR(sdd->rx_dma.ch)) { dev_err(&pdev->dev, "Failed to get RX DMA channel\n"); ret = PTR_ERR(sdd->rx_dma.ch); goto err_disable_io_clk; } - sdd->tx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, - "tx"); + sdd->tx_dma.ch = dma_request_chan(&pdev->dev, "tx"); if (IS_ERR(sdd->tx_dma.ch)) { dev_err(&pdev->dev, "Failed to get TX DMA channel\n"); ret = PTR_ERR(sdd->tx_dma.ch); From patchwork Wed Nov 13 09:42:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179279 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9347626ilf; Wed, 13 Nov 2019 01:42:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxrtVCUSfVrXNS2dmkgBNHMUKpgInFCV3XYKQT0w5ltzhxovI7JvWvJYbzXO8gDLrUkHIQg X-Received: by 2002:a05:6402:1609:: with SMTP id f9mr2523786edv.37.1573638172841; Wed, 13 Nov 2019 01:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638172; cv=none; d=google.com; s=arc-20160816; b=amdh3b0mNRN6L1I0zDv5NTWMXO3NpnvAxd8mwMR/1mtLF4xrHtcyKwbmj8jLwErfgD lf+fUQuMqpWV1QdcFTsN5AWzKfN8P+oeGTVMJd3CMciSevCCzgl9nopaQpIzsm9CeE/7 3NbCCrPf9N39FPJriqmQbuAfFJelwMPlL5y+gEFIpEGR3B4iG3QX7b/fIyC6tUNb00QS oLW1NxzsHHCsu/5r8ksaDWSNOcaAHRkWMZSmq5uViUxhvPtK4yZvzVg8jV33TDDb6ebW sisKOcXCx+LUU+qC36NErMkjihpz4UGLVD5mwcX9dJNZ5v/8c9I8LGuDJHhqJpyG4gja I99Q== 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=ejmjEUvqs+1PhIX9IBENwt9urLUziMoMrCcf5MwMbKc=; b=SR6ivRaR1YhzXCvN+DGYNx4CVUh4Of0iD277Y57EjHkhP7L4DD4TUqSYQlUs/cZq2t MjAonXOD0xvhr/vD3u8FMHwhtj4ZQ0hWcCi8q/TBPkZKetandeMDoxwszWCTdduWFE5z 4aMo21KfsteaoB9iuxwEy69XHl3HHYKVqnWBf9jq3y/fwwf6XIF91u0yd74rM19xtZjH +B9KbGqJA6zpJ0DSbagQeAh712nThMBSKrOst55Q7XlP6gA6JL7Q0lPxGHxF2vhrbfuL knwcMVdCa9I8j1FDQG7U8zsRvnYyz3e8G1gjfvZkWMI1BjPk0irIWKOBRstnTBNNSb09 +TZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jTJXup8L; 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 e9si808746ejb.380.2019.11.13.01.42.52; Wed, 13 Nov 2019 01:42:52 -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=jTJXup8L; 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 S1727615AbfKMJmu (ORCPT + 26 others); Wed, 13 Nov 2019 04:42:50 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38604 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbfKMJmt (ORCPT ); Wed, 13 Nov 2019 04:42:49 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9gRx2086688; Wed, 13 Nov 2019 03:42:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638147; bh=ejmjEUvqs+1PhIX9IBENwt9urLUziMoMrCcf5MwMbKc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jTJXup8L9t28/kwTXiVEs+c6CtsTvzmjmGd0DVGVfBPUe1eWxtLMjMNCI9TBIRgJz Bt+S1yP/YhPY1ulG95RCBIfzqFCjr5uiiGU8WFKVCBCsHuYZgrLHogThWQXFd5T3CL 0jpodkGxLNBvOsDDugW/Kv6JeeFcm1LwVR6ttQsE= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9gR5P002748 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:42:27 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) 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; Wed, 13 Nov 2019 03:42:09 -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:42:09 -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 xAD9feM9072663; Wed, 13 Nov 2019 03:42:22 -0600 From: Peter Ujfalusi To: , , , , , , , , , , CC: , , , , , , , , Subject: [PATCH 9/9] spi: tegra20-slink: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:42:56 +0200 Message-ID: <20191113094256.1108-10-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-tegra20-slink.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-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 111fffc91435..51573f41ed12 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -599,8 +599,7 @@ static int tegra_slink_init_dma_param(struct tegra_slink_data *tspi, int ret; struct dma_slave_config dma_sconfig; - 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)