[PATCH v2 2/2] spi: spi-ti-qspi: Add checking which flash chip has been mmap-ed

2018-03-30 Thread Arkadiusz Kwiatkowski
This patch allows placing more than one flash chip on the qspi bus by checking which spi device has been memory-mapped and remapping if necessary. Signed-off-by: Arkadiusz Kwiatkowski --- drivers/spi/spi-ti-qspi.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH v2 1/2] spi: spi-ti-qspi: Fix parameters order in regmap_update_bits calls

2018-03-30 Thread Arkadiusz Kwiatkowski
This commit fixes the order of parameters passed to regmap_update_bits function inside spi-ti-qspi driver. Accidentally the code worked correctly when cs=0, but it is not the case for other values. Signed-off-by: Arkadiusz Kwiatkowski --- drivers/spi/spi-ti-qspi.c | 6 +++--- 1 file changed, 3