From: David S. Miller Date: Fri, 31 Aug 2007 05:27:28 +0000 (-0700) Subject: [SPARC64]: Fix several bugs in MSI handling. X-Git-Tag: v2.6.23-rc5~36^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f92c329364c0bf2d3a356da5e8759fbe349f9d1;p=pandora-kernel.git [SPARC64]: Fix several bugs in MSI handling. 1) sun4{u,v}_build_msi() have improper return value handling. We should always return negative error codes, instead of using the magic value "0" which could in fact be a valid MSI number. 2) sun4{u,v}_build_msi() should return -ENOMEM instead of calling prom_prom() halt with kzalloc() of the interrupt data fails. 3) We 'remembered' the MSI number using a singleton in the struct device archdata area, this doesn't work for MSI-X which can cause multiple MSIs assosciated with one device. Delete that archdata member, and instead store the MSI number in the IRQ chip data area. Signed-off-by: David S. Miller --- Reading git-diff-tree failed