From patchwork Wed Nov 13 09:46:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179284 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9351252ilf; Wed, 13 Nov 2019 01:46:56 -0800 (PST) X-Google-Smtp-Source: APXvYqw6BdD2i1rYYlr/fiMheoHzlhj48yrk1tw3vxvse3T68g8kyfdEH13IZMsKb12xIQ8pU0ub X-Received: by 2002:aa7:df8e:: with SMTP id b14mr2459888edy.59.1573638416662; Wed, 13 Nov 2019 01:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638416; cv=none; d=google.com; s=arc-20160816; b=WVvQRUD19B2ENjozCKtPKv6NAW8FvY7mnl4Ktq2tbOJWiRlODNPkcMTPmGUwnH/g61 MVa9qhD82e3vIEDr3ReWMshUdQagTl9zBt3UP5A0Brm39uMa2uE1dQvSmdYjAC6ZYrA0 ey+GqaOzsDWhfLGONss2e8r3Mn02EvE+MhGOvkXntSvFuMAfajTpd2T6NjB9y9x0YJGr VDaObyQlUAa1wopiIL2woylpD/pwpXc3ZmQBzElrzRN8GSa17HpCx9r9fRgdEu7B9KRN yvlQOntFeB7Z4njia/xlLFb+xeFe6rS4QI1jIr9Dsmo4sn38gSd9HiQSJo5SbIT6Xgh4 0pZg== 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=uqVnqEg7jfzzCNxKlUaeLRD250zrEeSg57M2s2f3wmI=; b=L7Gr9vYa3HpIq84zIqtEqpLL2zLygs35aJoGf5lhvQivvMPZR7ZwiozcX28xIa/p6T pt9ZG1oPaRTWPnmiwFfAVua6t1WdpPv1Ja+8ccnWb6iPj9slVdz9cn1yWSjZx2yXFbnX mXQvH8lPdAMTvX2nelIx0Ws1l3Cj7uduK1aijVjA0b0P3ke2jWgmtxDYtwRaoAlRqbgm 6OV7lNn8Ih9qktwx6sy0JM689NdnTJvrtJg/MigUlmz4atSy4j9HR/1urrSsgtRfEeDO SewarDUKiLdN/Bn02EYBLdeHG1PH8X1Zlxl37zqTVJlNggj1XBYrv/dHftuI1kr1uPva l7AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eyAFFpQz; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 p20si965977edi.252.2019.11.13.01.46.56; Wed, 13 Nov 2019 01:46:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=eyAFFpQz; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726613AbfKMJq4 (ORCPT + 15 others); Wed, 13 Nov 2019 04:46:56 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59074 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJqz (ORCPT ); Wed, 13 Nov 2019 04:46:55 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9jAoK083668; Wed, 13 Nov 2019 03:45:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638310; bh=uqVnqEg7jfzzCNxKlUaeLRD250zrEeSg57M2s2f3wmI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eyAFFpQzIWXMss7edh7mGgf6r85grW1ciR5t+B3y0SIjacKUz++sBUtFJlxHJSfYu x6qrR8Vqgip05sTx6kuPhIYMdO5Fh2lFBiJ1C1bLIwbcX4hX5gRqvLcvCB6jvldE6R +1RcRmWseqaiO9ZWWOVBe4Xpfr5+R3OsFoDBW+NY= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9jAJ8088897 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:45:10 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) 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:44:51 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) 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 via Frontend Transport; Wed, 13 Nov 2019 03:44:51 -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 xAD9j2KB078225; Wed, 13 Nov 2019 03:45:06 -0600 From: Peter Ujfalusi To: , , , , , , CC: , , , , , Subject: [PATCH 1/3] tty: serial: amba-pl011: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:46:16 +0200 Message-ID: <20191113094618.1725-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113094618.1725-1-peter.ujfalusi@ti.com> References: <20191113094618.1725-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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/tty/serial/amba-pl011.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/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index ae63266e181f..38e2d25f7e23 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -414,7 +414,7 @@ static void pl011_dma_probe(struct uart_amba_port *uap) dma_cap_mask_t mask; uap->dma_probed = true; - chan = dma_request_slave_channel_reason(dev, "tx"); + chan = dma_request_chan(dev, "tx"); if (IS_ERR(chan)) { if (PTR_ERR(chan) == -EPROBE_DEFER) { uap->dma_probed = false; From patchwork Wed Nov 13 09:46:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179283 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9351038ilf; Wed, 13 Nov 2019 01:46:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxDZQ0tIT7DNhn8/R5gNqb5bzPhZlGWxTsxAoNFtZc61Sv08kB+FizDeWVrRZCiKxffH+ka X-Received: by 2002:a05:6402:105a:: with SMTP id e26mr2414249edu.229.1573638401499; Wed, 13 Nov 2019 01:46:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638401; cv=none; d=google.com; s=arc-20160816; b=0jV8sdY4/E22il+YNX24wRXHTIZ4aVc1258ryzs+KtHzfJOJghSnjmEuW6ZMjbsIYJ fJ7pVXQ/tBhHMHGJ9+nIFVh0sZvedpp/N/EXReJaIeFPKJrSTo7seZsSxGXqyqWhMV5C JO8fjPCa+n7XBXq51YjMemmNW3T27o9p0d/eiFL8MpwIzgYqOJCPAryExSOYFE0H4swh f3uX/TyONG1HxbjKbloCHsNdJQ2t271IAhnxGdf4mRVsOPCKC4i7PTrG2xv7UT/GZydI wJ1tMNHSgjSdjy9bnMw02mQhL0wChetUg6BVh5l+iIw0WDudkof0be/DutmyhfOinxWx sxVg== 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=SXIR1+Q8TbxVFAPoT/8vIgKw5XAPlF781ThoPLMUS8E=; b=v2dkbjAIYXqhdSHYqrlRUhikeYNDJ6W9CdZbvi6SJ0xFeR+ly3XgpCYfqwiwNAgtHz dnyiFHf/RTLqloeqqiQ0w/eKG+tZ90Ot1HBpjVGAcUNWHYtSbQJatJhcNWlE+PAQBYqV 7iWrXl++sqRIWNUZIgXo4k9/vIk/gr+/ZqGJncBAooIq3SYmSvdo844yO5h9KM1cGyx3 BrKfoxh4KrqtUSc6msdWFWONIxgt9Pwt0h9oJ4LY4EhJw10afNeSh8GEGB0SDPs2h2yO +Vky0QwjkdBhI5+jwYVTWaUlCInrwUmN8PzElfQMaBIQ2pFxtK8xZo5XtIq7Bc0LP7wP 9ouA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wcGT4FWB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 e24si967359ede.392.2019.11.13.01.46.41; Wed, 13 Nov 2019 01:46:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=wcGT4FWB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727480AbfKMJqk (ORCPT + 15 others); Wed, 13 Nov 2019 04:46:40 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39140 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJqj (ORCPT ); Wed, 13 Nov 2019 04:46:39 -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 xAD9jGcl087664; Wed, 13 Nov 2019 03:45:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638316; bh=SXIR1+Q8TbxVFAPoT/8vIgKw5XAPlF781ThoPLMUS8E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wcGT4FWBqnD5SHR1/xeKWdz4pmUykgRYfxu60xS4TdwOpRa8BgpGly87ghf4dNfCd sdg8QIRLxX7SKMwyS5BjYqHfFfVcFExjEUqONOsa+UcPNDWj7Sg9Pw+iE3GByrkRK7 yj58y7WLnLvinfvRDCErMG91sfc9nC8VC0t4aRps= 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 xAD9jGU8006807 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:45:16 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) 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:44:58 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) 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:44:59 -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 xAD9j2KD078225; Wed, 13 Nov 2019 03:45:13 -0600 From: Peter Ujfalusi To: , , , , , , CC: , , , , , Subject: [PATCH 3/3] tty: serial: tegra: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:46:18 +0200 Message-ID: <20191113094618.1725-4-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113094618.1725-1-peter.ujfalusi@ti.com> References: <20191113094618.1725-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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/tty/serial/serial-tegra.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Acked-by: Jon Hunter diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c index 2f599515c133..b6ace6290e23 100644 --- a/drivers/tty/serial/serial-tegra.c +++ b/drivers/tty/serial/serial-tegra.c @@ -1122,8 +1122,7 @@ static int tegra_uart_dma_channel_allocate(struct tegra_uart_port *tup, int ret; struct dma_slave_config dma_sconfig; - dma_chan = dma_request_slave_channel_reason(tup->uport.dev, - dma_to_memory ? "rx" : "tx"); + dma_chan = dma_request_chan(tup->uport.dev, dma_to_memory ? "rx" : "tx"); if (IS_ERR(dma_chan)) { ret = PTR_ERR(dma_chan); dev_err(tup->uport.dev,