From patchwork Wed Nov 13 09:48:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179285 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9351814ilf; Wed, 13 Nov 2019 01:47:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxuqGHTqRs6u4JGVCxi1gaeTTHTTSmEbgmIt2/boHWym0FBIXS7p1X7VR7M+hTqJ4pa86Xh X-Received: by 2002:a17:906:f255:: with SMTP id gy21mr1824656ejb.204.1573638454024; Wed, 13 Nov 2019 01:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573638454; cv=none; d=google.com; s=arc-20160816; b=xWLlSHQEQ0/xnDs8UHk3wXbDIHArAYaLUDXs1Qgm9OaSe5j+qkJrI8clihQoX7/zJJ wCII5ono9TppVEoH/A38ZK5UhpKchCmHxdDV2/bAEEdcGYWU6wY8h619f6CHD0Wo1EEu Bx0gslS/iKkWPM/ioZ9b80EsQ7dACj38GmwDdQwECKN6ICv8ENLlH2lXljFGmxvwtkgb fhZXwR/q4Paz3GD0G3GnRDFEKAp1w4hAAluqHt7VHEJHvohv0KI39yBqKcgNfhmg6sU+ 9dEbhpVbEr1rcns4SdPaptD9O6zW9FdEn7A54XVaiBXmB7vHiOw//hB1IJt1Wq06zS5E UlIA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=eGjBTMj+RQxCssIXFWDGuYzJCRzhhvflhoF8CYxUAQ0=; b=NMz8X3HKkTXVaJgnk+Gdr1DCZPaHDVYj0Oe7P0SQMIASX7cxDaJ5F9HmropdctocRo pKlRKVyiO9Hry8k729P4wqOXLlmBKuessym9tNfy67CktM6xasKD2Hkii+L3Piv4aY19 bJdkBNIgSzYA3wpSH58Vg05gs7YsUByWTQVrVf2XZdbXMCmB4kJuthItKA3l2FgbpYDT Kc+eHPD75b35mEjlSATlfE6g/CFdt/tUVW2KZ+YVjZuWlLnqwBhte0Zj7B5LekZr1vMh 9r798Foig78dnRQ8kazYgWRl6YqVhqK7F1uh2Q3+B3Z+YrwP8wJA/3Z1KvbpB3Dh4YDy qB3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oTjqyiq0; 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 49si968349edz.9.2019.11.13.01.47.33; Wed, 13 Nov 2019 01:47:34 -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=oTjqyiq0; 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 S1727612AbfKMJra (ORCPT + 26 others); Wed, 13 Nov 2019 04:47:30 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59152 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727578AbfKMJr3 (ORCPT ); Wed, 13 Nov 2019 04:47:29 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9lPO0084421; Wed, 13 Nov 2019 03:47:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573638445; bh=eGjBTMj+RQxCssIXFWDGuYzJCRzhhvflhoF8CYxUAQ0=; h=From:To:CC:Subject:Date; b=oTjqyiq0v57Z/KPHhuwD733ovHJPe9UNw9XADR40XKCNAfXNB4NtRs5CwatiJZVKD +85C078VzhYgrRvSkG9xl4buxJG5g4PqL/N9tQJOUtivLAHkxjU6cDfyuqGvbSqwwV n791WkyEVv0G1mMGXgG7Ngb9HWbzkDhKZOkvAyCw= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9lPRg072648; Wed, 13 Nov 2019 03:47:25 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE101.ent.ti.com (157.170.170.31) 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:47:07 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) 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:47:24 -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 xAD9lMc8083574; Wed, 13 Nov 2019 03:47:23 -0600 From: Peter Ujfalusi To: , CC: , , Subject: [PATCH] usb: renesas_usbhs: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:48:38 +0200 Message-ID: <20191113094838.2141-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 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/usb/renesas_usbhs/fifo.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/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c index 86637cd066cf..01c6a48c41bc 100644 --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fifo.c @@ -1273,11 +1273,11 @@ static void usbhsf_dma_init_dt(struct device *dev, struct usbhs_fifo *fifo, */ snprintf(name, sizeof(name), "ch%d", channel); if (channel & 1) { - fifo->tx_chan = dma_request_slave_channel_reason(dev, name); + fifo->tx_chan = dma_request_chan(dev, name); if (IS_ERR(fifo->tx_chan)) fifo->tx_chan = NULL; } else { - fifo->rx_chan = dma_request_slave_channel_reason(dev, name); + fifo->rx_chan = dma_request_chan(dev, name); if (IS_ERR(fifo->rx_chan)) fifo->rx_chan = NULL; }