msm_serial_hs: Enhancing IPC logs

Move required logs from DEBUG level to INFO level
and reduce the tx/rx data to be logged only first and
last 10 bytes in INFO level.

Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: Efficient resource management for RX path

Increase the receive efficiency by providing more DMA resources
and avoiding changing ready for receive line when not necessary.

Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: protect descriptor indices

Update RX descriptor indices with in lock to protect
against potential race conditions.

Change-Id: Ie69fb4f101d38eee500fe8f946f3ad983d4b6c8d

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: Fix wakeup byte data type and log

Wakeup byte should be an unsigned char to match the
definition of tty_insert_flip_string where it is used
and add debug level log for the same.

Change-Id: I6f558d68e7fb99ffaf5c287e703576c2340e5bcb
Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: Ensure RX side disable completes during port close

The wakeup sequnce can alter the flush state resulting in a indefinite
wait on closing RX side of the port. Fix this by using wait_event_timeout
and disabling the RFR line.

Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: Complete resource disable sequence before enable

The resource requests which originate from the clients
need to be managed so that disable sequence completes
before begining the enable sequence.

Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm_serial_hs: Access hardware with clocks on during port close

The clients can close the port after issuing a clock
off request. Ensure that clocks are turned on before
accessing dependant hardware resources.

Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>