[PATCH] spi: ti-qspi: revise ti_qspi_probe() failure flow

2017-02-16 Thread Prahlad V
call spi_master_put() in case of failures after spi_alloc_master(). call pm_runtime_disable() in case of failures after pm_runtime_enable(). Signed-off-by: Prahlad V --- drivers/spi/spi-ti-qspi.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/spi

[PATCH] spi: spi-ti-qspi: reinit of completion variable

2016-11-15 Thread Prahlad V
completion variable should be reinitialized before reusing. Signed-off-by: Prahlad V --- drivers/spi/spi-ti-qspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index caeac66..ec6fb09 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b

[PATCH] spi: spi-ti-qspi: clear wlen field while setting word length.

2016-07-09 Thread Prahlad V
When a word length of 1 byte is selected and writing data of length more than QSPI_WLEN_MAX_BYTES, first MAX_BYTES will be transfered and remaining will be transfered byte by byte. In that case wlen field should be cleared before setting. Signed-off-by: Prahlad V --- drivers/spi/spi-ti-qspi.c