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); From patchwork Wed Nov 13 09:22:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179263 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9327966ilf; Wed, 13 Nov 2019 01:22:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzUQ8Mg9sEcx0kgVQb5p4HefVPOkyzqC3BltGnvStyEAzwnrVWvqss0DCXRjK9dMLTOnVGC X-Received: by 2002:a17:906:ecf5:: with SMTP id qt21mr1672658ejb.295.1573636922091; Wed, 13 Nov 2019 01:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636922; cv=none; d=google.com; s=arc-20160816; b=oqlkvE29bjlkdJWwZpipwQV0h7BL0bcfHU2eRix2sEWgLJZ5Q2FxL4Jnjq13ftlwlw mXon5PcD5BgZYCHQd+JRUKPb7MyGmCleAYGbvn49oXz0X+uK/nQNSfAvJrOAtwQPb+sq QEcD85yjdvoz8RJLlTgaWsMxOiZxYAKIy5lc4j7byDMFOBy6Ol7YFIaf7eWx9SBe71Tp 2nMiOMZTcmScoQbQ8kRWlyrQljEuGx4LeO/f0K9ExEbUcJt4OQbNGXejHtYZthP3Yla8 gG0ujgfQlx95Z/nexCGP23PDOM5lU/NQUAFOTRsB1eBlRbNTIKdTHfHStw28nA+SHOqj aNeA== 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=VPZmHplZXQZ63+NkFCd+Yo8MCd9uce4y78zsUpDF3q0=; b=BvKtbXICC8EFGlRd78u485kTG8AE67vqOzURKEFv1WahCsVI/CJCUekbjdKxgrZ8cy rAub2aoFquZgggDuifhKslLhu/sfHV3dDuayGOnmpZUz+KefLDO7PhMAto4siq6vUiMN hpUm8VMonOrjEsjk9LVvtQfRVmHxwHAWoQ5C0k50PM3TBiRnjZz4cog9v5IEXxmwK0AJ Ok/Wwzn+zz5YsROPExt0nIQreADnHCNRxLUDI+sxGPx9eJeDNjO2Apz6WM1AaeF6gx7A H6YnxceECnnJh2GNCR4XC+YIb7dEUvLHtORiuRQiDVyg0SdsFS6cZGGhCT/QY2CVmSdk 0TNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pqvRvrFD; 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 s28si994155edc.98.2019.11.13.01.22.01; Wed, 13 Nov 2019 01:22:02 -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=pqvRvrFD; 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 S1727478AbfKMJV6 (ORCPT + 26 others); Wed, 13 Nov 2019 04:21:58 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35492 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbfKMJVu (ORCPT ); Wed, 13 Nov 2019 04:21:50 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9Lbln079247; Wed, 13 Nov 2019 03:21:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573636897; bh=VPZmHplZXQZ63+NkFCd+Yo8MCd9uce4y78zsUpDF3q0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=pqvRvrFDAn6U6jgLejHtmCgeFVlxGkxaQpkuv5y2B2Roj2nwta5KMyqKYij3HJL62 +bYYgSJnae2wBe/b2SgckTaEYgBp97kGa/OcOiIS3jLenUTLJ2pZKrfM+zS2xrYKVF w31wISgLz7Gh+q+Nv/yNwOWdp5BVuI9gIVt1Wz4g= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9LbQm101641 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:21:37 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) 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:21:19 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 13 Nov 2019 03:21:19 -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 xAD9LJ1J056807; Wed, 13 Nov 2019 03:21:33 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , , , , , Subject: [PATCH 3/4] i2c: sh_mobile: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:22:34 +0200 Message-ID: <20191113092235.30440-4-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-sh_mobile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 8777af4c695e..82b3b795e0bd 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c @@ -486,7 +486,7 @@ static struct dma_chan *sh_mobile_i2c_request_dma_chan(struct device *dev, char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; int ret; - chan = dma_request_slave_channel_reason(dev, chan_name); + chan = dma_request_chan(dev, chan_name); if (IS_ERR(chan)) { dev_dbg(dev, "request_channel failed for %s (%ld)\n", chan_name, PTR_ERR(chan)); From patchwork Wed Nov 13 09:22:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179265 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9328029ilf; Wed, 13 Nov 2019 01:22:05 -0800 (PST) X-Google-Smtp-Source: APXvYqywjUdqA4vQpQon5p0IVCWDlvUfEG/iQmldU/mzvFvdcsOSgjPpg/EX5ro+g3+eVb7rsWtb X-Received: by 2002:a50:cd4a:: with SMTP id d10mr2403978edj.42.1573636925548; Wed, 13 Nov 2019 01:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636925; cv=none; d=google.com; s=arc-20160816; b=JRPT+U0rSk/6kWXNY2ojVqtVV62X2QZfL8AIIl4eOls9vzj8HJwK6DEHX9HtTDYdfd ebEK2+pzz4ZdyaKQF3HVINfvNP0E5o9RTtYEfcwYDdgX3Xz1AmsA0tLeC+pEANn0EjuF lTlj569ljnYngnMS3swmsQm7aWNpJ1EsTWHkuKz1BT9PhcFLuziLbrU8fYLSMlmF/lIT y2lUZO8Bv46RBWUl3xR09dk45gzDWxLcexfDbS2zDdL3A8zZHJkKMbzAn5+4ILl+p2wT CeFwvaZMh+61bL98Vm/T/67MUeqvcsfdaUDt/1UBpbU8w7e/sggMKp351b4U7zPMFa5W +D2w== 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=7J9dO2iGLJeSsQJV9q1KwAwKui5gqNqfEb8754dKT7w=; b=pdjGg+afs4mhUfrbyhWhLbBvPLpM3hszqUz4HbwTjIM/VHguTVnre33z7T4wN1bY9r fbyVd3ZXvyYp3Jlb6dkS3ggi0Hdka278nI4RZfNBbCPB9lBAtAwtSLVyEcIyNPSWUgTD brd96Zkw/9gbMF8ULoZwUpNkWXkPvu9BeCNJHbMnLjaOqqoNydFBF+4WM4NpjgtVgaYv 25olBxmC6IckTthbkUnlt269iXVXr1OZ9qyvnoNxDNz16dfq9ncp4xFK4ltiZPDLgVGa yb7TZUUW4lxjDpcp5xagbWWhv0bCUCImguBIZliC2HFAK9+/QGLM72f0qofxE3u9ztO2 sEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NZ6mZRhQ; 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 h17si788639ejq.121.2019.11.13.01.22.04; Wed, 13 Nov 2019 01:22:05 -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=NZ6mZRhQ; 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 S1727497AbfKMJWD (ORCPT + 26 others); Wed, 13 Nov 2019 04:22:03 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:54264 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727399AbfKMJV4 (ORCPT ); Wed, 13 Nov 2019 04:21:56 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9Lgvh056846; Wed, 13 Nov 2019 03:21:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573636902; bh=7J9dO2iGLJeSsQJV9q1KwAwKui5gqNqfEb8754dKT7w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NZ6mZRhQZmTg0Yt3cbGzmkys/diMbkoT3syjL4K84CyGaB0IYYgJLYg0V3UTMTk1S yHVbOCVFoVmdKL0jA6JDJyTn9C0WleWXJ+YoB+M8YPCu2g+7UH5HeZhaKRMshc7vIq 9J7/fSnYv9mbyHMpB26K54n6IT7fRc1YKq3owfws= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LfBq030622; Wed, 13 Nov 2019 03:21:41 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) 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:21:23 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) 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:24 -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 xAD9LJ1K056807; Wed, 13 Nov 2019 03:21:37 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , , , , , Subject: [PATCH 4/4] i2c: tegra: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:22:35 +0200 Message-ID: <20191113092235.30440-5-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-tegra.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-tegra.c b/drivers/i2c/busses/i2c-tegra.c index c1683f9338b4..a98bf31d0e5c 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -413,7 +413,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) return 0; } - chan = dma_request_slave_channel_reason(i2c_dev->dev, "rx"); + chan = dma_request_chan(i2c_dev->dev, "rx"); if (IS_ERR(chan)) { err = PTR_ERR(chan); goto err_out; @@ -421,7 +421,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) i2c_dev->rx_dma_chan = chan; - chan = dma_request_slave_channel_reason(i2c_dev->dev, "tx"); + chan = dma_request_chan(i2c_dev->dev, "tx"); if (IS_ERR(chan)) { err = PTR_ERR(chan); goto err_out;