From: Wolfgang Denk Date: Thu, 09 Sep 2010 17:59:04 +0200 Subject: [U-Boot] [PATCH 1/3] mmc: limit block count for multi-block write commands In-Reply-To: References: <1283862729-17045-1-git-send-email-leiwen@marvell.com> <20100907135758.03A261506AA@gemini.denx.de> <4C865E75.5020409@emk-elektronik.de> <4C88F81E.80604@emk-elektronik.de> Message-ID: <20100909155904.1F0A61506AA@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Lei Wen, In message you wrote: > > You says that the sd spec is just example, and mention the mmc. > But you should not forget mmc&sd card are often designed together, so > designer would > choose the sd register layout to get the sd&mmc both works. > > If designer don't follow the spec, it is obvious allowable, but this > one just should be a special case. > I believe most others would like to follow the spec directly. As Reinhard pointed out, the document you quoted is the SD Host Controller Simplified Specification, but we are talking about MMC code here, which is a bit more generic. SD Host Controller limitations should be handled in the SD Host Controller driver code, not in the MMC generic code. > >> For the 524288 magic number, 512k, I just follow the Linux way, that > >> is don't let the driver to bother to handle the dma boundary if it use > >> sdma instead PIO. > > > > And again: I am sure most hardware does not have a funny 512k boundary for > > DMA operations either. And if, would that boundary not be at a divisible > > by 512k memory address (page size maybe) and not at a length of 512k? You did not reply to this argument. Are you really sure the limitation is on the transfer size? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Any sufficiently advanced technology is indistinguishable from a rigged demo. - Andy Finkel, computer guy