Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp584829yba; Thu, 18 Apr 2019 06:23:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx72Ofyoz7aND/IJriXtAPljTflV6AgjMzjgSiSKsYkfKY+wHD2VJoK7lvMg5aeF3YQWqpk X-Received: by 2002:a17:902:9687:: with SMTP id n7mr54732978plp.105.1555593837584; Thu, 18 Apr 2019 06:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555593837; cv=none; d=google.com; s=arc-20160816; b=uAtwfPJ7UhHjMj1JnnBTpkzhhAM1/b05/RhGT7YePZUsvOSOtxKwR3eyd+cyPew6fJ pvGZUN+heykL/PXaFkGTIJB9ojV7iYv1TohUUENVF+gi+y1spSKymdD+zhTjc7oFQwV6 YIpe7tlIiQOit0Rt6fyi3dxSLKfZVbrS0bP2WYeMTa4fyyz+apjlJ+60fynvCV9UvzY4 kjFX2yg/hFbPDdS5/Z0EXzO8yWUdu42VP6kcsTziPhRBCtSOb3EY/C7hVw6AcfxbvAj6 y6LVfAdSrlzoUibDTSoMOdw+GNmUf8l+FhQg6/rhWUfKpdVbF+k9lrr2B+sMnamVhoK7 eaHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=I8b0Vjrqx+SjgN6oO8e9Xtnxy0WQmJ/pcVhAWGZ0BX8=; b=yb1YtT18ttBfq+sQ3fNSLyryPGkDAz/ncKLZOicblI00gfEIf8hCFZZBe2MWNl/fFU V5dZwJcoMht1/C2bCreASaKjXUEL7IAGQbC45MuaZ/4Z3mE5V81V3AMXAa5y/dr89dws SKXan2a+LADZpTHxI2crqbqtcOEG7xRBXKqEhzGuaMs4g+2bjqErNow716ZRzfZ6kgNm xj+dZDoHvnlQGhguSWztABs+Q5L3sTFnKEorO4VxSsuzqY2P8sM0HQ9gfw/euBr0wh/z 397ofK5/ghXNjEwv6Qe2M5Nwb71cx8XkuT47SbpNsXst+ybf8wJkGqonaArwzRvy2uH0 RIlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SRe9lZDm; dkim=pass header.i=@codeaurora.org header.s=default header.b="eFxaBNl/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si2077725plk.75.2019.04.18.06.23.42; Thu, 18 Apr 2019 06:23:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SRe9lZDm; dkim=pass header.i=@codeaurora.org header.s=default header.b="eFxaBNl/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389024AbfDRNVi (ORCPT + 99 others); Thu, 18 Apr 2019 09:21:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41322 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNVi (ORCPT ); Thu, 18 Apr 2019 09:21:38 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A5BF36019D; Thu, 18 Apr 2019 13:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555593697; bh=VcOJpKXAD3lG/aesfN7KgBMt1UoAlP9YFJRdcI72nHg=; h=From:To:Cc:Subject:Date:From; b=SRe9lZDm7ANaHXd9oWobQ2kD94LHBV0MY4mKPjY9o0XVSJ0+ntkofw2ypzlrqQKK3 pYnDq23XsrpXSE6PPeLoA0em4Et9xYSbPLSsTDjm2GL54qXm+PogU6YccUf/B4Ynk+ EOCUQElXb/TrCTMeloAx6pmk0geKSW5ES7/hRbws= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from bgodavar-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bgodavar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 05E956019D; Thu, 18 Apr 2019 13:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1555593695; bh=VcOJpKXAD3lG/aesfN7KgBMt1UoAlP9YFJRdcI72nHg=; h=From:To:Cc:Subject:Date:From; b=eFxaBNl/Pq5hdQFK1gH6PUvbFMvTccGDYrl57dXQQiJdyqPjMNdIaBmYYiXbgbsDB ZrQnTTpxelG6w1IdA79TC61PPfdeoCqiMJpYsOeWdIv/gmlp6uwOsTirSfpkdFQ+oo ks5MxClI5Lb84FTFts+InuYnjneXg/5YbcuSafF0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 05E956019D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bgodavar@codeaurora.org From: Balakrishna Godavarthi To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, Balakrishna Godavarthi Subject: [RFC v1] Bluetooth: hci_core: Don't stop BT if the BD address missing in dts Date: Thu, 18 Apr 2019 18:51:23 +0530 Message-Id: <20190418132123.12816-1-bgodavar@codeaurora.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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