Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2101040ybl; Thu, 30 Jan 2020 11:22:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxwpSqR7aJTW5Vj366B/wROehd+aKgVECMnGBmtvgaG4tL3X676srDThtwK0k9yxw1+jkxW X-Received: by 2002:a05:6808:64e:: with SMTP id z14mr3784487oih.79.1580412139039; Thu, 30 Jan 2020 11:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580412139; cv=none; d=google.com; s=arc-20160816; b=idNOx7sGIddIzelNQk/74cFIxuiP+dCpSW2Sn4b/k8r5mtLtPjVFrOC20bjnzacdtg KXDbbZ+HScJY94JfUMsC9H5lrkc4yYCmTQ/zPFLBcCaY6uRiy8UqWUVQVOL/hANhwjdC NO7eqCRV6j1KxCn9ybqssXwTK5vis1v60mQISd4lRdgw57vddfYJNn6S/SarsEGEZ6Y3 cgkbJ8n+w+Sf0zxfNJUa0Zd+nMEJvsDusCZMe3zw8uU4yaxGTlniH9Oosjy5X8XTl10L dkIxbTSFV2FTNOoMEJdBq30cKHAiGsu11Sl7/Z2qbWX6Lf/aR5DuPgRjr5NOjzzeFCC3 Psow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bAdjKiq/PfIee8gtDr8/FgbrkDDuXjDi97kC5OkZy44=; b=Hh4pInp6yUlpiS+YH55OMMCak+hVJrjQtfQr0m4KhQekolZ0Q85vDssgVmv/eUn8bV zGne9TMNx4dBUm6sTECBn0HBoDS3/TBVA0lhuYri3/yECp0CjSLgicSR+gL6S42GFEiT Gjq8oZFR2cMa2bfoZza5SWQcvEraKMrWf/hcoTNA7J87m14m5ATDz+/TA6z+6LhJrAou imPVCQQfuWs1ErnGUcxkxGMgZMPavq8IPnu5fwgWtSlySUikhfP/MouJDtwse31J8Kcr lBN755iYIsbsA6uLorFS3BNEOPUayYv3SSCY808yI1drAJJmPOg2rGZazTOHkvLNjLJM felQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ABEW0aSm; 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 i12si3163949oik.171.2020.01.30.11.22.07; Thu, 30 Jan 2020 11:22:19 -0800 (PST) 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=@kernel.org header.s=default header.b=ABEW0aSm; 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 S1731643AbgA3Sup (ORCPT + 99 others); Thu, 30 Jan 2020 13:50:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:56560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731195AbgA3Sqb (ORCPT ); Thu, 30 Jan 2020 13:46:31 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75487205F4; Thu, 30 Jan 2020 18:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580409990; bh=yi3SPWfrdUc2hmBaEB9c9QudFRVizN2qqqi3ustrzIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ABEW0aSmWe5nUFZHXvKpsxsaTyGHvR3w4iiFY5Os2Rtp9FboOLBZMitg2hJN1A4FX 89KNRqQIeHVb1QILXTPXtjtnKe1dhnjzhUsOc87ouW6WsoWUis1u5s+SHbNHnCCIGk p7p473AeuaJdIYjjNYCYGSBWK31CY8dEUI+A77Wg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andre Heider , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.4 098/110] Bluetooth: btbcm: Use the BDADDR_PROPERTY quirk Date: Thu, 30 Jan 2020 19:39:14 +0100 Message-Id: <20200130183625.427607453@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200130183613.810054545@linuxfoundation.org> References: <20200130183613.810054545@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andre Heider [ Upstream commit a4f95f31a9f38d9bb1fd313fcc2d0c0d48116ee3 ] Some devices ship with the controller default address, like the Orange Pi 3 (BCM4345C5). Allow the bootloader to set a valid address through the device tree. Signed-off-by: Andre Heider Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- drivers/bluetooth/btbcm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 2d2e6d8620681..f02a4bdc0ca75 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -440,6 +440,12 @@ int btbcm_finalize(struct hci_dev *hdev) set_bit(HCI_QUIRK_STRICT_DUPLICATE_FILTER, &hdev->quirks); + /* Some devices ship with the controller default address. + * Allow the bootloader to set a valid address through the + * device tree. + */ + set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks); + return 0; } EXPORT_SYMBOL_GPL(btbcm_finalize); -- 2.20.1