From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 10 Aug 2010 23:08:15 +0200 Subject: [U-Boot] [PATCH v2.1] PXA: New MMC driver In-Reply-To: <1281119471-30895-1-git-send-email-marek.vasut@gmail.com> References: <1281119471-30895-1-git-send-email-marek.vasut@gmail.com> Message-ID: <20100810210815.19F09207@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 Marek Vasut, In message <1281119471-30895-1-git-send-email-marek.vasut@gmail.com> you wrote: > The new driver is a complete rewrite. It uses the MMC framework and should > support both pxa2xx and pxa3xx. Did you even compile test this driver? > Tested on: > - Palm Tungsten|C PXA255 > - Aeronix ZipitZ2 PXA270 > - Marvell Zylonite 300 PXA300 Really? I would expect the compiler throws a bunch of error messages due to missing semicolons, like > + ret = pxa_mmc_wait(MMC_STAT_CLK_EN) > + if (ret) > + return ret; here. > + ret = pxa_mmc_wait(MMC_STAT_DATA_TRAN_DONE) > + if (ret) > + return ret; And here. > + ret = pxa_mmc_wait(MMC_STAT_DATA_TRAN_DONE) > + if (ret) > + return ret; And here. > + /* Wait until the data are really written to the card */ > + ret = pxa_mmc_wait(MMC_STAT_PRG_DONE) > + if (ret) > + return ret; And here. > + ret = pxa_mmc_wait(MMC_STAT_END_CMD_RES) > + if (ret) > + return ret; And here. Does this really compile for you? 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 The complexity of software is an essential property, not an acciden- tal one. Hence, descriptions of a software entity that abstract away its complexity often abstract away its essence. - Fred Brooks, Jr.