Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760892AbYFINJS (ORCPT ); Mon, 9 Jun 2008 09:09:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757712AbYFINJF (ORCPT ); Mon, 9 Jun 2008 09:09:05 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:60157 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757681AbYFINJD (ORCPT ); Mon, 9 Jun 2008 09:09:03 -0400 Date: Mon, 9 Jun 2008 14:08:31 +0100 From: Russell King - ARM Linux To: Pierre Ossman Cc: Nicolas Ferre , Linux Kernel list , Andrew Victor , Eric BENARD , ARM Linux Mailing List Subject: Re: [PATCH 4/7] mmc: at91_mci: add multiwrite switch Message-ID: <20080609130831.GC30971@flint.arm.linux.org.uk> References: <483FE9E7.7020707@atmel.com> <483FEE58.5000500@atmel.com> <20080601144251.GS5818@flint.arm.linux.org.uk> <20080609124249.349995df@mjolnir.drzeus.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080609124249.349995df@mjolnir.drzeus.cx> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1432 Lines: 29 On Mon, Jun 09, 2008 at 12:42:49PM +0200, Pierre Ossman wrote: > On Sun, 1 Jun 2008 15:42:52 +0100 > Russell King - ARM Linux wrote: > > > If Pierre wants to remove the MULTIWRITE flag, I'd like to hear his > > solution for the pxamci driver, where the only way to ascertain how > > many bytes were transmitted may be to walk the SG list comparing the > > DMA pointer with what was in the hardware DMA engine at the time. > > Maybe. > > You set bytes_xfered to 0. As mentioned in my previous mail, I had a > chat with Jens about this and upper layers can only expect to get the > lower bound in how many bytes were written. Other hardware/drivers > already behaves like this so there is no point in crippling the MMC > layer in an effort to give nicer guarantees. > > This is why I asked people to audit their drivers to make sure it's > the lower bound that's returned, but I've not received much in the way > of replies. You won't do from me concerning pxamci - I don't look after it anymore after one of my MMC cards got eaten by the misbehaving bugger. I don't think anyone else is looking after it, so that means the driver's effectively unmaintained. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/