From: Tony Prisk Date: Wed, 2 Jan 2013 19:44:15 +0000 (+1300) Subject: pwm: vt8500: Register write busy test performed incorrectly X-Git-Tag: v3.9-rc1~77^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab432caa46413c9f3ca81d82ea9fa5bae07c3c1;p=pandora-kernel.git pwm: vt8500: Register write busy test performed incorrectly Correct operation for register writes is to perform a busy-wait after writing the register. Currently the busy wait it performed before, meaning subsequent register writes to bitfields may occur before the previous field has been updated. Also, all registers are defined as 32-bit read/write. Change pwm_busy_wait() to use readl rather than readb. Improve readability of code with defines for registers and bitfields. Signed-off-by: Tony Prisk Signed-off-by: Thierry Reding --- Reading git-diff-tree failed