From patchwork Thu Jan 19 10:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 91844 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp200650qgi; Thu, 19 Jan 2017 02:07:16 -0800 (PST) X-Received: by 10.84.215.215 with SMTP id g23mr11960120plj.85.1484820436593; Thu, 19 Jan 2017 02:07:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si3077429pgp.204.2017.01.19.02.07.16; Thu, 19 Jan 2017 02:07:16 -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 S1751491AbdASKHO (ORCPT + 4 others); Thu, 19 Jan 2017 05:07:14 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36244 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbdASKHN (ORCPT ); Thu, 19 Jan 2017 05:07:13 -0500 Received: by mail-wm0-f47.google.com with SMTP id c85so281782154wmi.1 for ; Thu, 19 Jan 2017 02:07:12 -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=eErSEKOADiuofWffv+4+Gw+n9GwoBnhe3GCYPpVeSCw=; b=1NC0nKnHh5v7dvnam+ABY/W3tWJxQxDc9eMwzkD1If+msSMy3CFxu0RVvbPOhHbMPq ubZdOAT5LSGji5mKwcbvGodoAQ7ydagL5GJQ+zuiGmTg6L85JYMsWgpAYMEX73I7LAy2 OgpKZnK0LNc8FLr2TcifFmcaa0QknCoSRZZ2FQEjg+fFMQ56J3LC75qpZikqACF6P5OZ OY68zDR92hXUmTWKqDasC041DOXkKpxWvIX9u2ChHub0hh74fiOHDiUChNp+ilCkWp7K v4pt0+nHVC0iMroMeN+SFhynoa5PCzQsmeaDfj46LpGwsfBGhgaoGwCR7GJ6NEIHxK9f If1g== 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=eErSEKOADiuofWffv+4+Gw+n9GwoBnhe3GCYPpVeSCw=; b=NPnqY5NRXPZwyj9nrJ5U+UICcChc6slYMMN84lbd0mHV5BeldpgFvK84ODGg2JOrJ3 UCPBISQKNg06WEZ5aN1eDJ/nZ39o/7bHKjX9HiMwRnP83tXpfoHtr1DYAWrDFp3VgacT s89nr2fLaLxxbaPHkbMlFZPTKJ+kNBxOGGH5qoKZHXEAEv0qDwwCdLE2jyEQeisuhkye pC6wn67rB+8Cyq4Hfq1tJmjKNpOjdAf24OHkC/smWS9MjOhHLGEBLPFXd0bPGq3DgMFd 9kcGG8eFcwMdZuwp3GRUTWfScBcMYmNiCr/IXSNFbpnHUR/R2koKQF+VgH/l1y/e5hSS a8gQ== X-Gm-Message-State: AIkVDXKwWVqBAJsIqohFO0/ZfgoyoREXD1EjalJ4lUHN5967zDsA0SWngd4Q4S8Qz5hRc4jv X-Received: by 10.28.183.5 with SMTP id h5mr23578768wmf.39.1484820431467; Thu, 19 Jan 2017 02:07:11 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w197sm11703194wmd.11.2017.01.19.02.07.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 02:07:11 -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, grygorii.strashko@ti.com, linux-usb@vger.kernel.org, Alexandre Bailon Subject: [PATCH v3 0/3] usb: musb: cppi41: Add a way to manage DMA irq Date: Thu, 19 Jan 2017 11:06:56 +0100 Message-Id: <20170119100659.11370-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 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 (3): usb: musb: dma: Add a DMA completion platform callback usb: musb: cppi41: Detect aborted transfers in cppi41_dma_callback() usb: musb: dsps: Manage CPPI 4.1 DMA interrupt in dsps drivers/dma/cppi41.c | 28 ++++------------ drivers/usb/musb/musb_cppi41.c | 20 ++++++++---- drivers/usb/musb/musb_dma.h | 4 +++ drivers/usb/musb/musb_dsps.c | 72 ++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 95 insertions(+), 29 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