Skip to content

Commit

Permalink
Merge tag 'fixes-3.10-3' of git://git.infradead.org/users/jcooper/lin…
Browse files Browse the repository at this point in the history
…ux into fixes

From Jason Cooper, mvebu fixes for v3.10 round 3:
 - mvebu
    - fix bug in coherency fabric low level init
 - kirkwood
    - fix crash from pcie double init

Signed-off-by: Olof Johansson <olof@lixom.net>

* tag 'fixes-3.10-3' of git://git.infradead.org/users/jcooper/linux:
  ARM: mvebu: Fix bug in coherency fabric low level init function
  ARM: Kirkwood: TS219: Fix crash by double PCIe instantiation
  • Loading branch information
Olof Johansson committed Jun 2, 2013
2 parents d683b96 + b60b61d commit 04b5e56
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
10 changes: 0 additions & 10 deletions arch/arm/mach-kirkwood/board-ts219.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,3 @@ void __init qnap_dt_ts219_init(void)

pm_power_off = qnap_tsx1x_power_off;
}

/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */
static int __init ts219_pci_init(void)
{
if (machine_is_ts219())
kirkwood_pcie_init(KW_PCIE0);

return 0;
}
subsys_initcall(ts219_pci_init);
16 changes: 11 additions & 5 deletions arch/arm/mach-mvebu/coherency_ll.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,21 @@ ENTRY(ll_set_cpu_coherent)

/* Add CPU to SMP group - Atomic */
add r3, r0, #ARMADA_XP_CFB_CTL_REG_OFFSET
ldr r2, [r3]
1:
ldrex r2, [r3]
orr r2, r2, r1
str r2, [r3]
strex r0, r2, [r3]
cmp r0, #0
bne 1b

/* Enable coherency on CPU - Atomic */
add r3, r0, #ARMADA_XP_CFB_CFG_REG_OFFSET
ldr r2, [r3]
add r3, r3, #ARMADA_XP_CFB_CFG_REG_OFFSET
1:
ldrex r2, [r3]
orr r2, r2, r1
str r2, [r3]
strex r0, r2, [r3]
cmp r0, #0
bne 1b

dsb

Expand Down

0 comments on commit 04b5e56

Please sign in to comment.