pinctrl: intel: irq_pipeline: enable pipelined interrupt control for pintctrl-intel
Subsystems (2)
PATCH 1/2 pinctrl: intel: irq_pipeline: enable pipelined interrupt control for pintctrl-intel
This is required to run the locking code from the pipeline entry context and the out-of-band stage.
drivers/pinctrl/intel/pinctrl-intel.c +2 -1
@@ -1322,7 +1322,8 @@ static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq) pctrl->irqchip.irq_unmask = intel_gpio_irq_unmask; pctrl->irqchip.irq_set_type = intel_gpio_irq_type; pctrl->irqchip.irq_set_wake = intel_gpio_irq_wake; - pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND ; + pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND | +IRQCHIP_PIPELINE_SAFE ;/* * On some platforms several GPIO controllers share the same interrupt
drivers/pinctrl/intel/pinctrl-intel.h +1 -1
@@ -228,7 +228,7 @@ struct intel_pinctrl_context {*/ struct intel_pinctrl {struct device *dev; -raw_spinlock_t lock; +hard_spinlock_t lock;struct pinctrl_desc pctldesc;struct pinctrl_dev *pctldev;struct gpio_chip chip;
Signature · 1 line
2.17.1
PATCH 2/2 pinctrl: intel: irq_pipeline: enable pipelined interrupt control for pinctrl-baytrail
This is required to run the locking code from the pipeline entry context and the out-of-band stage.
drivers/pinctrl/intel/pinctrl-baytrail.c +3 -2
@@ -538,7 +538,7 @@ static const struct intel_pinctrl_soc_data *byt_soc_data[] = { NULL }; -static DEFINE_RAW_SPINLOCK (byt_lock); +static DEFINE_HARD_SPINLOCK (byt_lock);static struct intel_community *byt_get_community (struct intel_pinctrl *vg,unsigned int pin)
@@ -1580,7 +1580,8 @@ static int byt_gpio_probe(struct intel_pinctrl *vg) vg->irqchip.irq_mask = byt_irq_mask, vg->irqchip.irq_unmask = byt_irq_unmask, vg->irqchip.irq_set_type = byt_irq_type, - vg->irqchip.flags =IRQCHIP_SKIP_SET_WAKE , + vg->irqchip.flags =IRQCHIP_SKIP_SET_WAKE | +IRQCHIP_PIPELINE_SAFE , girq = &gc->irq; girq->chip = &vg->irqchip;
Signature · 1 line
2.17.1
Quoted 25 lines · Hongzhan Chen
This is required to run the locking code from the pipeline entry context and the out-of-band stage.
Signed-off-by Hongzhan Chen <[email protected]>drivers/pinctrl/intel/pinctrl-intel.c +2
-1@@ -1322,7 +1322,8 @@ static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq) pctrl->irqchip.irq_unmask = intel_gpio_irq_unmask; pctrl->irqchip.irq_set_type = intel_gpio_irq_type; pctrl->irqchip.irq_set_wake = intel_gpio_irq_wake; - pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND ; + pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND | +IRQCHIP_PIPELINE_SAFE ;/* * On some platforms several GPIO controllers share the same interrupt drivers/pinctrl/intel/pinctrl-intel.h +0
-0
drivers/pinctrl/intel/pinctrl-intel.h struct intel_pinctrl_context {
Quoted 9 lines
drivers/pinctrl/intel/pinctrl-intel.h +1
-2@@ -228,7 +228,7 @@ struct intel_pinctrl_context {*/ struct intel_pinctrl {struct device *dev; -raw_spinlock_t lock; +hard_spinlock_t lock;struct pinctrl_desc pctldesc;struct pinctrl_dev *pctldev;struct gpio_chip chip; --
What is the status of these two patches?
AFAIK, they never made it upstream.
Signature · 2 lines
Thanks, //richard
Quoted 30 lines · Richard Weinberger
Quoted 29 lines · Hongzhan Chen
This is required to run the locking code from the pipeline entry context and the out-of-band stage.
Signed-off-by Hongzhan Chen <[email protected]>drivers/pinctrl/intel/pinctrl-intel.c +2
-1@@ -1322,7 +1322,8 @@ static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq) pctrl->irqchip.irq_unmask = intel_gpio_irq_unmask; pctrl->irqchip.irq_set_type = intel_gpio_irq_type; pctrl->irqchip.irq_set_wake = intel_gpio_irq_wake; - pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND ; + pctrl->irqchip.flags =IRQCHIP_MASK_ON_SUSPEND | +IRQCHIP_PIPELINE_SAFE ;/* * On some platforms several GPIO controllers share the same interrupt drivers/pinctrl/intel/pinctrl-intel.h +0
-1@@ -228,7 +228,7 @@ struct intel_pinctrl_context {*/ struct intel_pinctrl {struct device *dev; -raw_spinlock_t lock;
Quoted 8 lines
drivers/pinctrl/intel/pinctrl-intel.h struct intel_pinctrl_context {
Quoted 5 lines
drivers/pinctrl/intel/pinctrl-intel.h +1
-1+hard_spinlock_t lock;struct pinctrl_desc pctldesc;struct pinctrl_dev *pctldev;struct gpio_chip chip; --What is the status of these two patches?
AFAIK, they never made it upstream.
These fell through the cracks in the -rebase branches, at least, likely because the target kernel was unspecified. They look ok to me (baytail may need actual testing, but looks good at first glance).
These patches do not apply to any of the current Dovetail stable releases (v6.1, v6.6). It looks like those patches may apply cleanly to to v5.10 and v5.15 though. IOW, a forward port is needed for v6.x and on.
Signature · 1 line
Philippe.