From patchwork Wed Nov 13 09:22:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179262 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9327864ilf; Wed, 13 Nov 2019 01:21:56 -0800 (PST) X-Google-Smtp-Source: APXvYqy+EyXFyV4QqWU2sLlA2TVYXtKgqTvXs8AnM0WJq/rMT+JQ6KFXLMQY7MNRBInAEZkwju/y X-Received: by 2002:a17:906:bfe3:: with SMTP id vr3mr1680873ejb.273.1573636915946; Wed, 13 Nov 2019 01:21:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636915; cv=none; d=google.com; s=arc-20160816; b=TRuo20qc3emlSZcnbAZVstc+OpWVrGDO3h5T2Xspjpc+HN5NEakG16fLSAkpBi3jKV CF41gnUPq08Jxac+Q2ISyL6CKCQk/WgqqnkVSPmZ2e0Ex0CnVOfluAe9mhJNmFWXBxSc HHbYx3HvCLJkIsUkfcCXZVJrMEcbVTneW71wdM+qbAvchQyQ6nuUbJCoZZXZSvV56fLF f31NEFLZptQvOkFSG1+BfMywq/3a+g4Dq0WmVcLTny1RzrEelRrSqZxDh+sklgjvssXj b1KMY0AEXnfzCmH6v+3JVIWeqtGpO/M4xyJou2jgOv8Z8F5svZfaqjUoqVo5u1J3Ny/M QBtA== 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=u9PBpBJyuGK+Y9fwrD9P1uFBRg8ej0bM51sYHD9zJ2E=; b=FTIqcsc3w5dnQTG69siHrxO+DYabMRtYb4IA+ywrxH/9IZB14fp4/1zLk5p9AozVSG +NFEHL1NBj2oFtJCVnzfBiMawc1jbqHvKs1HnTTIIofNikDrIT7mcKZRUO0H7XSXiSYr d4kAoT12jEDne/pEfo84irQ9Jk4CtKkrhfbuE7BLqTa13VTbyL8U3J2luhuGohi75A04 ETnenK30Ic30B495lri3LeHWan4t4PUohMes55e+QkMyb02chDIytjdP/IdVnMhcISai xJkwtmZnYwGvViB7L0L0cAmDBxK3eKVaOgnP2mqEwjs9csT8bxYT/0oodARhV3lrKxaI y0aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ALGUoxWg; 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 q4si782198ejb.136.2019.11.13.01.21.55; Wed, 13 Nov 2019 01:21:55 -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=ALGUoxWg; 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 S1727392AbfKMJVw (ORCPT + 26 others); Wed, 13 Nov 2019 04:21:52 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35486 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbfKMJVt (ORCPT ); Wed, 13 Nov 2019 04:21:49 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LZs3079237; Wed, 13 Nov 2019 03:21:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573636895; bh=u9PBpBJyuGK+Y9fwrD9P1uFBRg8ej0bM51sYHD9zJ2E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ALGUoxWgKCXgCLEsn3aHZeuFbbwtQWHDyd/ghPP5gZ8BMc7pC9DRdQgbnVOYgswGl 3kkNMeIlfbrMzqFRnChnmGYxq7rCVt7tZf8FvaJLPLhRHo7tC6dZgADnxWtwDKVxZj Z/5nlusqlzBhPELltJbxAjA1PVUq5JQJYJMXpqe0= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LZvs030499; Wed, 13 Nov 2019 03:21:35 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE107.ent.ti.com (10.64.6.28) 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:21:15 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE109.ent.ti.com (10.64.6.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:21:15 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LJ1I056807; Wed, 13 Nov 2019 03:21:29 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , , , , , Subject: [PATCH 2/4] i2c: qup: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:22:33 +0200 Message-ID: <20191113092235.30440-3-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113092235.30440-1-peter.ujfalusi@ti.com> References: <20191113092235.30440-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/i2c/busses/i2c-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/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index e09cd0775ae9..2d7dabe12723 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -628,7 +628,7 @@ static int qup_i2c_req_dma(struct qup_i2c_dev *qup) int err; if (!qup->btx.dma) { - qup->btx.dma = dma_request_slave_channel_reason(qup->dev, "tx"); + qup->btx.dma = dma_request_chan(qup->dev, "tx"); if (IS_ERR(qup->btx.dma)) { err = PTR_ERR(qup->btx.dma); qup->btx.dma = NULL; @@ -638,7 +638,7 @@ static int qup_i2c_req_dma(struct qup_i2c_dev *qup) } if (!qup->brx.dma) { - qup->brx.dma = dma_request_slave_channel_reason(qup->dev, "rx"); + qup->brx.dma = dma_request_chan(qup->dev, "rx"); if (IS_ERR(qup->brx.dma)) { dev_err(qup->dev, "\n rx channel not available"); err = PTR_ERR(qup->brx.dma);