Re: [PATCH v6 1/2] Bluetooth: hci_intel: Add Intel baudrate configuration support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Loic,

> Implement the set_baudrate callback for hci_intel.
> - Controller requires a read Intel version command before updating
>   its baudrate.
> - The operation consists in an async cmd since the controller does
>   not respond at the same speed.
> - Wait 100ms to let the controller change its baudrate.
> - Clear RTS until we change our own UART speed
> 
> Manage speed change in the setup function, we need to restore the oper
> speed once chip has booted on patched firmware.
> 
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxx>
> ---
> v2: simplify baudrate change, update commit message,
>     set missing set_baudrate callback.
> v3: Remove unused 'err' variable in intel_set_baudrate
> v4: Move set_bit STATE_BOOTING after speed changing in setup
>     change patch title, hci_uart->hci_intel
> v5: Direclty enqueue speed cmd instead of hacking hci_cmd_sync
>     intel_set_baudrate refactoring.
>     keep STATE_SPEED_CHANGING flag in order to ignore incoming packet
>     during transition. Could be used later to indicate cmd complete,
>     avoiding msleep usage.
> v6: use hci_uart_set_flow_control to clear RTS during speed transition
>     dont need STATE_SPEED_CHANGING flag anymore
> 
> drivers/bluetooth/hci_intel.c | 119 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 119 insertions(+)

patch has been applied to bluetooth-next tree.

Just a heads up that the patch 2/2 never made it to the mailing list.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux