From: Muli Ben-Yehuda Date: Wed, 17 Oct 2007 16:04:35 +0000 (+0200) Subject: x86: Calgary: fix disable busnum for CalIOC2 X-Git-Tag: v2.6.24-rc1~476^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d588ba8c09aa2516a06512d8ba065a05f9620ee0;p=pandora-kernel.git x86: Calgary: fix disable busnum for CalIOC2 The old check we used based on dev->bus->number is wrong for devices on CalIOC2. Instead look whether we have an IOMMU table for that bus - if not, translation is disabled. Thanks to Murillo Fernandes Bernardes for spotting, suggesting a fix and testing. Signed-off-by: Muli Ben-Yehuda Acked-by: Murillo Fernandes Bernardes Signed-off-by: Andrew Morton Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed