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: 9505477 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 C03CF6075F for ; Mon, 9 Jan 2017 16:39:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAF5E2847F for ; Mon, 9 Jan 2017 16:39:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FA2228483; Mon, 9 Jan 2017 16:39:11 +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=ham 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 2A98628494 for ; Mon, 9 Jan 2017 16:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbdAIQjJ (ORCPT ); Mon, 9 Jan 2017 11:39:09 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:37569 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758474AbdAIQjI (ORCPT ); Mon, 9 Jan 2017 11:39:08 -0500 Received: by mail-wm0-f45.google.com with SMTP id c206so39209790wme.0 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=ZIewqMsoV5vb9bkES0WjLTT5v+Bt4kdKVyJxzKRJfKTAU5NiEnFzB0k324NMmCcBCZ t/U66BfgbPmAZ3Hmj2InwkVs1w23+PElh2A8PqCZOriqwI2ziRlEmsAuTzytfUhhqlIT bNKrzVS+YkUVQNVbbj4x04ftvMcElXaiUrr1MomGqp6E3+O706HY4lcS6SkIHAJ0ao0d Z7PQmzIvXHNty9S9IUIU6jLIzReAr0jwT8eWlxCfZghzRRYqXJBtrU34axegmzx3Z/9f XTDueKI47j2CkZHwXYu6V7ZxqsAxrgD3goYVD5+JpMbGw0gKscx4j3An6sYOpVM5c42m /CSQ== X-Gm-Message-State: AIkVDXK9Kq4AugwQzkajU13HI+S2c+lK58UFxB3blRQ3u+Wf2P4IWRnJv6DB7+kRa7zkOQyi 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: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@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,