From patchwork Mon Jan 23 16:48:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 92232 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1304191obz; Mon, 23 Jan 2017 08:48:26 -0800 (PST) X-Received: by 10.98.22.150 with SMTP id 144mr33165991pfw.40.1485190106514; Mon, 23 Jan 2017 08:48:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j130si16200199pfc.6.2017.01.23.08.48.26; Mon, 23 Jan 2017 08:48:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750714AbdAWQsV (ORCPT + 4 others); Mon, 23 Jan 2017 11:48:21 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:35166 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751331AbdAWQsU (ORCPT ); Mon, 23 Jan 2017 11:48:20 -0500 Received: by mail-wm0-f54.google.com with SMTP id r126so142039694wmr.0 for ; Mon, 23 Jan 2017 08:48:19 -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; bh=hsZEgGroXnhrDw9REQqrng6xVPKZoIQoprkMW6G96AY=; b=sAWiolKjQ6dwaYQulmB/c4HWdhBfCJibha14UXt+Nm2+tpvomj4OXGLQ4KqGxVAzti gh/H9M85j3QDx1IcACrvKHWqYF3lCQgQMxg+QGxeD81XGe8Wc3hOf2PjtF/vAqTFtsMc I6a1ID2KtLCRqR50TA1VaWkoQFHuM3CDX6ykkSIiuyZOCFpwnCz9Z+2e8R3XFXGko/N1 A32PvWlRK26U4bxxB4QkNe9bDsM8QLkbBNiD+L7n6eozQJ+iJJc0d2ikzPv9za9ypmWa v2GKEr/7aPErBBV3Qg4sWWwqK+VTNh1XV7S0m/33vAqNY0dGUJFZqyLtcqt7o4l6qexy Jhkw== 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; bh=hsZEgGroXnhrDw9REQqrng6xVPKZoIQoprkMW6G96AY=; b=pv3oT/sZGpeU9hgTGpBBdEH+CMvp1TZAlql2EDnmNPvV8NjjGfy+u0gZeSl+o/VkOD JEWvkJcUMxv+/unvyrp1XnDx9p3a8eNTbtMUVg2RxzhDXDUjogSP59tgty+1nHh6/NGq uBO2pXXVA5Sw7gWvCKQIZry4B+wYmqpF5+sYPUR0MS1Ed5XmwNQR9SxZMh4ErL3OyMF9 ucfg4/JRM287VwFsPU9F7egL0Ygwhv3/KCm+zQMdwCuZNbj9LYLGIqGxqetks7uhDEhD OT7rn6WNGopoQkfljsuXOkd3oW+bppEUrJYi0BlQb5VVxE26RhtHMp55c8SK+GFBH9zB KpIg== X-Gm-Message-State: AIkVDXJW4leGPywABaoSctG+W277MUJ9ubiysSVrFgXQnHJjwmfEUNmOHHif8RBnXNYSiSej X-Received: by 10.28.8.213 with SMTP id 204mr15053726wmi.100.1485190093865; Mon, 23 Jan 2017 08:48:13 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id y127sm21907054wmg.12.2017.01.23.08.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 08:48:13 -0800 (PST) From: Alexandre Bailon To: b-liu@ti.com Cc: vinod.koul@intel.com, dmaengine@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, sergei.shtylyov@cogentembedded.com, Alexandre Bailon Subject: [PATCH v4 0/6] usb: musb: cppi41: Add a way to manage DMA irq Date: Mon, 23 Jan 2017 17:48:02 +0100 Message-Id: <20170123164808.27936-1-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org This series was "dmaengine: cppi41: Make the driver more generic". I have tried to separate as munch I could CPPI 4.1 MUSB driver changes. Currently, the DMA interrupt is managed by the CPPI 4.1 driver. The issue here is the CPPI 4.1 driver must access to MUSB glue registers to manage its interrupt. In order to move the interrupts management from CPPI 4.1 driver to MUSB (and then make it more generic), update the MUSB CPPI 4.1 driver with changes that will help to manage DMA interrupt from MUSB driver. Changes in v4: - Remove musb pointer from struct cppi, cppi41_dma_controller and tusb_omap_dma. Changes in v3: - Move a patch from another series to this one to avoid build error report from kbuild test robot - Instead of adding and exporting function, add one callback and a pointer to musb in struct dma_controller - Surround the DMA function introduced in musb_dsps with #ifdef / #endif. Changes in v2: - Fix some typo in commit messages - Add more explanation about some changes made by patch 2 in commit message Alexandre Bailon (6): usb: musb: dma: Add a DMA completion platform callback usb: musb: cppi41: Detect aborted transfers in cppi41_dma_callback() usb: musb: cppi_dma: Clean up cppi structure usb: musb: cppi_dma: Clean up cppi41_dma_controller structure usb: musb: cppi_dma: Clean up tusb_omap_dma structure usb: musb: dsps: Manage CPPI 4.1 DMA interrupt in DSPS drivers/dma/cppi41.c | 28 ++++---------- drivers/usb/musb/cppi_dma.c | 26 ++++++------- drivers/usb/musb/cppi_dma.h | 1 - drivers/usb/musb/musb_cppi41.c | 48 +++++++++++++----------- drivers/usb/musb/musb_dma.h | 5 +++ drivers/usb/musb/musb_dsps.c | 81 +++++++++++++++++++++++++++++++++++++++- drivers/usb/musb/tusb6010_omap.c | 7 ++-- 7 files changed, 134 insertions(+), 62 deletions(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html