]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: htc: move htc ctrl ep connect to htc_init
authorErik Stromdahl <erik.stromdahl@gmail.com>
Wed, 26 Apr 2017 09:17:53 +0000 (12:17 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 4 May 2017 12:55:21 +0000 (15:55 +0300)
commit1f126aca5cba82268378c90a1224e2c2628edf46
treec9da016a251e3891d7a2d70f019c2ff68e7481d7
parent2903b4c711b669d0ff01320f518013a0590bab35
ath10k: htc: move htc ctrl ep connect to htc_init

This patch moves the HTC ctrl service connect from
htc_wait_target to htc_init.

This is done in order to make sure the htc ctrl service
is setup properly before hif_start is called.

The reason for this is that we want the HTC ctrl service
callback to be initialized before the target sends the
HTC ready message.

The ready message will always be transmitted on endpoint 0
(which is always assigned to the HTC control service) so it
makes more sense if HTC control has been connected before the
ready message is received.

Since the service to pipe mapping is done as a part of
the service connect, the get_default_pipe call is redundant
and was removed.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htc.c