Hi, I am using btbcm on an embedded device which has a broadcom bt module. I understand that the below code suspends the bt device. Can anyone show me where i need to specify wakeup irq and device_wakeup gpios? I cant find examples of boards which do these? I understand that device_wakeup is required for suspending the device. Below is the code segment for suspend-resume which i suppose will be called to suspend the device. +static int bcm_suspend(struct device *pdev) +{ + struct bcm_device *dev = platform_get_drvdata(to_platform_device(pdev)); + + BT_DBG("suspend (%p): is_suspended %d", dev, dev->is_suspended); + + if (!dev->is_suspended) { + hci_uart_set_flow_control(dev->hu, true); + + /* Once this callback returns, driver suspends BT via GPIO */ + dev->is_suspended = true; + } + + /* Suspend the device */ + if (dev->device_wakeup) { + gpiod_set_value(dev->device_wakeup, false); + BT_DBG("suspend, delaying 15 ms"); + mdelay(15); + } + + return 0; +} -- 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