Javier Nieto
01622e9a53
Bluetooth: hci_h5: avoid sending two SYNC messages
...
Previously, h5_open() called h5_link_control() to send a SYNC message.
But h5_link_control() only enqueues the packet and requires the caller
to call hci_uart_tx_wakeup(). Thus, after H5_SYNC_TIMEOUT ran out
(100ms), h5_timed_event() would be called and, realizing that the state
was still H5_UNINITIALIZED, it would re-enqueue the SYNC and call
hci_uart_tx_wakeup(). Consequently, two SYNC packets would be sent and
initialization would unnecessarily wait for 100ms.
The naive solution of calling hci_uart_tx_wakeup() in h5_open() does not
work because it will only schedule tx work if the HCI_PROTO_READY bit is
set and hci_serdev only sets it after h5_open() returns. This patch
removes the extraneous SYNC being enqueued and makes h5_timed_event()
wake up on the next jiffy.
Signed-off-by: Javier Nieto <jgnieto@cs.stanford.edu >
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com >
2025-12-01 15:58:54 -05:00
..
2025-10-14 08:56:31 -06:00
2025-11-26 10:17:10 -08:00
2025-11-25 19:20:42 -08:00
2025-11-20 13:37:18 +01:00
2025-11-25 12:39:26 +01:00
2025-11-18 15:47:55 +01:00
2025-10-20 13:54:15 +02:00
2025-11-06 09:27:40 -08:00
2025-12-01 15:58:54 -05:00
2025-10-04 16:26:32 -07:00
2025-09-11 19:13:21 +01:00
2025-10-04 16:26:32 -07:00
2025-10-18 14:33:22 +03:00
2025-10-23 02:06:47 +08:00
2025-10-07 08:40:15 -07:00
2025-10-22 08:03:52 +02:00
2025-11-12 17:59:37 +01:00
2025-11-06 15:44:18 -08:00
2025-11-20 19:01:22 -08:00
2025-11-07 09:22:10 -07:00
2025-09-15 16:09:42 +02:00
2025-10-15 10:39:54 -04:00
2025-11-27 18:11:43 -08:00
2025-10-06 10:37:06 -07:00
2025-10-24 16:56:37 +01:00
2025-11-25 19:20:42 -08:00
2025-11-11 14:59:04 +01:00
2025-11-16 21:30:26 +09:00
2025-10-23 22:30:01 +02:00
2025-09-22 10:33:10 -03:00
2025-11-19 12:00:28 +01:00
2025-11-21 18:33:07 +10:00
2025-11-22 09:58:41 -08:00
2025-10-01 00:00:45 +00:00
2025-11-12 11:54:37 -08:00
2025-10-04 16:26:32 -07:00
2025-11-03 18:04:15 +01:00
2025-09-29 00:17:22 +02:00
2025-09-23 14:15:25 +02:00
2025-11-14 18:55:38 -08:00
2025-11-17 23:16:55 -08:00
2025-09-12 13:54:17 +03:00
2025-11-21 15:38:27 -04:00
2025-11-14 16:52:34 +01:00
2025-11-10 18:14:20 -08:00
2025-09-16 16:49:28 +01:00
2025-10-08 11:44:21 -07:00
2025-11-21 12:51:41 +01:00
2025-10-24 11:16:26 +02:00
2025-10-23 15:32:21 +02:00
2025-10-02 18:18:33 -07:00
2025-10-03 10:38:23 -05:00
2025-10-26 10:33:46 -07:00
2025-11-11 17:47:47 +01:00
2025-10-22 08:04:43 +02:00
2025-11-03 11:37:57 +01:00
2025-12-01 11:54:45 -08:00
2025-11-17 19:32:32 -08:00
2025-09-22 09:35:21 -04:00
2025-10-06 11:17:18 -07:00
2025-11-27 12:19:08 -08:00
2025-10-22 08:02:38 +02:00
2025-10-24 07:44:09 -05:00
2025-11-20 09:13:26 -08:00
2025-11-16 10:37:38 -07:00
2025-10-06 10:34:22 -07:00
2025-11-18 23:56:11 +01:00
2025-11-27 08:51:36 -08:00
2025-11-04 17:29:00 +01:00
2025-11-26 12:31:48 -08:00
2025-11-26 16:56:34 -08:00
2025-11-14 11:55:56 +01:00
2025-09-15 16:20:29 +02:00
2025-11-05 11:56:16 +00:00
2025-10-04 15:45:17 -07:00
2025-11-05 16:12:28 +01:00
2025-09-20 21:29:48 -05:00
2025-11-08 20:56:12 +01:00
2025-11-20 09:13:26 -08:00
2025-11-19 22:46:36 -05:00
2025-11-04 19:10:32 -08:00
2025-11-04 19:15:36 -08:00
2025-10-06 10:32:22 -07:00
2025-11-10 14:03:53 +00:00
2025-10-13 10:55:03 +02:00
2025-11-27 12:19:08 -08:00
2025-10-17 15:26:52 +02:00
2025-10-02 10:41:58 +02:00
2025-09-23 17:16:38 +02:00
2025-10-22 12:13:54 +02:00
2025-10-29 23:20:19 -04:00
2025-10-07 08:40:15 -07:00
2025-10-24 13:52:58 +02:00
2025-11-11 15:12:18 +01:00
2025-10-28 15:54:41 -06:00
2025-11-26 14:44:58 -08:00
2025-10-28 22:59:19 +01:00
2025-09-29 18:48:39 -07:00
2025-10-04 08:48:16 -07:00
2025-10-06 11:00:30 -07:00
2025-11-04 19:10:32 -08:00
2025-09-15 14:30:17 +02:00
2025-10-07 08:40:15 -07:00