Re: btbcm issue

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

 



Hi Ryan,

> 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;
> +}

I think the current hci_bcm.c (and btbcm.c) only ever enabled ACPI enumeration. Meaning someone might want to update that to support device tree (DT). There were efforts from Broadcom to add support for this, but they never agreed with the DT maintainer on the definitions.

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