summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2014-02-10 18:42:57 +0000
committerRalf Baechle <ralf@linux-mips.org>2014-03-15 00:46:23 +0100
commit7f02c463057fc527f52066742b84d9d89b22e83d (patch)
treefb873a735179792c8f99fc7bf0e62dfbc3b3ae1f /arch/mips
parentb616365e6dafb5d7c1cf2a8b6e8cb376a3f4a387 (diff)
downloadkernel-common-7f02c463057fc527f52066742b84d9d89b22e83d.tar.gz
kernel-common-7f02c463057fc527f52066742b84d9d89b22e83d.tar.bz2
kernel-common-7f02c463057fc527f52066742b84d9d89b22e83d.zip
MIPS: Octeon: Fix fall through on bar type OCTEON_DMA_BAR_TYPE_SMALL
Bar type OCTEON_DMA_BAR_TYPE_SMALL assigns lo and hi addresses and then falls through to OCTEON_DMA_BAR_TYPE_BIG that re-assignes lo and hi addresses with totally different values. Add a break so we don't fall through. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: David Daney <ddaney@caviumnetworks.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/6529/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/pci/msi-octeon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/pci/msi-octeon.c b/arch/mips/pci/msi-octeon.c
index d37be36dc659..2b91b0e61566 100644
--- a/arch/mips/pci/msi-octeon.c
+++ b/arch/mips/pci/msi-octeon.c
@@ -150,6 +150,7 @@ msi_irq_allocated:
msg.address_lo =
((128ul << 20) + CVMX_PCI_MSI_RCV) & 0xffffffff;
msg.address_hi = ((128ul << 20) + CVMX_PCI_MSI_RCV) >> 32;
+ break;
case OCTEON_DMA_BAR_TYPE_BIG:
/* When using big bar, Bar 0 is based at 0 */
msg.address_lo = (0 + CVMX_PCI_MSI_RCV) & 0xffffffff;