From: Aaro Koskinen Date: Thu, 25 Jul 2013 17:26:48 +0000 (+0300) Subject: MIPS: cavium-octeon: fix I/O space setup on non-PCI systems X-Git-Tag: v3.12-rc1~21^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8b74276f5488d64ebb28d77631b536f1c5de6d2;p=pandora-kernel.git MIPS: cavium-octeon: fix I/O space setup on non-PCI systems Fix I/O space setup, so that on non-PCI systems using inb()/outb() won't crash the system. Some drivers may try to probe I/O space and for that purpose we can just allocate some normal memory initially. Drivers trying to reserve a region will fail early as we set the size to 0. If a real I/O space is present, the PCI/PCIe support code will re-adjust the values accordingly. Tested with EdgeRouter Lite by enabling CONFIG_SERIO_I8042 that caused the originally reported crash. Reported-by: Faidon Liambotis Signed-off-by: Aaro Koskinen Acked-by: David Daney Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5626/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed