[PATCH 03/21] exynos5440-cpufreq: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/cpufreq/exynos5440-cpufreq.c |4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 02/21] ata: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. pata_mpc52xx's task_irq is special case since it is managed by betstcomm DMA driver. Do not use devres for it. Signed-off-

[PATCH 00/21] add and use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
Currently many device tree aware drivers use irq_of_parse_and_map() to get IRQ number and then devm_request_irq() to set up IRQ handler. This causes a problem for exit path and for error paths: undo action for irq_of_parse_and_map() is irq_dispose_mapping() that must not be called while IRQ handle

[PATCH 04/21] omap-sham: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/crypto/omap-sham.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 01/21] irq: add devres version of OF IRQ mapping routines

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko Many drivers use devres to manage their resources, and at the same time use irq_of_parse_and_map() / irq_dispose_mapping(). This creates problem on driver unload paths and on error paths: - it is invalid to call irq_dispose_mapping() while IRQ handler is still installed,

[PATCH 11/21] mfd: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/mfd/max8997.c |4 +++- drivers/mfd/max8998.c |4 +++- 2 files change

[PATCH 15/21] pinctrl: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/pinctrl/pinctrl-bcm2835.c|6 +- drivers/pinctrl/pinctrl-exynos.c

[PATCH 05/21] dma: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/dma/moxart-dma.c |4 ++-- drivers/dma/mpc512x_dma.c | 14

[PATCH 08/21] i2c: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/i2c/busses/i2c-mpc.c | 12 drivers/i2c/busses/i2c-mv64xxx

[PATCH 10/21] media: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/media/platform/exynos4-is/fimc-is.c | 14 ++ drivers/media/pla

[PATCH 07/21] gpio: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/gpio/gpio-adnp.c |4 ++-- drivers/gpio/gpio-mcp23s08.c |5 -

[PATCH 18/21] spi: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/spi/spi-bcm2835.c |2 +- drivers/spi/spi-mpc512x-psc.c |9 ++

[PATCH 17/21] rtc-mpc5121: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/rtc/rtc-mpc5121.c | 38 -- 1 file chan

[PATCH 19/21] exynos_tmu: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/thermal/samsung/exynos_tmu.c |2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 06/21] mpc85xx_edac: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids calls to irq_dispose_mapping() while IRQ handler is still installed. Signed-off-by: Nikita Yushchenko --- drivers/edac/mpc85xx_edac.c | 41 + 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/drivers/ed

[PATCH 13/21] net/can: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/net/can/grcan.c| 11 --- drivers/net/can/mscan

[PATCH 20/21] usb: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/usb/gadget/gr_udc.c | 17 +++-- drivers/usb/host/ehci-gr

[PATCH 21/21] at91sam9_wdt: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/watchdog/at91sam9_wdt.c | 12 +++- 1 file changed, 7 insertions(+)

[PATCH 14/21] net/ethernet: use devm_irq_of_parse_and_map() where appropriate

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/net/ethernet/allwinner/sun4i-emac.c|6 ++--- drivers/net/etherne

[PATCH 16/21] bq24190_charger: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/power/bq24190_charger.c |2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 09/21] apbps2: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/input/serio/apbps2.c |6 +- 1 file changed, 5 insertions(+), 1 delet

[PATCH 12/21] mpc5121_nfc: use devm_irq_of_parse_and_map()

2014-06-04 Thread nyushchenko
From: Nikita Yushchenko This avoids leak of IRQ mapping on error paths, and makes it possible to use devm_request_irq() without facing unmap-while-handler-installed issues. Signed-off-by: Nikita Yushchenko --- drivers/mtd/nand/mpc5121_nfc.c |6 +++--- 1 file changed, 3 insertions(+), 3 del

[RFC/PATCH] arm: do not skip SMP init calls on SMP_ON_UP case

2015-11-23 Thread nyushchenko
From: Nikita Yushchenko While running an imx6s boasrd, I got following message in boot log: [0.032414] CPU1: failed to boot: -38 This looked strange: imx6s is singe-core and kernel perfectly knows that. However, for some reason it tries to initialize CPU 1? I found this to be caused by - C