From patchwork Wed Jan 25 10:17:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 92408 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2138226qgi; Wed, 25 Jan 2017 02:17:22 -0800 (PST) X-Received: by 10.98.93.152 with SMTP id n24mr45804151pfj.107.1485339442440; Wed, 25 Jan 2017 02:17:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si1086465pld.335.2017.01.25.02.17.22; Wed, 25 Jan 2017 02:17:22 -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 S1751703AbdAYKRU (ORCPT + 4 others); Wed, 25 Jan 2017 05:17:20 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37461 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbdAYKRT (ORCPT ); Wed, 25 Jan 2017 05:17:19 -0500 Received: by mail-wm0-f49.google.com with SMTP id c206so22112950wme.0 for ; Wed, 25 Jan 2017 02:17:18 -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=RZ79rMGoSuaYLU9+jkNI+Le1/Svy+5crh+UI4Z2F/io=; b=ViWQQYdSu4ZTh7dCGypfF3kwz55CUueLOzPYahSoxMwYJYaZpqftGQG6uUQa/65DUC nssIcptlFMoiuUeZK87M9Rsie3lZuTMGxCIqoBIdTt6CXjiAGUWiyWlhX/aeYwubjIDl a9vBwgWHE0Vi5KgMukIiUlKrJUHpiew+pDoc5iGkT7C7QloiDvHttoofR/Ub+XbjBFkI PSgkuEip3FeJY2LGEva5efJuBph88xdKMaifiwqX0fKXTQQigsoUSLNvu1itFDLysS6G 9fbG283zeX1jWNUc1Fd0g86WascSug5HFbddkJOCvF3Q5md/9uGlMMuiYdCO4GOq527g ssVA== 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=RZ79rMGoSuaYLU9+jkNI+Le1/Svy+5crh+UI4Z2F/io=; b=suagey7ehyoGGh4fa4GVayUWucLQZnQP7qxXcW8Ldk6EzutRbDecC5oso0KKtoyzqp qbdoJykQjxC0YPneBovV0xYB0uTGqxQL44ZT/zSt9iLSB70SOCGoS6u/DA+0UwnM4C8M tciCEx0BeiWDB+uvQVEfJdp9BlXwobTV4Fkmg5RUE53HDCsRpYeYAKQaW5i832sPhyc9 HkWn7se+xP7B4Q3oAa2qt2PKI77mZxlUMpseOeiX/miHjaH7Q8dXeAf00YUBPBbQJRSy h2b8/ZVxNKU9astX29+H7IBPZ7Tq476Fx++MtiI1dUmkLhmXBUpiVRytt0XDNGOZ5Zit SFRw== X-Gm-Message-State: AIkVDXKWOMR/PagvE2M0nD19bmOYyt1v96RqyhM3D/Wd7ZxaAoh6igWOqd2Y305PLe9FMopw X-Received: by 10.28.91.16 with SMTP id p16mr21101643wmb.111.1485339437729; Wed, 25 Jan 2017 02:17:17 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id t123sm6483045wmt.8.2017.01.25.02.17.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jan 2017 02:17:17 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com, b-liu@ti.com Cc: 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, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v5 0/6] usb: musb: cppi41: Add a way to manage DMA irq Date: Wed, 25 Jan 2017 11:17:03 +0100 Message-Id: <20170125101709.15696-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 v5: - Clean up patch 4 and 5 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 | 49 +++++++++++++----------- 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(+), 63 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 Acked-by: Vinod Koul