From patchwork Wed Nov 13 09:54:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179287 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9357348ilf; Wed, 13 Nov 2019 01:53:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxl1B7Rs3bc1ZlQQOdzowgjOdFh64yEqDKBpKT3uVbMqP35NCX+2tNzEpTRG9WKO0rNW3Hj X-Received: by 2002:a50:9353:: with SMTP id n19mr2530939eda.258.1573638839347; Wed, 13 Nov 2019 01:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638839; cv=none; d=google.com; s=arc-20160816; b=aBIy1tuH69yrTxjhHkyfHmiZoWV+JtqtkQkzLxaCepMNraXVy5dNnZhZtH/HlNgBtG mOqEnTdYi+HnWGbhA4P7rUIqFneQoSev1MqDRE69jJb7KTVE5D6VktVWraOnDMbhltoe C5/iEODZTtxxse9CE1bUSQNTz4kyk8xxct/YdxSLtEy30PoJNtuUaZr4rGfK2oIUqPHD GepsBptae7xePCtMGMwC0JnDHlh3warNMcEReeGz9kQso9wf1BkV5ngW9HOaXq3ggN0p aw7TESjTDqbHQ7dN/YtsIecrxNXoRqzAdvhGODz0QDhXVeQ8qXzRkGuGzKjYaSgWLlnf PCyA== 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=hYh1EUFha/ylbf5ZiyeOjQ/Riy1tVsc+1RvgaMEdHNY=; b=cqrC65YdmEpJ6dUy3P1IoxVV7L8o2KQmM6pU2UyB8f99rCrhSbro6BIIk1STRNYSTn 6im5WpstwrR51myo5Z0ddymKpqFrscx3rbWOYp3JdDdxRU6ldl68EKMPMGQ4suN9blIG nAVBhFVHfQqwwixMEzekWMQBlhD7zyXAwBDut1Mzv83xrzd3hVkur/xTAT9ULlAHCJsB ILcDUd/muIOhgchE8glFApAxESWZVbSxOSlmRnUnTL0Bu0PznD1tvKG6uGNFo5kwNrTH p1n4GyRdctnzVJzHVE2SyWgsT/yFaFLjOws85NtImldI2pOP+BNMmd+dPmbTOqI/h2B5 1YEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rVRXNrOW; 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 c12si784732ejz.290.2019.11.13.01.53.58; Wed, 13 Nov 2019 01:53:59 -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=rVRXNrOW; 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 S1727141AbfKMJxx (ORCPT + 26 others); Wed, 13 Nov 2019 04:53:53 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39904 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJxw (ORCPT ); Wed, 13 Nov 2019 04:53:52 -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 xAD9rZ0V089866; Wed, 13 Nov 2019 03:53:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638815; bh=hYh1EUFha/ylbf5ZiyeOjQ/Riy1tVsc+1RvgaMEdHNY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rVRXNrOWKtsFJdE+4ID4buQQPghk1FG7GXNdVaK6a9e+0bTwdZVMgvn4yeCrjdzkA HKloqqZVJd6JWJ1KWOB2zvguWupKfy8nGxybY6As2WJW4N4ri9GV3sWampSc88vWsP ZijDcXOjXC4Ryv49iNW+W3h2Y2n19aEgwWKOnGJo= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9rZwu081844; Wed, 13 Nov 2019 03:53:35 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE105.ent.ti.com (10.64.6.26) 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:53:17 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE102.ent.ti.com (10.64.6.23) 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:53:17 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9rUGT121188; Wed, 13 Nov 2019 03:53:32 -0600 From: Peter Ujfalusi To: , , CC: , , , Subject: [PATCH 1/2] ASoC: dmaengine: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:54:44 +0200 Message-ID: <20191113095445.3211-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113095445.3211-1-peter.ujfalusi@ti.com> References: <20191113095445.3211-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 --- sound/soc/soc-generic-dmaengine-pcm.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/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index f4c755209e03..a428ff393ea2 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -387,7 +387,7 @@ static int dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm, name = dmaengine_pcm_dma_channel_names[i]; if (config && config->chan_names[i]) name = config->chan_names[i]; - chan = dma_request_slave_channel_reason(dev, name); + chan = dma_request_chan(dev, name); if (IS_ERR(chan)) { if (PTR_ERR(chan) == -EPROBE_DEFER) return -EPROBE_DEFER; From patchwork Wed Nov 13 09:54:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179288 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9357437ilf; Wed, 13 Nov 2019 01:54:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxLz0L8qzFTgvPrvbJpwQsEmLIBeWC+B2+iucPM9uBPD15OoGA+5rR8JMBhreelSCL1OWIp X-Received: by 2002:a17:906:c7d5:: with SMTP id dc21mr1858161ejb.267.1573638845166; Wed, 13 Nov 2019 01:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638845; cv=none; d=google.com; s=arc-20160816; b=ajlIILeTsYtDx0G1fDlIu1ovetDvRUNMLiI+3JsBOoyrFZhAfoI93oZ3354OJtElen Sz6/T+8deU7pqxYGxt4y5jTX0rXgCONwBGnkv8oiJVqroYktRElP+HxFrpvQqLzZhyOW h0K4Oee4Ca4QvKigHQOXCCiaJng2jdWrF+E/WH8dCXjpagVzmSZkd10+rPFHhibr7ta7 9CQHQfczC+EuKa1rHgSIBd4xoQynNFBs2xzRmqHYTeA9eGBh96C31WPPyeEGlmMs4PG5 Ef+IMFlLFSdI5gx8fw/loDRm7Q0hwTlGsCbFOUybGMTv6yQAw0Ww/WRANlbvxIccKiFJ oXZQ== 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=I90xq++VpRRQlH9iLcYVO/WU1tHrd6e7lDGaAOGJKKM=; b=gAwZoog2GZePouMz9Xr+Q7Q4SyFhMVFOT1E1w7ofH8bcYngscMRD1PMxY5jMyjdv0l IfegDHt47WDLfPuiP9/EvAwRhrjwo95xZ+GUXgQ37ez3S/Fj42ZGSr2co5glOQjpr4Mn aq7QSNJtIGB8JRJXOHqM1SBmuMymkzmVyak5l1uHD2dVtCOY9KfJZpnkXEiW65Fa71vo lJ9oWX5WgyuqpAzo9fBxJj4j6XbwGkweiF/7lbIw9ypiAIqgz3lHbCOOsdmqfJl7XwLt BVhk7czStk1OnWt9qnhNxjfJk0rtLhRAy5CJ60bMMVjuuCE6vhtY8RdhguxC8StmmOTF BHBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wohaGs2Q; 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 i12si955371edr.198.2019.11.13.01.54.04; Wed, 13 Nov 2019 01:54: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=wohaGs2Q; 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 S1727354AbfKMJyA (ORCPT + 26 others); Wed, 13 Nov 2019 04:54:00 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50278 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbfKMJxz (ORCPT ); Wed, 13 Nov 2019 04:53:55 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9rbtv126686; Wed, 13 Nov 2019 03:53:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638817; bh=I90xq++VpRRQlH9iLcYVO/WU1tHrd6e7lDGaAOGJKKM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wohaGs2QIMaET3VJOrHbo96YgxOBK1lr+R2PBOVGYDJTQJfhJn+Z/KwXoQPxPG7Do XLbkaqhSKhYfN6e56ZLziSDq9qQKE1e+01RotuVOJr9tJ96JgyZoxgt/0Lqj1jrcsZ wjILvfr2IEkuvLuXMkglHX0aKBBVrd6pbYEnXaAQ= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9rbuN019290 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:53:37 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE106.ent.ti.com (10.64.6.27) 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:53:19 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) 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:53:19 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9rUGU121188; Wed, 13 Nov 2019 03:53:35 -0600 From: Peter Ujfalusi To: , , CC: , , , Subject: [PATCH 2/2] ASoC: ti: davinci-mcasp: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:54:45 +0200 Message-ID: <20191113095445.3211-3-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113095445.3211-1-peter.ujfalusi@ti.com> References: <20191113095445.3211-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 --- sound/soc/ti/davinci-mcasp.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/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c index 7aa3c32e4a49..8e5371801d88 100644 --- a/sound/soc/ti/davinci-mcasp.c +++ b/sound/soc/ti/davinci-mcasp.c @@ -1867,7 +1867,7 @@ static int davinci_mcasp_get_dma_type(struct davinci_mcasp *mcasp) return PCM_EDMA; tmp = mcasp->dma_data[SNDRV_PCM_STREAM_PLAYBACK].filter_data; - chan = dma_request_slave_channel_reason(mcasp->dev, tmp); + chan = dma_request_chan(mcasp->dev, tmp); if (IS_ERR(chan)) { if (PTR_ERR(chan) != -EPROBE_DEFER) dev_err(mcasp->dev,