From patchwork Mon Apr 3 14:59:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Liu X-Patchwork-Id: 9659701 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 EAA0160353 for ; Mon, 3 Apr 2017 14:59:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDC7C283C9 for ; Mon, 3 Apr 2017 14:59:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1D5B283F1; Mon, 3 Apr 2017 14:59:26 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 9705B283C9 for ; Mon, 3 Apr 2017 14:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753881AbdDCO7X (ORCPT ); Mon, 3 Apr 2017 10:59:23 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:21287 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753876AbdDCO7U (ORCPT ); Mon, 3 Apr 2017 10:59:20 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v33ExHiZ022751; Mon, 3 Apr 2017 09:59:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1491231557; bh=O4EUH1mL2Ub/UP/FiLtec3dBR15a3yEZ/Ha3g+FGEak=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=j//N+Yg2LC9aY4ujBx3vSmlP4ofX1hbYqtG3BJO7Od/D/Pc71vw5T6XF4PP2JFtXZ kClvKdxR6LTDeJJ7LPp8lZ2e6SsNpTuLybuEl4pWoBhIAQk9oaxrQEoimWUtuUqpQ4 WFbsVsgH3vJsJr1k/UyKOMKM6KVFDRPdm3vtk9aA= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v33ExHcA024715; Mon, 3 Apr 2017 09:59:17 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Mon, 3 Apr 2017 09:59:16 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v33ExGwJ025403; Mon, 3 Apr 2017 09:59:16 -0500 Date: Mon, 3 Apr 2017 09:59:16 -0500 From: Bin Liu To: Alexandre Bailon CC: , , , , , , , Subject: Re: [PATCH v7 2/3] usb: musb: Add support of CPPI 4.1 DMA controller to DA8xx Message-ID: <20170403145916.GA12799@uda0271908> Mail-Followup-To: Bin Liu , Alexandre Bailon , 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, grygorii.strashko@ti.com References: <20170329162432.27299-1-abailon@baylibre.com> <20170329162432.27299-3-abailon@baylibre.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170329162432.27299-3-abailon@baylibre.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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 On Wed, Mar 29, 2017 at 06:24:31PM +0200, Alexandre Bailon wrote: > Currently, only the PIO mode is supported. > This add support of CPPI 4.1 to DA8xx. > As the In DA8xx the CPPI 4.1 DMA is a part of the USB. > Create the CPPI 4.1 device as a child of USB. > > Signed-off-by: Alexandre Bailon > --- > drivers/usb/musb/Kconfig | 4 ++-- > drivers/usb/musb/da8xx.c | 43 ++++++++++++++++++++++++++++++++++++++++++- > 2 files changed, 44 insertions(+), 3 deletions(-) > > diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig > index 72a2a50..5506a9c 100644 > --- a/drivers/usb/musb/Kconfig > +++ b/drivers/usb/musb/Kconfig > @@ -160,8 +160,8 @@ config USB_TI_CPPI_DMA > Enable DMA transfers when TI CPPI DMA is available. > > config USB_TI_CPPI41_DMA > - bool 'TI CPPI 4.1 (AM335x)' > - depends on ARCH_OMAP && DMADEVICES > + bool 'TI CPPI 4.1' > + depends on (ARCH_OMAP || ARCH_DAVINCI_DA8XX) && DMADEVICES > select TI_CPPI41 TI_CPPI41 also should depend on ARCH_DAVINCI_DA8XX due to this patch. You might need the following change for dma Kconfig as well. Regards, -Bin. --- 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 diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index d01d59812cf3..15e31bfae9f9 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -514,8 +514,8 @@ config TIMB_DMA Enable support for the Timberdale FPGA DMA engine. config TI_CPPI41 - tristate "AM33xx CPPI41 DMA support" - depends on ARCH_OMAP + tristate "CPPI41 DMA support" + depends on ARCH_OMAP || ARCH_DAVINCI_DA8XX select DMA_ENGINE help The Communications Port Programming Interface (CPPI) 4.1 DMA engine