Commit Graph

15 Commits

Author SHA1 Message Date
Naveen Kaje 9898b16a84 msm_serial_hs: support proper handling of addresses
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>
2014-04-15 06:52:19 -06:00
Pradeep Panigrahi f651ec064c bluetooth: hci_ath: enable driver support for bluedroid stack
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>
2014-01-30 10:24:39 +05:30
Ram Mohan Korukonda 0241a6dd38 bluetooth: hci_ath: add device tree support for atheros driver
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>
2013-09-04 16:13:24 -07:00
Ram Mohan Korukonda aa98a98357 Bluetooth: hci_ath: Configure GPIOs as part of bluetooth on.
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>
2013-09-04 15:11:48 -07:00
Ram Mohan Korukonda 6c02183953 Bluetooth: hci_ath: Support BT Power Save mode on AR3002
Configure AR3002 wake up pins properly to enable BT
Power save mode.

Change-Id: Idefe3276d60ca4993700de5337dd75b181986eb2
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
2013-07-08 05:52:36 -07:00
Ram Mohan Korukonda 38655ce357 Bluetooth: hci_ath: Remove un-used variable
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>
2013-07-08 05:52:35 -07:00
Santosh Sajjan 13499593ee Bluetooth: Add Sleep Support using GPIO for ATH3K driver.
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>
2013-07-08 05:52:34 -07:00
Alan Cox adc8d746ca tty: move the termios object into the tty
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>
2012-07-16 13:00:41 -07:00
David Herrmann f5fd5baee3 Bluetooth: hci-uart-ath: Use GFP_ATOMIC in open()
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>
2012-02-13 17:01:22 +02:00
Jiejing Zhang 78b4a56c28 Bluetooth: hci_uart: check the return value of recv()
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>
2011-04-13 12:20:03 -03:00
Alan Cox afaae08442 hci_ath: Fix the mess in this driver
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>
2011-02-17 12:03:53 -08:00
Dan Carpenter 4ebaa4edf8 Bluetooth: Fix kfree() => kfree_skb() in hci_ath.c
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>
2010-07-27 15:27:45 -07:00
Gustavo F. Padovan f2b94bb9e0 Bluetooth: Add __init and __exit marks to UART drivers
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>
2010-07-27 12:35:58 -07:00
Gustavo F. Padovan 0bbdf6cba0 Bluetooth: Fix permission of hci_ath.c
.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>
2010-07-27 12:30:45 -07:00
Suraj Sumangala b3190df628 Bluetooth: Support for Atheros AR300x serial chip
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>
2010-07-21 10:39:14 -07:00