]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Merge tag 'v4.19-rc6' into devel
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Oct 2018 11:20:45 +0000 (13:20 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Oct 2018 11:20:45 +0000 (13:20 +0200)
This is the 4.19-rc6 release

I needed to merge this in because of extensive conflicts in
the MSM and Intel pin control drivers. I know how to resolve
them, so let's do it like this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1  2 
drivers/pinctrl/cirrus/pinctrl-madera-core.c
drivers/pinctrl/intel/pinctrl-cannonlake.c
drivers/pinctrl/intel/pinctrl-intel.c
drivers/pinctrl/pinctrl-amd.c
drivers/pinctrl/pinctrl-ingenic.c
drivers/pinctrl/qcom/pinctrl-msm.c

Simple merge
Simple merge
Simple merge
index 6f02bbdb086544327d6ae66d02c7f0f3a0c07ef5,5d72ffad32c299eb2db1e24c5827a11a54a4084e..0726c8a09065b8b6a763447cf23fe667e9145f23
@@@ -668,9 -633,32 +668,32 @@@ static void msm_gpio_irq_mask(struct ir
  
        raw_spin_lock_irqsave(&pctrl->lock, flags);
  
 -      val = readl(pctrl->regs + g->intr_cfg_reg);
 +      val = msm_readl_intr_cfg(pctrl, g);
+       /*
+        * There are two bits that control interrupt forwarding to the CPU. The
+        * RAW_STATUS_EN bit causes the level or edge sensed on the line to be
+        * latched into the interrupt status register when the hardware detects
+        * an irq that it's configured for (either edge for edge type or level
+        * for level type irq). The 'non-raw' status enable bit causes the
+        * hardware to assert the summary interrupt to the CPU if the latched
+        * status bit is set. There's a bug though, the edge detection logic
+        * seems to have a problem where toggling the RAW_STATUS_EN bit may
+        * cause the status bit to latch spuriously when there isn't any edge
+        * so we can't touch that bit for edge type irqs and we have to keep
+        * the bit set anyway so that edges are latched while the line is masked.
+        *
+        * To make matters more complicated, leaving the RAW_STATUS_EN bit
+        * enabled all the time causes level interrupts to re-latch into the
+        * status register because the level is still present on the line after
+        * we ack it. We clear the raw status enable bit during mask here and
+        * set the bit on unmask so the interrupt can't latch into the hardware
+        * while it's masked.
+        */
+       if (irqd_get_trigger_type(d) & IRQ_TYPE_LEVEL_MASK)
+               val &= ~BIT(g->intr_raw_status_bit);
        val &= ~BIT(g->intr_enable_bit);
 -      writel(val, pctrl->regs + g->intr_cfg_reg);
 +      msm_writel_intr_cfg(val, pctrl, g);
  
        clear_bit(d->hwirq, pctrl->enabled_irqs);
  
@@@ -689,9 -677,10 +712,10 @@@ static void msm_gpio_irq_unmask(struct 
  
        raw_spin_lock_irqsave(&pctrl->lock, flags);
  
 -      val = readl(pctrl->regs + g->intr_cfg_reg);
 +      val = msm_readl_intr_cfg(pctrl, g);
+       val |= BIT(g->intr_raw_status_bit);
        val |= BIT(g->intr_enable_bit);
 -      writel(val, pctrl->regs + g->intr_cfg_reg);
 +      msm_writel_intr_cfg(val, pctrl, g);
  
        set_bit(d->hwirq, pctrl->enabled_irqs);