From patchwork Thu Apr 2 10:43:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 457597 X-Patchwork-Delegate: scottwood@freescale.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1DF211400A0 for ; Thu, 2 Apr 2015 21:49:01 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 024941A08B3 for ; Thu, 2 Apr 2015 21:49:01 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lists.ozlabs.org (Postfix) with ESMTP id D5FFF1A03D6 for ; Thu, 2 Apr 2015 21:48:02 +1100 (AEDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 02 Apr 2015 03:48:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,510,1422950400"; d="scan'208";a="674272217" Received: from vkoul-udesk3.iind.intel.com ([10.223.84.65]) by orsmga001.jf.intel.com with ESMTP; 02 Apr 2015 03:47:58 -0700 Received: from vkoul-udesk3.iind.intel.com (localhost [127.0.0.1]) by vkoul-udesk3.iind.intel.com (8.14.4/8.14.4/Debian-2ubuntu2.1) with ESMTP id t32Ahav5008333; Thu, 2 Apr 2015 16:13:36 +0530 Received: (from vkoul@localhost) by vkoul-udesk3.iind.intel.com (8.14.4/8.14.4/Submit) id t32AhZLI008332; Thu, 2 Apr 2015 16:13:35 +0530 X-Authentication-Warning: vkoul-udesk3.iind.intel.com: vkoul set sender to vinod.koul@intel.com using -f Date: Thu, 2 Apr 2015 16:13:35 +0530 From: Vinod Koul To: xuelin.shi@freescale.com Subject: Re: [PATCH v6] dmaengine: Driver support for FSL RaidEngine device. Message-ID: <20150402104335.GD6631@intel.com> References: <1425363982-14925-1-git-send-email-xuelin.shi@freescale.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1425363982-14925-1-git-send-email-xuelin.shi@freescale.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: dmaengine@vger.kernel.org, Harninder Rai , dan.j.williams@intel.com, linuxppc-dev@lists.ozlabs.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Mar 03, 2015 at 02:26:22PM +0800, xuelin.shi@freescale.com wrote: > From: Xuelin Shi > > The RaidEngine is a new FSL hardware used for Raid5/6 acceration. > This patch enables the RaidEngine functionality and provides > hardware offloading capability for memcpy, xor and pq computation. > It works with async_tx. Applied, with below patch added on top struct device *dev, *chandev; diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c index 12778bd6446b..4d9470f16552 100644 --- a/drivers/dma/fsl_raid.c +++ b/drivers/dma/fsl_raid.c @@ -629,7 +629,7 @@ static void fsl_re_free_chan_resources(struct dma_chan *chan) dev_err(re_chan->dev, "chan resource cannot be cleaned!\n"); } -int fsl_re_chan_probe(struct platform_device *ofdev, +static int fsl_re_chan_probe(struct platform_device *ofdev, struct device_node *np, u8 q, u32 off) {