mirror of https://gitee.com/openkylin/linux.git
Fix omap PM regression in Linux next and kill set_irq_flags usage
for GPMC. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJVzE/7AAoJEBvUPslcq6VzMOAQAKC6tFYngR2OwBKrHpcTt58s LD2XBo+fPcQjNUR0woPxQAD2wIoR8OHwAu37hhHuN83SnYm2rYjMQv5lwXZHwY2y 5XPFzKYeoVpM4lLbgu1Z4KIqEBwQgwofZRGZuJaekcmSloeAbNr5iqXWwk5dMHzE NIbpJA8Lz1/af93dB0YZm8AoSr4kyyGD4EFAeo6XbiEsbjIgwHyAod2rzXb7PqxZ EDqDkv74eqrCpCf6O1IISNYp9PAif80b04ZpyxREO4WiVNe62K4oWgY0oWPERm2C 8lJBwEa9174dg2q0oOxckeguqNrOGvz6TbK4zlXfeSqHijJrYfdTYbXGuN+LxbiT ZbN4uIETysIJJ282HpENJyrY/yon1q9D9u/pYTwZjxIx3HLeRjy5kdL5UwdfRIH7 qg9fZEx5emUtEJhpyu1YxuGYyI9i0ElfI1k57w6NYpElvbyENMwhZf+fBwAFhnQu MaUGk6NQq+h8Z4h4siH+ejTvp1B0gnW/AU/nTGOxWZVIPkget8V+ytU8o4lkGFwm MBWSI7FxI632NbkmsT6rnU3YSi+JpZtDBJkzTWEyFZo9pNVAjCp3EcGCDZPhqAGw dRrJIybx5RCBGMwgtY/V4Eidgk25DAiZxnQpAUyVd+FXgItr5g+lsuloddU42K1n yok4gw6EvB7dY/ltkmHX =ok+S -----END PGP SIGNATURE----- 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: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
443d7920a5
|
@ -580,7 +580,9 @@ void __init omap3xxx_powerdomains_init(void)
|
|||
if (!cpu_is_omap34xx() && !cpu_is_ti81xx())
|
||||
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();
|
||||
|
||||
|
@ -588,9 +590,11 @@ void __init omap3xxx_powerdomains_init(void)
|
|||
pwrdm_register_pwrdms(powerdomains_am35x);
|
||||
} else if (rev == TI8148_REV_ES1_0 || rev == TI8148_REV_ES2_0 ||
|
||||
rev == TI8148_REV_ES2_1) {
|
||||
pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations);
|
||||
pwrdm_register_pwrdms(powerdomains_ti814x);
|
||||
} else if (rev == TI8168_REV_ES1_0 || rev == TI8168_REV_ES1_1
|
||||
|| rev == TI8168_REV_ES2_0 || rev == TI8168_REV_ES2_1) {
|
||||
pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations);
|
||||
pwrdm_register_pwrdms(powerdomains_ti816x);
|
||||
} else {
|
||||
pwrdm_register_pwrdms(powerdomains_omap3430_common);
|
||||
|
|
|
@ -1176,8 +1176,8 @@ static int gpmc_setup_irq(void)
|
|||
gpmc_client_irq[i].irq = gpmc_irq_start + i;
|
||||
irq_set_chip_and_handler(gpmc_client_irq[i].irq,
|
||||
&gpmc_irq_chip, handle_simple_irq);
|
||||
set_irq_flags(gpmc_client_irq[i].irq,
|
||||
IRQF_VALID | IRQF_NOAUTOEN);
|
||||
irq_modify_status(gpmc_client_irq[i].irq, IRQ_NOREQUEST,
|
||||
IRQ_NOAUTOEN);
|
||||
}
|
||||
|
||||
/* Disable interrupts */
|
||||
|
@ -1200,7 +1200,6 @@ static int gpmc_free_irq(void)
|
|||
for (i = 0; i < GPMC_NR_IRQ; i++) {
|
||||
irq_set_handler(gpmc_client_irq[i].irq, NULL);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue