From: Valentine Barshak Date: Tue, 5 Feb 2008 18:36:49 +0000 (+1100) Subject: [POWERPC] 4xx: PCIe indirect DCR spinlock fix. X-Git-Tag: v2.6.25-rc1~303^2~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8318d98e95ddd3969c0701b5d15ec961ce786b2;p=pandora-kernel.git [POWERPC] 4xx: PCIe indirect DCR spinlock fix. Since we have mfdcri() and mtdcri() as macros, we can't use constructions, such as "mtdcri(base, reg, mfdcri(base, reg) | val)". In this case the mfdcri() stuff is not evaluated first. It's evaluated inside the mtdcri() macro and we have the dcr_ind_lock spinlock acquired twice. To avoid this error, I've added __mfdcri()/__mtdcri() inline functions that take the lock after register name fix-up. Signed-off-by: Valentine Barshak Acked-by: Benjamin Herrenschmidt Signed-off-by: Josh Boyer --- Reading git-diff-tree failed