Handle address pointers appropriately in different architectures
and move platform data to architecture independent directory.
Client modules are changed to include the header from new location.
CRs-Fixed: 647392
Change-Id: I23bf3986b8fdb0337a528038c79535b919226128
Signed-off-by: Naveen Kaje <nkaje@codeaurora.org>
Added module params to allow userspace to control the sleep
mechanism of atheros chipset.
Change-Id: Ie7a9a6c0d73d8df694c805f59a22ad9c52ea8c87
Signed-off-by: Pradeep Panigrahi <pradeepp@codeaurora.org>
HCI Atheros driver first checks for device tree node and if it
does not exists then checks for the platform data from the
board file.
Change-Id: I92e1cfce0d0bf074eb3baab921674e291bb462e6
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Configuration of GPIOs should not be part of module init process
as gpios can be shared with other module.
Moved the configuration of gpios as part of driver open and releasing
them as part of driver close, so that there will not be any conflict
between different modules.
Change-Id: Iac507dd1e07e2cd4adb4c28058800fa4f51c9b52
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Configure AR3002 wake up pins properly to enable BT
Power save mode.
Change-Id: Idefe3276d60ca4993700de5337dd75b181986eb2
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Compilation failed due to un-used variable when
CONFIG_BT_HCIUART_ATH3K is set to true.
Change-Id: Idf6f38f64704d979dd6d3443f4a0bd792e00553e
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Two additional GPIO pins are used to support sleep mechanism
between Host and Atheros BT SoC.
Change-Id: If7d49e23d285b8e416af729314cffdf7c62da136
Signed-off-by: Santosh Sajjan <ssajjan@codeaurora.org>
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
This will let us sort out a whole pile of tty related races. The
alternative would be to keep points and refcount the termios objects.
However
1. They are tiny anyway
2. Many devices don't use the stored copies
3. We can remove a pty special case
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
The uart_proto open() callback is not called in atomic context so we can safely
sleep here. The caller hci_uart_set_proto() in hci_ldisc.c is an ioctl-handler
and therefore can sleep.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Check the return value of hu->proto->recv() in hci_uart_tty_receive()
the recv() may return error, check it, not add this to statistics.
Signed-off-by: Jiejing Zhang <jiejing.zhang@freescale.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Was this exploitable - who knows, but it was certainly totally broken
Signed-of-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sk_buffs have to be freed with kfree_skb() instead of kfree().
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Those marks are useful to save space in the binary and in the memory.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
.c file shall not have the 'x' permission.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Implements Atheros AR300x serial HCI protocol.
This protocol extends H4 serial protocol to implement enhanced power
management features supported by Atheros AR300x serial Bluetooth chipsets.
Signed-off-by: Suraj Sumangala <suraj@atheros.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>