Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1445262ybx; Tue, 5 Nov 2019 16:30:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzfAG2A2z8/An+44EAVjE74J7OoQVYJvplBeq4jL7EnoXFY4uraU/PT9fyxfMBu294v1HGL X-Received: by 2002:a17:906:2961:: with SMTP id x1mr32185888ejd.91.1573000242056; Tue, 05 Nov 2019 16:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573000242; cv=none; d=google.com; s=arc-20160816; b=Khn8bIxL1dnMkf1WuSux1XShg/i8kV6k5Wzm0TSEE6Zmd7wMWCOe5EtW2C0y1anZaH 9TzJK1jOPXyZvjzJdFfMFFSt5CQzTmbsWwlyLfJ8uN7Xm8XnA1kg6JgkD+smYm+etAtG Wx1lYnzREIGfEkjwEL9+M3uHcOdxD6FITSUseXLruq/6QcgDyMD6oYAl5whDkkqzrs4S X9gvB/aoHdBLunRgMWmTGKD2Ew1y/kHVGJQFPbiFU00Mg3sxWsh8BeITMH060Xfuj8/X 1HBe8DF/T+b6/gRTHKTeBLNRPGkS4oa4gWPcgQptml8Pe3YaeKu4eXQsO3L5bMalMlXQ sk4A== 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:dkim-signature; bh=mQn/hdpJtUBU4JXLBcANmsUsqxv2qw1rKwGzmCMjZAo=; b=wT3lBlXUE1FCtLMUKQYnnxoxlc+ZAdT5LpxuKl23sCTGOeNwaws/anvY/pvUn3yFHB /1xnwZih2YYH5CM/Zo5tBGWmtftts7P1yCEUvBJ5H6WZLaSmOInidiRu50hfGWNXJO09 hChcPs2xJ37xGckr2aHwFLJfvb4jIfyZMQx/u3RwL66gy84T/ODXwI+mXnByFtdZi+m+ NNxnmHk+qxu3TWNcknn0ez25vqxarrhgM14eLucAM6DIedDqYeEeNeNHyTk4sKtS/lli 4mTuwy7PoCYcpAIoIE92VmMcgDmePAZtWDCIgLBabZ5T697e0HLS/ndjIeqazJV/FR65 AtNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jVQXC8Be; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si9741165eda.412.2019.11.05.16.29.59; Tue, 05 Nov 2019 16:30:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=@chromium.org header.s=google header.b=jVQXC8Be; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729711AbfKFA3z (ORCPT + 99 others); Tue, 5 Nov 2019 19:29:55 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37278 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbfKFA3y (ORCPT ); Tue, 5 Nov 2019 19:29:54 -0500 Received: by mail-pf1-f195.google.com with SMTP id p24so10913400pfn.4 for ; Tue, 05 Nov 2019 16:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mQn/hdpJtUBU4JXLBcANmsUsqxv2qw1rKwGzmCMjZAo=; b=jVQXC8BeCX0FWiJOeHNFnoeR6xuVmIEDLWUFVGMVeNOeMPLue9DiXC0Y5jsqZffeEq K+uA83vP0MSdkAlNO3OEvMar2FnfGklHxXcwEjSfGc1TkskmgkKWO0AcZ99Hm2bidAVJ Z5YgmVJ1CoPXXGmspjNqyaK63qbOVauqjo39Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mQn/hdpJtUBU4JXLBcANmsUsqxv2qw1rKwGzmCMjZAo=; b=NYC9GCQ8jqRUDSHYXmnct+crTWL0EMCiQpaohWJliTdNptGx+6FzDHvUli8rJKNxAZ B186zSlhNIt9odbXmoH4ePgz0hk+8/s+j+HuKTEb3Of5lApu7v7s6KnDpEkoyGbF+IIs Ui9KmFq5mAt8l1XUwS1Xh0h3I7BhpSJCGh2nE44q9bh41gDnxNe+66ffo5RNtrDYiD90 n5bTMP9KCh3cejf1MGWDqp8ALryT7l7gl2+OcCl4NDUAdUmwsfVT0TDuy8lSWl6gSFAK BkQh1SCNRz7yCdpXKJq/6aBfFv6AT2KFTgakJK2661uCSp8wSWcY5G6JOX+qUpuSVmGz K0tw== X-Gm-Message-State: APjAAAVXg1ZfFyzoVS7fzHEg1YxrWjcOc+HGK34zMicOQnKZ2OieFc4/ KwjRmS1jksHhYcmhfb4VZDCcqA== X-Received: by 2002:a65:4c8b:: with SMTP id m11mr40815673pgt.25.1573000193870; Tue, 05 Nov 2019 16:29:53 -0800 (PST) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id k9sm21032835pfk.72.2019.11.05.16.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 16:29:53 -0800 (PST) From: Abhishek Pandit-Subedi To: Marcel Holtmann , Johan Hedberg Cc: linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi , devicetree@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Ondrej Jirman , Mark Rutland , Chen-Yu Tsai Subject: [PATCH 0/4] Bluetooth: hci_bcm: Additional changes for BCM4354 support Date: Tue, 5 Nov 2019 16:29:19 -0800 Message-Id: <20191106002923.109344-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org While adding support for the BCM4354, I discovered a few more things that weren't working as they should have. First, we disallow serdev from setting the baudrate on BCM4354. Serdev sets the oper_speed first before calling hu->setup() in hci_uart_setup(). On the BCM4354, this results in bcm_setup() failing when the hci reset times out. Next, we add support for setting the PCM parameters, which consists of a pair of vendor specific opcodes to set the pcm parameters. The documentation for these params are available in the brcm_patchram_plus package (i.e. https://github.com/balena-os/brcm_patchram_plus). This is necessary for PCM to work properly. All changes were tested with rk3288-veyron-minnie.dts. Abhishek Pandit-Subedi (4): Bluetooth: hci_bcm: Disallow set_baudrate for BCM4354 Bluetooth: btbcm: Support pcm configuration Bluetooth: hci_bcm: Support pcm params in dts dt-bindings: net: bluetooth: update broadcom-bluetooth .../bindings/net/broadcom-bluetooth.txt | 4 ++ drivers/bluetooth/btbcm.c | 27 ++++++++++ drivers/bluetooth/btbcm.h | 12 +++++ drivers/bluetooth/hci_bcm.c | 52 ++++++++++++++++++- 4 files changed, 94 insertions(+), 1 deletion(-) -- 2.24.0.rc1.363.gb1bccd3e3d-goog