Re: BT led trigger

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

 



Hi Michal,

>>> I have found your name in connection to net/bluetooth/leds.c trigger.
>>> I understand that this trigger will show status of hci controller
>>> and this is just working fine. I have tested it without any issue.
>>> I am curious if we could use this trigger to handle also gpio signal
>>> which is enabling BT. I am using ti chip where we have bt_en connected
>>> to gpio.
>>> I have seen that people are handling this from userspace by exporting
>>> gpio and writing values there but it looks pretty bad to me.
>>> 
>>> Have you ever tried to use bt led trigger also for handling gpio enable
>>> signals? Or is there any other nice way how to handle it?
>> 
>> that is the wrong approach. See how hci_intel.c, hci_bcm.c, hci_nokia.c and others are dealing with the GPIO pins in the background. There is no need for any user space hacks anymore.
> 
> I use TI wl1831 over uart with flow control which is using hci_ll.c.
> I understand handling when you have specific driver that you need to
> handle it. But if this is just over uart where from simply running
> "hciattach -n /dev/ttyS1 texas"
> I can detect this chip.

that one just got integrated with the serdev serial device bus and can be configured via DT.

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