From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 2 Apr 2012 20:42:48 +0200 Subject: [U-Boot] [PATCH V2 2/4] ARM: 926ejs: use debug() for misaligned addresses In-Reply-To: References: <1333286581-27939-1-git-send-email-sbabic@denx.de> <1333383529-16064-1-git-send-email-sbabic@denx.de> Message-ID: <201204022042.48703.marex@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 Mike Frysinger, > On Mon, Apr 2, 2012 at 12:18, Stefano Babic wrote: > > Misaligned warnings are useful to debug faulty drivers. > > A misaligned warning is printed also when the driver > > is correct - use debug() instead of printf(). > > unfortunately, this turns the failure into a silent one. if i read > the code correctly, you still return an error in this code path which > means things don't actually get flushed/invalidated. You certainly do return an error, yes. And you don't do the op ... but then, what's the whole point of this check? You can just ignore the return value in the flush() op, but I still don't like how this is ignored. > to the original concept, i have no problem with cache funcs all > warning on misalignment via debug() so developers can quickly see if > things need to be reviewed. > -mike Best regards, Marek Vasut