From patchwork Wed Nov 13 09:09:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179260 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9314917ilf; Wed, 13 Nov 2019 01:08:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzx8bczRJRj9vpSpJWI1GVF+xEvkZ/MxH5aYoPlpU61LkzIrVlgc6EWZ/b0LIRpUlxH9Whk X-Received: by 2002:a17:907:205b:: with SMTP id pg27mr1639730ejb.144.1573636125336; Wed, 13 Nov 2019 01:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636125; cv=none; d=google.com; s=arc-20160816; b=ZAIecgS5DUywg3c3RACXRhsIadBVjC2ZOhSMiqI8uLqzaUOkVtcQ65HpwVKKTvsPvD ui2/Nv7/EL6GYSwqgLpHoSRJ7yEzWg/80t4DWSYiJO4cU4QfGCK85BZcUNv5w8ECMrEs DVu/iYVc7oEalGHvk2873TXWztALr5VNb768obnXvjkQdTBubWHO9kgZTWU83Al5wAcu vxbAf7eE8MbXmpdj3SBdbET9kLZQnuEEgf8SvxDel2Nj+G7Qj1aTbHKLGziR2cWysqd9 JwxBpFRJgfMfriJiPBCGizMKUn3rC+7yM+23IdsZ0IEjhVRCeeeslu0WHSYSIl8Ba/y3 x4AQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=L5yB4sXWEphH1kS7OcR6nTpRGX5u3VDhE7QxjQRUxHE=; b=BsqPmUA6+epPW+RuqTeJX1iV++sPKN4wL3phkWVJrOyh/XOZstF9GHjlY3f7Jipvwx VNDjhT7oSt0Aq0xe92nukAiEDuWB5LDJ3/vbOxybbbXgj39+yKqoMhbqJku1+ASxGKgu tNOXEohRmXMzVzmTNF0ZunReFF12oW3zZGN5zRE9u/3p9Ivw3YmAcp3+2cRvj1ACgrQl lNS8TGhDYyuYjFF1ba9F6/idj3d8gGrjaZhI2OAKhkzEKVrduDFJ7pdN4fcTqlTAkBIH c9Hgc+uB9fhxhGXlJGdglbA8eAGVLAE0r7Snrn0bqXdWFujXQ7ATC9agKDXX0KeiXHb4 iqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="GhR8/TA8"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 e58si985414eda.7.2019.11.13.01.08.45; Wed, 13 Nov 2019 01:08:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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="GhR8/TA8"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S1726155AbfKMJIo (ORCPT + 3 others); Wed, 13 Nov 2019 04:08:44 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43178 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfKMJIo (ORCPT ); Wed, 13 Nov 2019 04:08:44 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD98YBY110423; Wed, 13 Nov 2019 03:08:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573636114; bh=L5yB4sXWEphH1kS7OcR6nTpRGX5u3VDhE7QxjQRUxHE=; h=From:To:CC:Subject:Date; b=GhR8/TA859CcTnzUuhfN9dTXPmy3KXv1W/ZOobZE5qndfQgLlqh+E0IvcwnFwy2Me 4bQ5Qag9PEda47sL1JDzukOdiic8zchmkLBtablkO5ahaeKeFl96giy6VV0ilQNUS6 zFDsmDqN+m6tHqlR6l4I47MmvkiTyBWDkbEkv4zw= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD98Ykh006184; Wed, 13 Nov 2019 03:08:34 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE100.ent.ti.com (10.64.6.21) 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:08:16 -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:08:15 -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 xAD98V6k008708; Wed, 13 Nov 2019 03:08:32 -0600 From: Peter Ujfalusi To: , CC: , , Subject: [PATCH] crypto: qce/dma - Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:09:47 +0200 Message-ID: <20191113090947.28499-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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/crypto/qce/dma.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 Reviewed-by: Vinod Koul diff --git a/drivers/crypto/qce/dma.c b/drivers/crypto/qce/dma.c index 0984a719144d..40a59214d2e1 100644 --- a/drivers/crypto/qce/dma.c +++ b/drivers/crypto/qce/dma.c @@ -12,11 +12,11 @@ int qce_dma_request(struct device *dev, struct qce_dma_data *dma) { int ret; - dma->txchan = dma_request_slave_channel_reason(dev, "tx"); + dma->txchan = dma_request_chan(dev, "tx"); if (IS_ERR(dma->txchan)) return PTR_ERR(dma->txchan); - dma->rxchan = dma_request_slave_channel_reason(dev, "rx"); + dma->rxchan = dma_request_chan(dev, "rx"); if (IS_ERR(dma->rxchan)) { ret = PTR_ERR(dma->rxchan); goto error_rx;