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