[PATCH] crypto: omap-des: Fix "schedule while atomic" bug

2015-12-10 Thread Semen Protsenko
From: Sam Protsenko When using DES module the next bug appears: BUG: scheduling while atomic: kworker/0:1/63/0x0102 With backtrace as follows: << cut here >>> [] (dump_backtrace) from [] (show_stack+0x18/0x1c) [] (show_stack) fro

[RESEND PATCH 3/3] gpio: max732x: Propagate wake-up setting to parent irq controller

2015-04-30 Thread Semen Protsenko
Set .irq_set_wake callback to prevent possible issues on wake-up. This patch was inspired by this commit: b80eef95beb04760629822fa130aeed54cdfafca Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpio/gpio

[RESEND PATCH 1/3] gpio: max732x: Fix irq-events handler

2015-04-30 Thread Semen Protsenko
from (run_ksoftirqd) (run_ksoftirqd) from (smpboot_thread_fn) (smpboot_thread_fn) from (kthread) (kthread) from (ret_from_fork) Signed-off-by: Semen Protsenko Reviewed-by: Grygorii Strashko --- drivers/gpio/gpio-max732x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[RESEND PATCH 2/3] gpio: max732x: Add IRQF_SHARED to irq flags

2015-04-30 Thread Semen Protsenko
It's possible that multiple MAX732X can be hooked up to the same interrupt line with the processor. So add IRQF_SHARED in requesting irq. Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH v2] serial: omap: Fix error handling in probe

2015-04-30 Thread Semen Protsenko
(ret_fast_syscall) This patch adds pm_qos_remove_request() on fail path in serial_omap_probe() in order to fix this issue. While at it, free the wakeup settings on fail path as well, just like it's done in serial_omap_remove(). Signed-off-by: Semen Protsenko --- drivers/tty/serial/omap-se

[PATCH] serial: omap: Fix error handling in probe

2015-04-30 Thread Semen Protsenko
(ret_fast_syscall) This patch adds pm_qos_remove_request() on fail path in serial_omap_probe() in order to fix this issue. While at it, free the wakeup settings on fail path as well, just like it's done in serial_omap_remove(). Signed-off-by: Semen Protsenko --- drivers/tty/serial/omap-se

[PATCH v2] gpio: max732x: Fix irq-events handler

2015-04-22 Thread Semen Protsenko
from (run_ksoftirqd) (run_ksoftirqd) from (smpboot_thread_fn) (smpboot_thread_fn) from (kthread) (kthread) from (ret_from_fork) Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-max732x.c b/drivers

[PATCH 2/2] gpio: max732x: Fix irq-events handler

2015-04-21 Thread Semen Protsenko
from (kthread) (kthread) from (ret_from_fork) Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c index 1885e5c..edade14 100644 --- a/drivers/gpio/gpio-max732x.c

[PATCH 1/2] gpio: max732x: Propagate wake-up setting to parent irq controller

2015-04-21 Thread Semen Protsenko
Set .irq_set_wake callback to prevent possible issues on wake-up. This patch was inspired by this commit: b80eef95beb04760629822fa130aeed54cdfafca Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c |9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpio/gpio

[PATCH] gpio: max732x: Add IRQF_SHARED to irq flags

2015-04-21 Thread Semen Protsenko
It's possible that multiple MAX732X can be hooked up to the same interrupt line with the processor. So add IRQF_SHARED in requesting irq. Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH] genirq: check irq_ack callback in handle_edge_irq() before calling

2015-04-21 Thread Semen Protsenko
x27;t (i.e. it's NULL) we wouldn't have NULL pointer dereference. This check seems to be pretty common in kernel/irq/chip.c, but it was missed for handle_edge_irq() function. Signed-off-by: Semen Protsenko --- kernel/irq/chip.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-

[PATCH 3/3] ARM: OMAP2+: gpmc: Do not modify LIMITEDADDRESS on new architectures

2015-01-24 Thread Semen Protsenko
http://e2e.ti.com/support/omap/f/885/t/396939 Signed-off-by: Semen Protsenko --- drivers/memory/omap-gpmc.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index db77adb..477d0ba 100644

[PATCH 2/3] ARM: OMAP2+: gpmc: make gpmc_cs_get_name() static

2015-01-24 Thread Semen Protsenko
Fix sparse warning: warning: symbol 'gpmc_cs_get_name' was not declared. Should it be static? Signed-off-by: Semen Protsenko --- drivers/memory/omap-gpmc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gp

[PATCH 1/3] ARM: OMAP2+: gpmc: Fix writing in gpmc_cs_set_memconf

2015-01-24 Thread Semen Protsenko
obvious typo in code read register value is being rewritten by another value, which leads to loss of read RESERVED bits. This patch fixes this. While at it, replace magic numbers with named constants to improve code readability. Signed-off-by: Semen Protsenko --- drivers/memory/omap-gpmc.c | 20 +++

[PATCH 3/4] defconfigs: remove CONFIG_MTD_CHAR

2015-01-24 Thread Semen Protsenko
to remove all CONFIG_MTD_CHAR references as long as those defconfig files have CONFIG_MTD declared. Signed-off-by: Semen Protsenko --- arch/arm/configs/acs5k_defconfig |1 - arch/arm/configs/acs5k_tiny_defconfig |1 - arch/arm/configs/am200epdkit

[PATCH 4/4] defconfigs: remove CONFIG_MTD_DEBUG*

2015-01-24 Thread Semen Protsenko
ned-off-by: Semen Protsenko --- arch/arm/configs/badge4_defconfig |1 - arch/arm/configs/hackkit_defconfig |2 -- arch/arm/configs/lart_defconfig |2 -- arch/arm/configs/omap1_defconfig|2 -- arch/blackfin/configs/DNP5370_defconfig |2 -- arch/mn103

[PATCH 1/4] defconfigs: remove CONFIG_MTD_CONCAT

2015-01-24 Thread Semen Protsenko
ode is now compiled without checking for CONFIG_MTD_CONCAT. For details see next commit: a8adc3f01b9a "mtd: drop CONFIG_MTD_CONCAT ifdefs" Signed-off-by: Semen Protsenko --- arch/arm/configs/acs5k_defconfig |1 - arch/arm/configs/acs5k_tiny_defconfig |1

[PATCH 2/4] defconfigs: remove CONFIG_MTD_PARTITIONS

2015-01-24 Thread Semen Protsenko
NS code is now compiled without checking for CONFIG_MTD_PARTITIONS. For details see next commit: 5fcb033159bc "mtd: always build partitioning support". Signed-off-by: Semen Protsenko --- arch/arm/configs/acs5k_defconfig |1 - arch/arm/configs/acs5k_tiny_defconfig |1

[PATCH 0/4] defconfigs: cleanup obsolete MTD configs

2015-01-24 Thread Semen Protsenko
defconfigs and will not break anything. Semen Protsenko (4): defconfigs: remove CONFIG_MTD_CONCAT defconfigs: remove CONFIG_MTD_PARTITIONS defconfigs: remove CONFIG_MTD_CHAR defconfigs: remove CONFIG_MTD_DEBUG* arch/arm/configs/acs5k_defconfig |3 --- arch/arm

[PATCH 2/4] gpio: max732x: Rewrite IRQ code to use irq_domain API

2015-01-13 Thread Semen Protsenko
Signed-off-by: Semen Protsenko --- drivers/gpio/Kconfig|1 + drivers/gpio/gpio-max732x.c | 100 --- 2 files changed, 66 insertions(+), 35 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 633ec21..d81d441 100644

[PATCH 1/4] gpio: max732x: Add device tree support

2015-01-13 Thread Semen Protsenko
Signed-off-by: Semen Protsenko --- drivers/gpio/gpio-max732x.c | 62 +++ 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-max732x.c b/drivers/gpio/gpio-max732x.c index 6c67622..a642f78 100644 --- a/drivers/gpio/gpio

[PATCH 4/4] gpio: max732x: Add DT binding documentation

2015-01-13 Thread Semen Protsenko
Add a devicetree binding documentation for the max732x driver. Signed-off-by: Semen Protsenko --- .../devicetree/bindings/gpio/gpio-max732x.txt | 59 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-max732x.txt diff

[PATCH 0/4] gpio: max732x: Update MAX732X driver to use modern kernel API

2015-01-13 Thread Semen Protsenko
nding documentation showing how to describe MAX732X driver in device tree file. Semen Protsenko (4): gpio: max732x: Add device tree support gpio: max732x: Rewrite IRQ code to use irq_domain API gpio: max732x: Fix possible deadlock gpio: max732x: Add DT binding documentation .../devicetree/bindings

[PATCH 3/4] gpio: max732x: Fix possible deadlock

2015-01-13 Thread Semen Protsenko
;__lockdep_no_validate__){..}, at: [] __driver_attach+0x58/0x98 [0.474334] #2: (&chip->irq_lock){+.+...}, at: [] max732x_irq_bus_lock+0x14/0x20 [ 0.474365] #3: (&irq_desc_lock_class){-.}, at: [] __irq_get_desc_lock+0x48/0x88 [0.474365] #4: (&chip->lock){

[PATCH] acpi: respect const qualifier

2014-04-17 Thread Semen Protsenko
" parameter to it - ACPI_FREE() is macro for acpi_os_free() - acpi_os_free() takes "void *" parameter - acpi_os_free() calls kfree() - but kfree() requires "const void *" parameter So acpi_os_free() should require "const void *" parameter as well. Signed-off-by

[PATCH] mfd: vexpress-sysreg: initialize "site" variable

2014-02-13 Thread Semen Protsenko
"site" variable should be initialized with 0 so that when "site" property doesn't exist in DTB it can be handled correctly. "0" value means board site number is motherboard (see Documentation/devicetree/bindings/arm/vexpress.txt for details). Signed-off-by