]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: davinci: psc: fix incorrect mask
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 14 Nov 2011 20:12:06 +0000 (01:42 +0530)
committerSekhar Nori <nsekhar@ti.com>
Mon, 5 Dec 2011 11:17:14 +0000 (16:47 +0530)
commit37c0f27b24cb43f3cdaa5ad8516e892738868e4b
treeac6fe47392799e2d7476c5dfd79801d2f89b96b5
parent61540ae4e6374ba2bac1f9c72ad02736ba394640
ARM: davinci: psc: fix incorrect mask

There are 5 LSB bits defined in PDSTAT and the code
currently uses a mask of 1 bit to check the status.

Use a proper mask per the hardware specification.
While at it, use a #define for the mask to improve
readability.

Reviewed-by: Sergei Shtylyov <sshtylyov@mvista.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/include/mach/psc.h
arch/arm/mach-davinci/psc.c