From patchwork Wed Nov 13 09:46:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179281 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9350879ilf; Wed, 13 Nov 2019 01:46:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz3qmW8jNFqRiqwO/dbJQ8zjrxUWrmtZwHGUQjAWUtGSbgvNpw2Zbdwth7MSisKUqp1qSov X-Received: by 2002:a17:906:4e83:: with SMTP id v3mr1823988eju.246.1573638392078; Wed, 13 Nov 2019 01:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638392; cv=none; d=google.com; s=arc-20160816; b=qE9iSFLq4K4EZ7EnI8qEGOVqScXNFUpqzsShMdE2XwobFaiCudhGUpOTLhUCl9WZ9w CCM1RFYzAIiZexiWJeusDBWQy1BvBBLp4iONFINjF7YFhvY3X3l+EE+pzUaI0gz5scSs p1KYpF7mmmSGnAzGEZaMHKTdq5qpHYaXIUg1byG8kul5aMPDfTA8RIiB7WnFjJp5KbfA ahguvSYjiMMcaMVamKtsXv1vYgyVo5WXNhWWbwohkdP9xV204kNvKYRncB5CJmilxH7y 3O/Mxje5T03zBs1NlmfPf/lJ5c2yxTK9HHui1N9wVjFxdtNQA6Rkf7QE6KrwnzHGmvNP 6fGw== 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=GHNUseg5evFt6Y9KnNI8MJPhCUDouBqew70akAkrOqk=; b=R7lEp1zjeluj+YkZ0qbYO8GUJUQHF/0lDz9pIL4ifx54j8CYE/zp7tKgmh1JeI+scG 2Ri7dJp597Bq9miv3QcW+tm6dPdvQwFCkbdE/zVpBuU6jUsgd1UQdca8M2iZxY4ma5Ao PlTLuaJrU7AKq4GeoIFEkLsnAxOsl06Fd0gXrB1pdQNmV0P7PFu/AgM9jTylWVa7Hqi2 cAN/PzM1VU1iEobV+g6wxZO+mxN3z2u7DqPZSS657c6wiigCr/HEt3y90nrNcy+lhhc6 jlyryCAJGLZ13f5d7ZV+lV9bPjCCTKutV6YR2Ft5CBhRef0k0AcChpueqiTiammpKqR0 VPKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JYo0pdS3; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 q22si794172ejx.69.2019.11.13.01.46.31; Wed, 13 Nov 2019 01:46:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=JYo0pdS3; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-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 S1726339AbfKMJqb (ORCPT + 1 other); Wed, 13 Nov 2019 04:46:31 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39128 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfKMJqb (ORCPT ); Wed, 13 Nov 2019 04:46:31 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9jDjB087645; Wed, 13 Nov 2019 03:45:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638313; bh=GHNUseg5evFt6Y9KnNI8MJPhCUDouBqew70akAkrOqk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JYo0pdS3kolpcA+44t+Ffl4kaArBrSdtmER7HI2jty0aKvk2DZ9/rG0Wccph9tKZ3 XV06/5rF2PgaEkSphPs1InSXym87b4eeRzRaGXjiOC17cGgJfcyZQQ8fPlbb29fk7J xUoqwBJY3F2bUk+k7jB/6tkxCpuXUkMjS1oRz/zA= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9jD0e089011 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:45:13 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE104.ent.ti.com (157.170.170.34) 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:55 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE109.ent.ti.com (157.170.170.41) 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:55 -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 xAD9j2KC078225; Wed, 13 Nov 2019 03:45:09 -0600 From: Peter Ujfalusi To: , , , , , , CC: , , , , , Subject: [PATCH 2/3] tty: serial: msm_serial: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:46:17 +0200 Message-ID: <20191113094618.1725-3-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-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@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/msm_serial.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/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 00964b6e4ac1..1cbae0768b1f 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -301,7 +301,7 @@ static void msm_request_tx_dma(struct msm_port *msm_port, resource_size_t base) dma = &msm_port->tx_dma; /* allocate DMA resources, if available */ - dma->chan = dma_request_slave_channel_reason(dev, "tx"); + dma->chan = dma_request_chan(dev, "tx"); if (IS_ERR(dma->chan)) goto no_tx; @@ -344,7 +344,7 @@ static void msm_request_rx_dma(struct msm_port *msm_port, resource_size_t base) dma = &msm_port->rx_dma; /* allocate DMA resources, if available */ - dma->chan = dma_request_slave_channel_reason(dev, "rx"); + dma->chan = dma_request_chan(dev, "rx"); if (IS_ERR(dma->chan)) goto no_rx;