Hi Ben, >> + >> +#ifdef CONFIG_SERIAL_MSM_HS >> +#include <linux/platform_data/msm_serial_hs.h> >> +#endif >> I do not like platform data. Why can't this be done with device tree? > > This is specific code for MSM UART HighSpeed code which is not upstreamed yet. The MSM device tree has already defined this config_serial_msm_hs. I'd like to move this part to btqca.c module since it is for vendor specific implementation. if the MSM UART HS code is not upstream yet, then please do not try to add hooks into the Bluetooth code. Submit patches without this and add the support later when the other code makes it upstream. I am not taking dead code. None of the kernel maintainers does. > >>> +static int rome_set_baudrate(struct hci_dev *hdev, unsigned int speed) >>> +{ >>> + struct sk_buff *skb; >>> + uint8_t baudrate; >>> + >>> + if (speed > 3000000) >>> + return -EINVAL; >>> + >>> + BT_INFO("%s: Set controller UART speed to %d", hdev->name, speed); >>> + >>> + baudrate = rome_get_baudrate(speed); >>> + skb = __hci_cmd_sync(hdev, EDL_PATCH_BAUDRATE, 1, &baudrate, >>> + msecs_to_jiffies(100)); >> Introduce proper constant defines for timeout or use HCI_INIT_TIMEOUT. >> >>> + if (IS_ERR(skb)) { >>> + if (PTR_ERR(skb) == -ETIMEDOUT) >>> + return 0; >> Why return success when it times out? >> > > QCA ROME doesn't return cc event after recieving baudrate command changed because it triggers HCI_RESET right away and set to new baudrate to communicate with host. Hence timeout can be handled as succeed case. If something goes wrong after changing baudrate, commands follow-ed won't be delivered to controller. I think what we actually want simple hci_cmd_send that allows us to just send the command and not bother with command status or command complete. It seems that has come up a bit more often lately. We have something like this, but I do not think it is exposed via EXPORT_SYMBOL correct. So this should be done first. I however do not understand the HCI_Reset. Who triggers that. The UART baud rate change command in the background. So you are waiting for some event or UART line change to indicate the controller is back up? 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