[PATCH] i2c: cadence: Implement timeout

2018-10-24 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta In some cases we are waiting in a loop. Replace the infinite wait with the timeout. Signed-off-by: Shubhrajyoti Datta --- drivers/i2c/busses/i2c-cadence.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git

[PATCH] i2c: cadence: Implement timeout

2018-10-24 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta In some cases we are waiting in a loop. Replace the infinite wait with the timeout. Signed-off-by: Shubhrajyoti Datta --- drivers/i2c/busses/i2c-cadence.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git

[LINUX PATCHv3 7/9] serial-uartlite: Use allocated structure instead of static ones

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Remove the use of the static uartlite structure. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c

[LINUX PATCHv3 7/9] serial-uartlite: Use allocated structure instead of static ones

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Remove the use of the static uartlite structure. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c

[LINUX PATCHv3 9/9] serial-uartlite: Remove SERIAL_UARTLITE_NR_UARTS

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Remove SERIAL_UARTLITE_NR_UARTS from Kconfig as it is unused. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/tty/serial/Kconfig

[LINUX PATCHv3 9/9] serial-uartlite: Remove SERIAL_UARTLITE_NR_UARTS

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Remove SERIAL_UARTLITE_NR_UARTS from Kconfig as it is unused. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/tty/serial/Kconfig

[LINUX PATCHv3 8/9] serial-uartlite: Remove ULITE_NR_PORTS macro

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta This patch is removing ULITE_NR_PORTS macro which limits number of ports which can be used. Every instance is registering own struct uart_driver with minor number which corresponds to alias ID (or 0 now). and with 1 uart port. The same alias ID is saved to

[LINUX PATCHv3 8/9] serial-uartlite: Remove ULITE_NR_PORTS macro

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta This patch is removing ULITE_NR_PORTS macro which limits number of ports which can be used. Every instance is registering own struct uart_driver with minor number which corresponds to alias ID (or 0 now). and with 1 uart port. The same alias ID is saved to

[LINUX PATCHv3 6/9] serial-uartlite: Change logic how console_port is setup

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Change logic how console_port is setup by using CON_ENABLED flag instead of index. There will be unique uart_console structure that's why code can't use id for console_port assignment. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek ---

[LINUX PATCHv3 1/9] serial-uartlite: Move the uart register

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Move the uart register. This fixes the error path where the clock disable is missed out. Signed-off-by: Shubhrajyoti Datta --- drivers/tty/serial/uartlite.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[LINUX PATCHv3 3/9] serial-uartlite: Do not use static struct uart_driver out of probe()

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta ulite_uart_suspend()/resume() and remove() are using static reference to struct uart_driver. Assign this referece to private data structure as preparation step for dynamic struct uart_driver allocation. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek ---

[LINUX PATCHv3 6/9] serial-uartlite: Change logic how console_port is setup

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Change logic how console_port is setup by using CON_ENABLED flag instead of index. There will be unique uart_console structure that's why code can't use id for console_port assignment. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek ---

[LINUX PATCHv3 1/9] serial-uartlite: Move the uart register

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Move the uart register. This fixes the error path where the clock disable is missed out. Signed-off-by: Shubhrajyoti Datta --- drivers/tty/serial/uartlite.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[LINUX PATCHv3 3/9] serial-uartlite: Do not use static struct uart_driver out of probe()

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta ulite_uart_suspend()/resume() and remove() are using static reference to struct uart_driver. Assign this referece to private data structure as preparation step for dynamic struct uart_driver allocation. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek ---

[LINUX PATCHv3 4/9] serial-uartlite: Add runtime support

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Add runtime support Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 52 +++ 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/uartlite.c

[LINUX PATCHv3 4/9] serial-uartlite: Add runtime support

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Add runtime support Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 52 +++ 1 file changed, 43 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/uartlite.c

[LINUX PATCHv3 5/9] serial-uartlite: Fix the unbind path

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Currently the clocks are not enabled at probe but when the port is used. Remove the unconditional disable at remove. Fixes the below [ 77.660196] [ cut here ] [ 77.664749] WARNING: CPU: 0 PID: 1992 at drivers/clk/clk.c:622

[LINUX PATCHv3 0/9] serial-uartlite: Add support for dynamic allocation

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Currently the number of uarts are configured through a Kconfig option Make it dynamic. While at it adapt to the runtime framework. It is based a similar series on the uartps from Michal Shubhrajyoti Datta (9): serial-uartlite: Move the uart register

[LINUX PATCHv3 5/9] serial-uartlite: Fix the unbind path

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Currently the clocks are not enabled at probe but when the port is used. Remove the unconditional disable at remove. Fixes the below [ 77.660196] [ cut here ] [ 77.664749] WARNING: CPU: 0 PID: 1992 at drivers/clk/clk.c:622

[LINUX PATCHv3 0/9] serial-uartlite: Add support for dynamic allocation

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Currently the number of uarts are configured through a Kconfig option Make it dynamic. While at it adapt to the runtime framework. It is based a similar series on the uartps from Michal Shubhrajyoti Datta (9): serial-uartlite: Move the uart register

[LINUX PATCHv3 2/9] serial-uartlite: Add get serial id if not provided

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Add get serial id if not provided Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index

[LINUX PATCHv3 2/9] serial-uartlite: Add get serial id if not provided

2018-10-16 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Add get serial id if not provided Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index

[PATCH] i2c: xiic: Make the start and the byte count write atomic

2018-09-03 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Disable interrupts while configuring the transfer and enable them back. We have below as the programming sequence 1. start and slave address 2. byte count and stop In some customer platform there was a lot of interrupts between 1 and 2 and after slave address (around 7

[PATCH] i2c: xiic: Make the start and the byte count write atomic

2018-09-03 Thread shubhrajyoti.datta
From: Shubhrajyoti Datta Disable interrupts while configuring the transfer and enable them back. We have below as the programming sequence 1. start and slave address 2. byte count and stop In some customer platform there was a lot of interrupts between 1 and 2 and after slave address (around 7