From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Date: Wed, 19 Mar 2008 09:05:27 -0500 Subject: [U-Boot-Users] [PATCH] ColdFire: Fix FEC transmit issue for MCF5275 In-Reply-To: <1205879362-3949-1-git-send-email-Tsi-Chung.Liew@freescale.com> References: <1205879362-3949-1-git-send-email-Tsi-Chung.Liew@freescale.com> Message-ID: <47E11DA7.6000404@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Tsi-Chung Liew wrote: > + /* > + * FEC fix for MCF5275, FEC unable to initial transmit data packet. > + * A nop will ensure the descriptor polling active completed. > + */ > +#ifdef CONFIG_M5275 > + __asm__ ("nop"); > +#endif > + > #ifdef CFG_UNIFY_CACHE > icache_invalid(); > #endif At the risk of being very picky, I think this should be written to have the comment inside the #ifdef so that the code and comment are not accidentally separated. #if defined(CONFIG_M5275) /* * FEC ... */ __asm__("nop"); #endif But, that may be just me. Take it or leave it. :-) jdl