From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Tue, 3 Nov 2009 16:23:54 +0100 Subject: [U-Boot] [PATCH (repost)] Nomadik: fix reset_timer() In-Reply-To: <20091103132712.950203F6EC@gemini.denx.de> References: <20091103132712.950203F6EC@gemini.denx.de> <20091103121250.GA8577@mail.gnudd.com> Message-ID: <20091103152354.GA12451@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Um... why is READ_TIMER doing such a stupid thing as negating values? Because the counter counts down. I could have returns "0 - value" or "~value". Since I chose the latter initially, this fix keeps the same approach. I can't return the value I read, since it goes backwards. /alessandro