Commit 443d7920 authored by Olof Johansson's avatar Olof Johansson

Merge tag 'omap-for-v4.3/soc-pt2' of...

Merge tag 'omap-for-v4.3/soc-pt2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/soc

Fix omap PM regression in Linux next and kill set_irq_flags usage
for GPMC.

* tag 'omap-for-v4.3/soc-pt2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
  memory: kill off set_irq_flags usage
  ARM: OMAP2+: Fix power domain operations regression caused by 81xx
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents 207b504a ed293d1a
...@@ -580,7 +580,9 @@ void __init omap3xxx_powerdomains_init(void) ...@@ -580,7 +580,9 @@ void __init omap3xxx_powerdomains_init(void)
if (!cpu_is_omap34xx() && !cpu_is_ti81xx()) if (!cpu_is_omap34xx() && !cpu_is_ti81xx())
return; return;
pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations); /* Only 81xx needs custom pwrdm_operations */
if (!cpu_is_ti81xx())
pwrdm_register_platform_funcs(&omap3_pwrdm_operations);;
rev = omap_rev(); rev = omap_rev();
...@@ -588,9 +590,11 @@ void __init omap3xxx_powerdomains_init(void) ...@@ -588,9 +590,11 @@ void __init omap3xxx_powerdomains_init(void)
pwrdm_register_pwrdms(powerdomains_am35x); pwrdm_register_pwrdms(powerdomains_am35x);
} else if (rev == TI8148_REV_ES1_0 || rev == TI8148_REV_ES2_0 || } else if (rev == TI8148_REV_ES1_0 || rev == TI8148_REV_ES2_0 ||
rev == TI8148_REV_ES2_1) { rev == TI8148_REV_ES2_1) {
pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations);
pwrdm_register_pwrdms(powerdomains_ti814x); pwrdm_register_pwrdms(powerdomains_ti814x);
} else if (rev == TI8168_REV_ES1_0 || rev == TI8168_REV_ES1_1 } else if (rev == TI8168_REV_ES1_0 || rev == TI8168_REV_ES1_1
|| rev == TI8168_REV_ES2_0 || rev == TI8168_REV_ES2_1) { || rev == TI8168_REV_ES2_0 || rev == TI8168_REV_ES2_1) {
pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations);
pwrdm_register_pwrdms(powerdomains_ti816x); pwrdm_register_pwrdms(powerdomains_ti816x);
} else { } else {
pwrdm_register_pwrdms(powerdomains_omap3430_common); pwrdm_register_pwrdms(powerdomains_omap3430_common);
......
...@@ -1176,8 +1176,8 @@ static int gpmc_setup_irq(void) ...@@ -1176,8 +1176,8 @@ static int gpmc_setup_irq(void)
gpmc_client_irq[i].irq = gpmc_irq_start + i; gpmc_client_irq[i].irq = gpmc_irq_start + i;
irq_set_chip_and_handler(gpmc_client_irq[i].irq, irq_set_chip_and_handler(gpmc_client_irq[i].irq,
&gpmc_irq_chip, handle_simple_irq); &gpmc_irq_chip, handle_simple_irq);
set_irq_flags(gpmc_client_irq[i].irq, irq_modify_status(gpmc_client_irq[i].irq, IRQ_NOREQUEST,
IRQF_VALID | IRQF_NOAUTOEN); IRQ_NOAUTOEN);
} }
/* Disable interrupts */ /* Disable interrupts */
...@@ -1200,7 +1200,6 @@ static int gpmc_free_irq(void) ...@@ -1200,7 +1200,6 @@ static int gpmc_free_irq(void)
for (i = 0; i < GPMC_NR_IRQ; i++) { for (i = 0; i < GPMC_NR_IRQ; i++) {
irq_set_handler(gpmc_client_irq[i].irq, NULL); irq_set_handler(gpmc_client_irq[i].irq, NULL);
irq_set_chip(gpmc_client_irq[i].irq, &no_irq_chip); irq_set_chip(gpmc_client_irq[i].irq, &no_irq_chip);
irq_modify_status(gpmc_client_irq[i].irq, 0, 0);
} }
irq_free_descs(gpmc_irq_start, GPMC_NR_IRQ); irq_free_descs(gpmc_irq_start, GPMC_NR_IRQ);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment