From patchwork Fri Feb 27 20:44:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 5903231 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A164F9F269 for ; Fri, 27 Feb 2015 20:44:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB2DB2026C for ; Fri, 27 Feb 2015 20:44:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B23B72021F for ; Fri, 27 Feb 2015 20:44:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932123AbbB0UoK (ORCPT ); Fri, 27 Feb 2015 15:44:10 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49330 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932115AbbB0UoJ (ORCPT ); Fri, 27 Feb 2015 15:44:09 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4384581EC9; Fri, 27 Feb 2015 21:44:07 +0100 (CET) Date: Fri, 27 Feb 2015 21:44:03 +0100 From: Pavel Machek To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: sre@debian.org, sre@ring0.de, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com Subject: Re: bluetooth on n900 -- working patch Message-ID: <20150227204403.GA17650@amd> References: <20150211104136.GA1788@amd> <201502272015.00226@pali> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201502272015.00226@pali> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi! > > Here's current version of the bluetooth patch, I hope I did > > not miss anything. This time including dts changes, so that > > driver is active. > > > > I have firmware in /lib/firmware/nokia/bcmfw.bin > > > > Best regards, > > Pavel > > > > Do you have userspace application for initializing mac address? bluez-5.26 should be able to do the trick. Non-mandatory patch below. I'm using ../bluez-5.26/tools/btmgmt public-addr 01:02:03:04:05:06 Only in bluez-5.26/tools: btmgmt.c~ diff -ur bluez-5.26.ofic/tools/btmgmt.c bluez-5.26/tools/btmgmt.c --- bluez-5.26.ofic/tools/btmgmt.c 2014-12-14 12:32:19.742595000 +0100 +++ bluez-5.26/tools/btmgmt.c 2014-12-14 20:06:40.432497973 +0100 @@ -2603,7 +2603,7 @@ static void static_addr_usage(void) { - printf("Usage: btmgmt static-addr
\n"); + printf("Usage: btmgmt static-addr ??:??:??:??:??:??\n"); } static void cmd_static_addr(struct mgmt *mgmt, uint16_t index, @@ -2660,7 +2660,8 @@ struct mgmt_cp_set_public_address cp; if (argc < 2) { - printf("Usage: btmgmt public-addr
\n"); + printf("Usage: btmgmt public-addr ??:??:??:??:??:??\n" + "Note: interface must be down for this to work\n"); exit(EXIT_FAILURE); } @@ -2934,7 +2935,7 @@ static void add_device_usage(void) { - printf("Usage: btmgmt add-device [-a action] [-t type]
\n"); + printf("Usage: btmgmt add-device [-a action] [-t type] ??:??:??:??:??:??\n"); } static struct option add_device_options[] = { @@ -3007,7 +3008,7 @@ static void del_device_usage(void) { - printf("Usage: btmgmt del-device [-t type]
\n"); + printf("Usage: btmgmt del-device [-t type] ??:??:??:??:??:??\n"); } static struct option del_device_options[] = { @@ -3153,7 +3154,7 @@ printf("\n" "For more information on the usage of each command use:\n" - "\tbtmgmt --help\n" ); + "\tbtmgmt \n" ); } static struct option main_options[] = {