On Wed, Dec 21, 2016 at 12:33:51PM -0800, Rajat Jain wrote: > Some onboard BT chips (e.g. Marvell 8997) contain a wakeup pin that > can be connected to a gpio on the CPU side, and can be used to wakeup > the host out-of-band. This can be useful in situations where the > in-band wakeup is not possible or not preferable (e.g. the in-band > wakeup may require the USB host controller to remain active, and > hence consuming more system power during system sleep). > > The oob gpio interrupt to be used for wakeup on the CPU side, is > read from the device tree node, (using standard interrupt descriptors). > A devcie tree binding document is also added for the driver. The > compatible string is in compliance with > Documentation/devicetree/bindings/usb/usb-device.txt > > Signed-off-by: Rajat Jain <rajatja@xxxxxxxxxx> > Reviewed-by: Brian Norris <briannorris@xxxxxxxxxxxx> > --- > v4: Move the set_bit(BTUSB_OOB_WAKE_DISABLED,..) call to the beginning of > btusb_config_oob_wake() - caught by Brian. > v3: Add Brian's "Reviewed-by" > v2: * Use interrupt-names ("wakeup") instead of assuming first interrupt. > * Leave it on device tree to specify IRQ flags (level /edge triggered) > * Mark the device as non wakeable on exit. > > Documentation/devicetree/bindings/net/btusb.txt | 40 ++++++++++++ Acked-by: Rob Herring <robh@xxxxxxxxxx> > drivers/bluetooth/btusb.c | 84 +++++++++++++++++++++++++ > 2 files changed, 124 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/btusb.txt -- 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