All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
@ 2019-04-18 13:21 Balakrishna Godavarthi
  2019-04-23 16:35 ` Marcel Holtmann
  2019-04-24  7:13 ` Marcel Holtmann
  0 siblings, 2 replies; 5+ messages in thread
From: Balakrishna Godavarthi @ 2019-04-18 13:21 UTC (permalink / raw)
  To: marcel, johan.hedberg
  Cc: mka, linux-kernel, linux-bluetooth, hemantg, linux-arm-msm,
	Balakrishna Godavarthi

When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the
bluetooth address from dts. If the bluetooth address node is missing
from the dts we will enable it controller UNCONFIGURED state.
This patch enables the normal flow even if the BD address is missing
from the dts tree.

Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
---
 net/bluetooth/hci_core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index d6b2540ba7f8..3d9175f130b3 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1460,8 +1460,6 @@ static int hci_dev_do_open(struct hci_dev *hdev)
 			    hdev->set_bdaddr)
 				ret = hdev->set_bdaddr(hdev,
 						       &hdev->public_addr);
-			else
-				ret = -EADDRNOTAVAIL;
 		}
 
 setup_failed:
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
  2019-04-18 13:21 [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts Balakrishna Godavarthi
@ 2019-04-23 16:35 ` Marcel Holtmann
  2019-04-24  7:04   ` Harish Bandi
  2019-04-24  7:13 ` Marcel Holtmann
  1 sibling, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2019-04-23 16:35 UTC (permalink / raw)
  To: Balakrishna Godavarthi
  Cc: Johan Hedberg, Matthias Kaehlcke, Linux Kernel Mailing List,
	linux-bluetooth, hemantg, linux-arm-msm

Hi Balakrishna,

> When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the
> bluetooth address from dts. If the bluetooth address node is missing
> from the dts we will enable it controller UNCONFIGURED state.
> This patch enables the normal flow even if the BD address is missing
> from the dts tree.
> 
> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
> ---
> net/bluetooth/hci_core.c | 2 --
> 1 file changed, 2 deletions(-)

can I get an ACK for this one?

Regards

Marcel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
  2019-04-23 16:35 ` Marcel Holtmann
@ 2019-04-24  7:04   ` Harish Bandi
  2019-04-24  7:08     ` Balakrishna Godavarthi
  0 siblings, 1 reply; 5+ messages in thread
From: Harish Bandi @ 2019-04-24  7:04 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Balakrishna Godavarthi, Johan Hedberg, Matthias Kaehlcke,
	Linux Kernel Mailing List, linux-bluetooth, hemantg,
	linux-arm-msm, linux-bluetooth-owner

Hi Balakrishna,

On 2019-04-23 22:05, Marcel Holtmann wrote:
> Hi Balakrishna,
> 
>> When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the
>> bluetooth address from dts. If the bluetooth address node is missing
>> from the dts we will enable it controller UNCONFIGURED state.
>> This patch enables the normal flow even if the BD address is missing
>> from the dts tree.
>> 
>> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
>> ---
>> net/bluetooth/hci_core.c | 2 --
>> 1 file changed, 2 deletions(-)
> 
> can I get an ACK for this one?
> 
> Regards
> 
> Marcel

nit: it would be better if we print error message, if bd address missing 
in dts.

tested 20 times with bd address missing in dts.
tested 20 times with bd address available in dts.

Tested-by: Harish Bandi <c-hbandi@codeaurora.org>


Thanks,
Harish

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
  2019-04-24  7:04   ` Harish Bandi
@ 2019-04-24  7:08     ` Balakrishna Godavarthi
  0 siblings, 0 replies; 5+ messages in thread
From: Balakrishna Godavarthi @ 2019-04-24  7:08 UTC (permalink / raw)
  To: Harish Bandi
  Cc: Marcel Holtmann, Johan Hedberg, Matthias Kaehlcke,
	Linux Kernel Mailing List, linux-bluetooth, hemantg,
	linux-arm-msm, linux-bluetooth-owner

Hi Harish,

On 2019-04-24 12:34, Harish Bandi wrote:
> Hi Balakrishna,
> 
> On 2019-04-23 22:05, Marcel Holtmann wrote:
>> Hi Balakrishna,
>> 
>>> When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the
>>> bluetooth address from dts. If the bluetooth address node is missing
>>> from the dts we will enable it controller UNCONFIGURED state.
>>> This patch enables the normal flow even if the BD address is missing
>>> from the dts tree.
>>> 
>>> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
>>> ---
>>> net/bluetooth/hci_core.c | 2 --
>>> 1 file changed, 2 deletions(-)
>> 
>> can I get an ACK for this one?
>> 
>> Regards
>> 
>> Marcel
> 
> nit: it would be better if we print error message, if bd address 
> missing in dts.
> 
> tested 20 times with bd address missing in dts.
> tested 20 times with bd address available in dts.
> 
> Tested-by: Harish Bandi <c-hbandi@codeaurora.org>
> 
> 
> Thanks,
> Harish

Thanks for testing will note this improvement and send an incremental 
patch.

-- 
Regards
Balakrishna.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts
  2019-04-18 13:21 [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts Balakrishna Godavarthi
  2019-04-23 16:35 ` Marcel Holtmann
@ 2019-04-24  7:13 ` Marcel Holtmann
  1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2019-04-24  7:13 UTC (permalink / raw)
  To: Balakrishna Godavarthi
  Cc: Johan Hedberg, mka, linux-kernel, linux-bluetooth, hemantg,
	linux-arm-msm

Hi Balakrishna,

> When flag HCI_QUIRK_USE_BDADDR_PROPERTY is set, we will read the
> bluetooth address from dts. If the bluetooth address node is missing
> from the dts we will enable it controller UNCONFIGURED state.
> This patch enables the normal flow even if the BD address is missing
> from the dts tree.
> 
> Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
> ---
> net/bluetooth/hci_core.c | 2 --
> 1 file changed, 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-24  7:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 13:21 [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts Balakrishna Godavarthi
2019-04-23 16:35 ` Marcel Holtmann
2019-04-24  7:04   ` Harish Bandi
2019-04-24  7:08     ` Balakrishna Godavarthi
2019-04-24  7:13 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.