[PATCH] spi: sun4i: disable clocks in the remove function

2017-12-06 Thread Takuo Koguchi
mclk and hclk need to be disabled explicitly since pm_runtime_disable does not disable the clocks. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- drivers/spi/spi-sun4i.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi/spi

[PATCH] spi: sun4i: disable clocks in the remove function

2017-12-06 Thread Takuo Koguchi
mclk and hclk need to be disabled since pm_runtime_disable does not disable the clocks. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- V2: use pm_runtime_force_suspend to avoid unbalance disable call. Compile test only, no runtime test

[PATCH V3] spi: sun4i: disable clocks in the remove function

2017-12-06 Thread Takuo Koguchi
mclk and hclk need to be disabled. Since pm_runtime_disable does not disable the clocks, use pm_runtime_force_suspend instead. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- V3: remove redundant pm_runtime_disable call. Compile test only

[PATCH] spi: jcore: disable clock when registering spi conroller failed When probe function fails in registering the spi controller, the clock should remain disabled.

2017-12-07 Thread Takuo Koguchi
Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-jcore.c b/drivers/spi/spi-jcore.c index

[PATCH] spi: jcore: disable clock when registering spi conroller

2017-12-07 Thread Takuo Koguchi
failed When probe function fails in registering the spi controller, the clock should remain disabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed

[PATCH] spi: jcore: disable clock when registering spi conroller failed

2017-12-07 Thread Takuo Koguchi
When probe function fails in registering the spi controller, the clock should remain disabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi --- Compiled test only, no runtime test done. drivers/spi/spi-jcore.c | 4 +++- 1 file changed, 3