From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] ks8842: Support DMA when accessed via timberdale Date: Tue, 27 Jul 2010 20:48:38 -0700 (PDT) Message-ID: <20100727.204838.124048290.davem@davemloft.net> References: <1280271421.11916.2.camel@debian> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org To: richard.rojfors@pelagicore.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:34328 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579Ab0G1DsV convert rfc822-to-8bit (ORCPT ); Tue, 27 Jul 2010 23:48:21 -0400 In-Reply-To: <1280271421.11916.2.camel@debian> Sender: netdev-owner@vger.kernel.org List-ID: =46rom: Richard R=F6jfors Date: Wed, 28 Jul 2010 00:57:01 +0200 > This patch adds support for RX and TX DMA via the DMA API, > this is only supported when the KS8842 is accessed via timberdale. >=20 > There is no support for DMA on the generic bus interface it self, > a state machine inside the FPGA is handling RX and TX transfers to/fr= om > buffers in the FPGA. The host CPU can do DMA to and from these buffer= s. >=20 > The FPGA has to handle the RX interrupts, so these must be enabled in > the ks8842 but not in the FPGA. The driver must not disable the RX in= terrupt > that would mean that the data transfers into the FPGA buffers would s= top. >=20 > The host shall not enable TX interrupts since TX is handled by the FP= GA, > the host is notified by DMA callbacks when transfers are finished. >=20 > Which DMA channels to use are added as parameters in the platform dat= a struct. >=20 > Signed-off-by: Richard R=F6jfors Applied.