mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: net/dsa/slave.c net/dsa/slave.c simply had overlapping changes. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
f6d3125fa3
240 changed files with 2429 additions and 1379 deletions
|
|
@ -88,28 +88,36 @@ static void aic5_mask(struct irq_data *d)
|
|||
{
|
||||
struct irq_domain *domain = d->domain;
|
||||
struct irq_domain_chip_generic *dgc = domain->gc;
|
||||
struct irq_chip_generic *gc = dgc->gc[0];
|
||||
struct irq_chip_generic *bgc = dgc->gc[0];
|
||||
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
|
||||
|
||||
/* Disable interrupt on AIC5 */
|
||||
irq_gc_lock(gc);
|
||||
/*
|
||||
* Disable interrupt on AIC5. We always take the lock of the
|
||||
* first irq chip as all chips share the same registers.
|
||||
*/
|
||||
irq_gc_lock(bgc);
|
||||
irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR);
|
||||
irq_reg_writel(gc, 1, AT91_AIC5_IDCR);
|
||||
gc->mask_cache &= ~d->mask;
|
||||
irq_gc_unlock(gc);
|
||||
irq_gc_unlock(bgc);
|
||||
}
|
||||
|
||||
static void aic5_unmask(struct irq_data *d)
|
||||
{
|
||||
struct irq_domain *domain = d->domain;
|
||||
struct irq_domain_chip_generic *dgc = domain->gc;
|
||||
struct irq_chip_generic *gc = dgc->gc[0];
|
||||
struct irq_chip_generic *bgc = dgc->gc[0];
|
||||
struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d);
|
||||
|
||||
/* Enable interrupt on AIC5 */
|
||||
irq_gc_lock(gc);
|
||||
/*
|
||||
* Enable interrupt on AIC5. We always take the lock of the
|
||||
* first irq chip as all chips share the same registers.
|
||||
*/
|
||||
irq_gc_lock(bgc);
|
||||
irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR);
|
||||
irq_reg_writel(gc, 1, AT91_AIC5_IECR);
|
||||
gc->mask_cache |= d->mask;
|
||||
irq_gc_unlock(gc);
|
||||
irq_gc_unlock(bgc);
|
||||
}
|
||||
|
||||
static int aic5_retrigger(struct irq_data *d)
|
||||
|
|
|
|||
|
|
@ -320,6 +320,14 @@ static void gic_handle_shared_int(bool chained)
|
|||
intrmask[i] = gic_read(intrmask_reg);
|
||||
pending_reg += gic_reg_step;
|
||||
intrmask_reg += gic_reg_step;
|
||||
|
||||
if (!config_enabled(CONFIG_64BIT) || mips_cm_is64)
|
||||
continue;
|
||||
|
||||
pending[i] |= (u64)gic_read(pending_reg) << 32;
|
||||
intrmask[i] |= (u64)gic_read(intrmask_reg) << 32;
|
||||
pending_reg += gic_reg_step;
|
||||
intrmask_reg += gic_reg_step;
|
||||
}
|
||||
|
||||
bitmap_and(pending, pending, intrmask, gic_shared_intrs);
|
||||
|
|
@ -426,7 +434,7 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
|
|||
spin_lock_irqsave(&gic_lock, flags);
|
||||
|
||||
/* Re-route this IRQ */
|
||||
gic_map_to_vpe(irq, cpumask_first(&tmp));
|
||||
gic_map_to_vpe(irq, mips_cm_vp_id(cpumask_first(&tmp)));
|
||||
|
||||
/* Update the pcpu_masks */
|
||||
for (i = 0; i < NR_CPUS; i++)
|
||||
|
|
@ -599,7 +607,7 @@ static __init void gic_ipi_init_one(unsigned int intr, int cpu,
|
|||
GIC_SHARED_TO_HWIRQ(intr));
|
||||
int i;
|
||||
|
||||
gic_map_to_vpe(intr, cpu);
|
||||
gic_map_to_vpe(intr, mips_cm_vp_id(cpu));
|
||||
for (i = 0; i < NR_CPUS; i++)
|
||||
clear_bit(intr, pcpu_masks[i].pcpu_mask);
|
||||
set_bit(intr, pcpu_masks[cpu].pcpu_mask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue