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);