From patchwork Mon Jan 9 16:38:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9505479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 04D0760710 for ; Mon, 9 Jan 2017 16:39:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E34D22847F for ; Mon, 9 Jan 2017 16:39:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D820428494; Mon, 9 Jan 2017 16:39:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B3572847F for ; Mon, 9 Jan 2017 16:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762691AbdAIQjK (ORCPT ); Mon, 9 Jan 2017 11:39:10 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38733 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758394AbdAIQjI (ORCPT ); Mon, 9 Jan 2017 11:39:08 -0500 Received: by mail-wm0-f48.google.com with SMTP id k184so127316049wme.1 for ; Mon, 09 Jan 2017 08:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L83h21ZpnMImdlyP0l+Tk8WsWXbIPBTkowLDWfzgpDM=; b=uicVizMWX57aHTBe0SOQrTIa6ILplZL9V6ZsQdKekL0iLEANCsHUF8FIzz5TBPA7TM F5HNncEGz6snekLSIrfWYsJB3yMWwjzYrj38bIIRTofKscCcxSk+yH1Ed9B0rtOe7JDz 6/wBsC3wp87suUx+h1ad7Y3w/jj34v02yw5QLvfHw7H2Id8kD8Om8S0ckfcOW5cnxuiu 09r/g5sDUMpj3hoqw6gl1VZo7OAmuzBsAxAD4yy/Si0XfqaKVN+XoIWMWIUCct1WBrLb aZpCsyHGcCsauy2tAeP660zJNw59yCc3HwN5beMOL5cSxQ1fZByuwc6jv74a480E8hnu 2w4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=L83h21ZpnMImdlyP0l+Tk8WsWXbIPBTkowLDWfzgpDM=; b=rZ3Y4ly1cLNb6y5GXLfrwHxunXoxnI5XEe8HiovXNaPXG/MYisr7QcDKHjc3RkjO1X jNEv+FXmxnhBK0KtyLcC70vbNjZpNdxAdSYJ33JXPOtXAwTSUCt2H36jFsxRd/PCqAvV x5uCnZwaycjOeKGTx/5xckJYnFAhX0AWzi8PnK8LQtKEnCsEVKBosSbre6ltnAeHN3AK 5dmqT5aANSTUv/9Rr7JeSnCwW/5j+7VmV95qRqrrZuYvV3fURlGIrqvbAWMP10CT2W5l 1K5ARV2s/oHXGKz9e6rdb+3ibVw7E/ATDZE1TpgA6LEdgMzd8KMBnYMd2c49N14N1mZE agFw== X-Gm-Message-State: AIkVDXI3XdYDnyMTPd4XAfeIgQZWMqZJn+9SZ+9AaXRvkLtpwtvUytFSaDMzcB+q8UYJhnVI X-Received: by 10.28.154.70 with SMTP id c67mr981705wme.90.1483979946782; Mon, 09 Jan 2017 08:39:06 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n5sm19733391wmf.0.2017.01.09.08.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jan 2017 08:39:06 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: vinod.koul@intel.com, dmaengine@vger.kernel.org, linux-usb@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, david@lechnology.com, Alexandre Bailon Subject: [PATCH 1/4] usb: musb: da8xx: Use the right dma controller Date: Mon, 9 Jan 2017 17:38:59 +0100 Message-Id: <20170109163902.5268-2-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170109163902.5268-1-abailon@baylibre.com> References: <20170109163902.5268-1-abailon@baylibre.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP da8xx driver is registering and using the cppi dma controller but actually, the da8xx has a cppi41 dma controller. Update the driver to register and use the cppi41 dma controller. Signed-off-by: Alexandre Bailon --- drivers/usb/musb/da8xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index e89708d..74dcc07 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c @@ -458,14 +458,14 @@ static inline u8 get_vbus_power(struct device *dev) } static const struct musb_platform_ops da8xx_ops = { - .quirks = MUSB_DMA_CPPI | MUSB_INDEXED_EP, + .quirks = MUSB_DMA_CPPI41 | MUSB_INDEXED_EP, .init = da8xx_musb_init, .exit = da8xx_musb_exit, .fifo_mode = 2, -#ifdef CONFIG_USB_TI_CPPI_DMA - .dma_init = cppi_dma_controller_create, - .dma_exit = cppi_dma_controller_destroy, +#ifdef CONFIG_USB_TI_CPPI41_DMA + .dma_init = cppi41_dma_controller_create, + .dma_exit = cppi41_dma_controller_destroy, #endif .enable = da8xx_musb_enable, .disable = da8xx_musb_disable,