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;