From: Greg Kroah-Hartman Date: Thu, 4 Nov 2021 09:23:11 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v4.19.216~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53728172d27a0b0b4d12486e6dd2ddaf4c6459af;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: arm-9120-1-revert-amba-make-use-of-1-irqs-warn.patch --- diff --git a/queue-4.9/arm-9120-1-revert-amba-make-use-of-1-irqs-warn.patch b/queue-4.9/arm-9120-1-revert-amba-make-use-of-1-irqs-warn.patch new file mode 100644 index 00000000000..190fdc1ca5b --- /dev/null +++ b/queue-4.9/arm-9120-1-revert-amba-make-use-of-1-irqs-warn.patch @@ -0,0 +1,42 @@ +From eb4f756915875b0ea0757751cd29841f0504d547 Mon Sep 17 00:00:00 2001 +From: Wang Kefeng +Date: Mon, 23 Aug 2021 10:41:42 +0100 +Subject: ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" + +From: Wang Kefeng + +commit eb4f756915875b0ea0757751cd29841f0504d547 upstream. + +After commit 77a7300abad7 ("of/irq: Get rid of NO_IRQ usage"), +no irq case has been removed, irq_of_parse_and_map() will return +0 in all cases when get error from parse and map an interrupt into +linux virq space. + +amba_device_register() is only used on no-DT initialization, see + s3c64xx_pl080_init() arch/arm/mach-s3c/pl080.c + ep93xx_init_devices() arch/arm/mach-ep93xx/core.c + +They won't set -1 to irq[0], so no need the warn. + +This reverts commit 2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3. + +Reviewed-by: Rob Herring +Signed-off-by: Kefeng Wang +Signed-off-by: Russell King (Oracle) +Signed-off-by: Greg Kroah-Hartman +--- + drivers/amba/bus.c | 3 --- + 1 file changed, 3 deletions(-) + +--- a/drivers/amba/bus.c ++++ b/drivers/amba/bus.c +@@ -356,9 +356,6 @@ static int amba_device_try_add(struct am + void __iomem *tmp; + int i, ret; + +- WARN_ON(dev->irq[0] == (unsigned int)-1); +- WARN_ON(dev->irq[1] == (unsigned int)-1); +- + ret = request_resource(parent, &dev->res); + if (ret) + goto err_out; diff --git a/queue-4.9/series b/queue-4.9/series index b53c1f81279..4a82292953d 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -1,3 +1,4 @@ scsi-core-put-lld-module-refcnt-after-scsi-device-is-released.patch mm-zsmalloc-prepare-to-variable-max_physmem_bits.patch arch-pgtable-define-max_possible_physmem_bits-where-needed.patch +arm-9120-1-revert-amba-make-use-of-1-irqs-warn.patch