Commit Graph

13 Commits

Author SHA1 Message Date
syphyr add5b29589 bluetooth: Define proper kernel messages
Revert Samsung changes that made all bluetooth kernel messages into
error messages.
2019-07-27 22:08:39 +02:00
syphyr ba8ed9f494 bluetooth: Fix kernel warning about usage of reset gpio
Introduced by package version: T713XXU2BQCO

During a bluetooth power reset, the gpiolib warns about using
the bt_reset_gpio without explicitly requesting it beforehand.

Fixes: "Import latest Samsung release"

[20955.983640]  [1:  stack_manager: 4935] ------------[ cut here ]------------
[20955.983704]  [1:  stack_manager: 4935] WARNING: at ../../../../../../kernel/samsung/msm8976/drivers/gpio/gpiolib.c:162 gpio_ensure_requested+0x58/0x80()
[20955.983791]  [1:  stack_manager: 4935] autorequest GPIO-899
[20955.983838]  [1:  stack_manager: 4935] CPU: 1 PID: 4935 Comm: stack_manager Tainted: G        W    3.10.108-g43a2eba3d169-04027-g931f0aab3e42 #1
[20955.983919]  [1:  stack_manager: 4935] Call trace:
[20955.983958]  [1:  stack_manager: 4935]  dump_backtrace+0x0/0xc0
[20955.984003]  [1:  stack_manager: 4935]  show_stack+0x14/0x1c
[20955.984048]  [1:  stack_manager: 4935]  dump_stack+0x20/0x28
[20955.984093]  [1:  stack_manager: 4935]  warn_slowpath_common+0x74/0x9c
[20955.984140]  [1:  stack_manager: 4935]  warn_slowpath_fmt+0x50/0x58
[20955.984185]  [1:  stack_manager: 4935]  gpio_ensure_requested+0x58/0x80
[20955.984231]  [1:  stack_manager: 4935]  gpiod_direction_output+0xb4/0x2a0
[20955.984285]  [1:  stack_manager: 4935]  gpio_direction_output+0x18/0x20
[20955.984335]  [1:  stack_manager: 4935]  bt_configure_gpios+0x58/0xb8
[20955.984380]  [1:  stack_manager: 4935]  bluetooth_power+0x15c/0x204
[20955.984424]  [1:  stack_manager: 4935]  bluetooth_toggle_radio+0x3c/0x4c
[20955.984472]  [1:  stack_manager: 4935]  rfkill_set_block+0x90/0x11c
[20955.984517]  [1:  stack_manager: 4935]  rfkill_state_store+0x84/0xa0
[20955.984563]  [1:  stack_manager: 4935]  dev_attr_store+0x20/0x28
[20955.984607]  [1:  stack_manager: 4935]  sysfs_write_file+0x10c/0x154
[20955.984650]  [1:  stack_manager: 4935]  vfs_write+0xd0/0x170
[20955.984689]  [1:  stack_manager: 4935]  SyS_write+0x48/0x74
[20955.984728]  [1:  stack_manager: 4935] ---[ end trace 5b8933bb00337928 ]---
2019-07-27 22:08:39 +02:00
LuK1337 fc9499e55a Import latest Samsung release
* Package version: T713XXU2BQCO

Change-Id: I293d9e7f2df458c512d59b7a06f8ca6add610c99
2017-04-18 03:43:52 +02:00
Sarada Prasanna Garnayak 27c4307478 Net: CNSS: refactoring CNSS platform Driver
Separate the WLAN CNSS platform driver according to
the bus interface PCIe and SDIO. Add separate Kernel
Config file for the WLAN CNSS platform Driver and its
necessary module which has support for the CNSS
connectivity Subsystem.

Add Kernel Config flag to refactoring the CNSS platform Driver:

CONFIG_CNSS Kernel Config add support to CNSS Core
driver compilation and export Generic GPL wrappers.

CONFIG_CNSS_SDIO Kernel Config add support to CNSS
Platform Driver compilation for SDIO based WiFi Devices
and export platform driver API's based on the SDIO bus.

CONFIG_CNSS_PCI Kernel Config add support to CNSS
Platform Driver compilation for PCIe based WiFi Devices
and export platform driver API's based on the PCIe bus.

Change-Id: I8cce5bbc87e6742179a7967ccba295f55c444b28
Signed-off-by: Komal Seelam <kseelam@codeaurora.org>
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
CRs-fixed: 944601
2016-08-10 11:27:41 +05:30
pramod kotreshappa 44aefe7d0a Bluetooth: Add delay between BT enable line toggle
Add 50msec delay between BT_EN gpio line toggle from 0 to 1
during BT turn on process to allow settling time for the controller
to recongnize the BT_EN pin toggle.

Change-Id: I795ddca18ef91402c3194bedddcf30a713481a59
CRs-fixed: 690360
Signed-off-by: Pramod Kotreshappa <pramodk@codeaurora.org>
2014-07-09 09:51:21 -07:00
Vadivel Thekkamalai c68c6afe43 bluetooth: update bluetooth-power platform data
Update bluetooth power driver to support both device tree
to power on bluetooth chipset.

Driver checks for device tree node to provide all the
required vregs and gpio data to power on the bluetooth
chipset.

Change-Id: Ib1bb6f4853bc1ae724817cab53ae3661be034e92
Signed-off-by: Vadivel Thekkamalai <vthekk@codeaurora.org>
2014-05-27 11:48:47 -07:00
Sungjun Park 307622812a Bluetooth: Remove unneccesary ifdef around #include
Remove unneccessary ifdef around #include for clean up.

CRs-Fixed: 658817
Change-Id: Iaf5e08112bade5de253f7b33f29b35a6d10a03cf
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2014-05-12 10:37:28 -07:00
Sungjun Park 6fc1617aaf Bluetooth: Add external LDO check routine for Rome
For 1.1V on Rome, it can be used by either internal LDO or
external LDO based on platform.

Change-Id: Icbb64d92fbe529fa0fac53e50a06497f3cca98b8
Signed-off-by: SungJun Park <sjpark@codeaurora.org>
2014-04-29 14:48:48 -07:00
Pradeep Panigrahi 349c6a154d Revert "bluetooth: set optimum current requirement for vdd la"
This reverts commit 3e94cfd8c3.

Change-Id: I9f09e0d4560d9af655afb7e6a065b0bc44e048fe
Signed-off-by: Pradeep Panigrahi <pradeepp@codeaurora.org>
2014-02-13 10:40:44 +05:30
Pradeep Panigrahi 3e94cfd8c3 bluetooth: set optimum current requirement for vdd la
Add change in bluetooth power module to specify load current
requirement for regulator vdd la during Bluetooth turn on.

Change-Id: Iddd602b2ea45be62cb3786cc482e3ce12ae6302b
Signed-off-by: Pradeep Panigrahi <pradeepp@codeaurora.org>
2014-01-28 15:54:08 +05:30
Sungjun Park 03a187caa9 bluetooth: Fix bluetooth on/off issue
On new rome 2.1 chipset, BT_EN pin has been HW pull-up.
The gpio for BT_EN pin on APQ8084 is configured as input
when bt is off, so, the pin is high due to the HW pull-up
from the rome 2.1. Therefore, the gpio for BT_EN on APQ8084
has been fixed to be remained as output when bt is off.

Change-Id: I7dc8d7e020eca0270c2ce8d1124679f4fba455ca
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2014-01-22 17:30:38 -08:00
Sungjun Park f3ad07ae58 bluetooth: update bluetooth-power platform data
Update bluetooth power driver to support both device tree and
board specific platform data to power on bluetooth chipset.

Current driver supports only gpio data from the device node.
Now the driver first checks for device tree node and if it
does not exist then checks for the platform data from the
board file.

Updated the platform data for the driver to provide all the
required vregs and gpio data to power on the bluetooth
chipset.

Change-Id: Ie71115ad7173fc527e46b334a8b548762b40aa46
Signed-off-by: Ram Mohan Korukonda <rkorukon@codeaurora.org>
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2013-09-25 15:11:52 -07:00
Pradeep Panigrahi 89f5de2b76 Bluetooth: Add support for AR3002 bluetooth soc
Bluetooth power driver for providing power to Bluetooth AR3002 SOC

Change-Id: I3f4b23d59ce860393a7a481d7ac6d298bc89925e
Signed-off-by: Pradeep Panigrahi <pradeepp@codeaurora.org>
2013-09-04 16:01:58 -07:00