From patchwork Wed Jun 7 09:08:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 103218 Delivered-To: patches@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1831870qgd; Wed, 7 Jun 2017 02:08:37 -0700 (PDT) X-Received: by 10.25.202.13 with SMTP id a13mr2039306lfg.70.1496826517469; Wed, 07 Jun 2017 02:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496826517; cv=none; d=google.com; s=arc-20160816; b=yTwkBgHlRh2/fe7x4m4itmbjThlyxpNLNj5a0xnpjITdYcEFKRiM4uTTCyO8EeT4LH 9OlPhEZSphlt9uffVv8GpGDIma9PoN0LGvBBzajtt3eOk+eELNy+MhSnTXaZHjdItKoZ Iolk9gT1hGq1wagltCctwKeFb3ppz5l+37uIBTAw/sZZn4RsoMbHtN2Hf+ZO4HsPclWl 4cUnpiD05L1PX6Hp3YRicgp8b3RDyxLrLsPlfdqU8lmdhLmCfl4MfnS3QQ67yVCBJrlL OJdc8kwhY58RHcfmIdOcsFaJbOS4SdYnETl7Z9Gk/NlnzknKt0s0aQRhBH1zPwFYC7HH tRMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=SiwhDucd/xRVu29hl6sk9/DSvlpG2/X5QxeMDbulzfo=; b=CaSZCCj268VItrZcV1ZI2MI1MZ44Ae0xZuEg9wuH5YnRohsF6Wc1exo7+PkGW2AQ6j 6DvLVyvzeX/5JnE9JeMB07rgffID8Upwof+JHskoqvLoZCQl8nV91xJlnMA9Ele9DUOW 5/nKfTiueuZvwnGN8scirqx7XW2bXDRGRR0UvisFh8ccw2yeNnNJKKAUyvLSoQgDNFbM 6DZBbo99gZembxiun8skOWUCik2gATNAhIVsTBNdySsdvhxJeOh+2wTSV/ogDcL5kjHT EIX0dKGe4ktH68dSDDktV7AMPdf4ImEbg2PGHPOWxkXp6BWFHH/L+k2wxsM9j1cig8aL 7WrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id b205si671777lfg.21.2017.06.07.02.08.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Jun 2017 02:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x232.google.com with SMTP id p189so3034305lfe.2 for ; Wed, 07 Jun 2017 02:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=SiwhDucd/xRVu29hl6sk9/DSvlpG2/X5QxeMDbulzfo=; b=alLvwCe6ggFaylsUmEBycyYTPc2wuJyBygGSdSeFeTI+KplwU4ZdQlMFPm+aoZMb59 BqsnswgzxNQAHZzg5S527mJVOV+IEvWM86M1fTt5DmoIxpdHtLeVOxZWEAVVXjz0O3XC O+wHyLk3xhVnEfWqK/p4Z/roJNUpdyw3IoHcA= 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; bh=SiwhDucd/xRVu29hl6sk9/DSvlpG2/X5QxeMDbulzfo=; b=JSxQJvfx27zTJonAf1YxSWexQ5n5MWlDKnxOT//QnsIooTIwt+/nX5R8atNLV2rY6w k9o+renA8nK7DRaaxRam8cfyxSAiiJ2WoSsx5p9e5mP2FqNBBFbLDvegiGQNaJVKXGbq BnOXMnbPcObA0SFge+krEXunQw7WN8Ouq3QTzNBpgCrq3zTqHjVnwBhrSUtqCDJKz7Xh S183FDoAqYHdJNjz+Im6J98PZOgpMMMzZXCXC6QZeUkwFuiPV4utK9yV3I5HGz0RwriI l+q6F6JUnioTtqqSNsZ4yOeh4SPU4zKw8ZfvksXDe7fRnvHd+1dZnAOHezY39DNhkTJl zkFg== X-Gm-Message-State: AODbwcAoFjZuME8h5d6jRDIe9F+/q/ux44BGYcNEeTMPBWzlT1d6V2GO WMdhksK5ZqRkI44piuU= X-Received: by 10.46.14.26 with SMTP id 26mr9091592ljo.71.1496826517036; Wed, 07 Jun 2017 02:08:37 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id e36sm226271lji.49.2017.06.07.02.08.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 02:08:36 -0700 (PDT) From: Ulf Hansson To: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , linux-bluetooth@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Daniel Lezcano , Wei Xu , Rob Herring , John Stultz , Satish Patel , Arnd Bergmann , Olof Johansson , Ulf Hansson Subject: [PATCH 0/3] arm64: hi6220-hikey: Fix Bluetooth support Date: Wed, 7 Jun 2017 11:08:19 +0200 Message-Id: <1496826502-1339-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 The commit ea452678734e ("arm64: dts: hikey: Fix WiFi support") indeed managed to fix the WiFi support for the Hikey board. However, it also caused the Bluetooth to break. The reason to the problem is because part of the fixes for WiFi, involved explicitly to start manage the external clock for the TI WiLink chip, as it's needed to properly power on/off WiFi. Then, because the Bluetooth driver, hci_ll, don't manage the clock, it fails to initialize Bluetooth. This small series add support and DT bindings for the external clock, now properly managed by the hci_ll driver during power on/off. On top of that, the external clock is added to the Bluetooth DT node in the Hikey DTS file. The regression has been reported by John Stultz, running a Hikey board with UEFI based boot. I have confirmed that there is no regressions with u-boot as we still don't have bluetooth working on that set up. I intend to fix that as well, although in second step and not being part of a fixup series. John, can you please confirm/test this on your Hikey board using UEFI!? Perhaps this can go in via the bluetooth git, when respective patches has got an ack. Or whatever you think is best. Ulf Hansson (3): dt-bindings: net: Add binding for the external clock for TI WiLink Bluetooth: hci_ll: Add support for the external clock arm64: dts: hikey: Add external clock to the Bluetooth node Documentation/devicetree/bindings/net/ti,wilink-st.txt | 6 ++++++ arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 ++ drivers/bluetooth/hci_ll.c | 14 +++++++++++++- 3 files changed, 21 insertions(+), 1 deletion(-) -- 2.7.4 Tested-by: John Stultz