Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1654581imm; Wed, 26 Sep 2018 23:50:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ezTQDsvyol4Kk5OhuNrHgxMRoOeoPgKUhKQB7a5ZOCQVhrSwFd6myCIWrvQsC8h9eFLhd X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr9613681pla.178.1538031042607; Wed, 26 Sep 2018 23:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538031042; cv=none; d=google.com; s=arc-20160816; b=KBQDwH1632BiYWUOrSqYG3KB8ffBYPc7Mq0yNn22YyHPipWpKtOak+dxjsEpoHxI98 JEfhQrCNxmY63ROhKmhfORfy2775gWOvzdyU2Fc44X/GiZQohWLSN9izbflyKDCmZuXX ptY86fnfHy/zyy/nT5/r+8uhv601N648DNzd8NHNXfpkkXBYWTfHCIfeQ+qi790H23y5 CpASnZVfbgJ+BkwR6TA81q14kQ+R8I3L3xTQUjnoVafzsoFr5hGLx0vvChTljmzQ9yMN UZ75lME/OeVXl4ihnv0rBgP+v0B4ZRkF6RFFobrWFwNECCrIY+ZbVl6WjM7sF55pNgad TQAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QIEoPIZHHSIQBDhoo8Suu3Cyx7R2fm+NJRM1N+060pU=; b=N3GK/juMNkBLC/sxiC0CmbiemEsHcu5nS31ZjHAIh0gwWc93uWfklFbl+MhrcUIojg /mkTcEwExRh5v55lOicowmyCQJS5J7B/USUSB/J9NBOSv7BXEHxxhD6TBVREqpoGWuc3 2XjZITiQZKshgBIhHGVaHOjPvkeT4uTuzVhnhR4pn+hHN3ixMd2ms5pNmS47tlhOLpEW nl030bMMhYS2qqjlbIzSFKKGl8D1/UlYHJtpFizr2hyS2FO6UXp3y4HbXKS8kadvxHle 9QO78W+2K4PKprSbJ2pd7G/Doc7DyFLUzvpTIZpGbB7T8HiRoztajjvIVfTRWp61JQ9I AYmg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si1200746plt.112.2018.09.26.23.50.27; Wed, 26 Sep 2018 23:50:42 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727212AbeI0NG6 (ORCPT + 99 others); Thu, 27 Sep 2018 09:06:58 -0400 Received: from mga14.intel.com ([192.55.52.115]:60416 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeI0NG6 (ORCPT ); Thu, 27 Sep 2018 09:06:58 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2018 23:50:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,309,1534834800"; d="scan'208";a="95202105" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by orsmga002.jf.intel.com with ESMTP; 26 Sep 2018 23:50:03 -0700 Received: by paasikivi.fi.intel.com (Postfix, from userid 1000) id ECCD9209BC; Thu, 27 Sep 2018 09:50:02 +0300 (EEST) Date: Thu, 27 Sep 2018 09:50:02 +0300 From: Sakari Ailus To: Matthias Kaehlcke Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Marcin Wojtas , Andy Shevchenko Andy Shevchenko , Sinan Kaya , Marcel Holtmann , Johan Hedberg , linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, Balakrishna Godavarthi , Loic Poulain , Brian Norris Subject: Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address() Message-ID: <20180927065002.3yzxg6xquapldaqz@paasikivi.fi.intel.com> References: <20180927004810.124185-1-mka@chromium.org> <20180927004810.124185-2-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180927004810.124185-2-mka@chromium.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 05:48:09PM -0700, Matthias Kaehlcke wrote: > Provide an API for Bluetooth drivers to retrieve the Bluetooth Device > address (BD_ADDR) for a device. If the firmware node of the device > has a property 'local-bd-address' the BD address is read from this > property. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Andy Shevchenko > Reviewed-by: Sakari Ailus > --- > Changes in v4: > - move code from driver/base/property.c to net/bluetooth/lib.c > - undo move of bdaddr_t declaration > - merge fwnode_get_bd_address() into device_get_bd_address(). as of now > the function is not needed, it can be created later if necessary > - minor improvements suggested by Sakari > - updated commit message > - added 'Reviewed-by: Sakari Ailus ' tag > > Changes in v3: > - move definition of bdaddr_t to types.h to avoid include of > bluetooth.h from property.h > - add stubs for the new functions > > Changes in v2: > - use bdaddr_t instead of byte pointer + len > - use EXPORT_SYMBOL_GPL for the new functions instead of EXPORT_SYMBOL > - put new functions inside #if IS_ENABLED(CONFIG_BT) > - some new line juggling in property.h > - added 'Reviewed-by: Andy Shevchenko ' tag > --- > include/net/bluetooth/bluetooth.h | 2 ++ > net/bluetooth/lib.c | 34 +++++++++++++++++++++++++++++++ Yeah, this seems like a better place for this stuff indeed. Thanks! -- Sakari Ailus sakari.ailus@linux.intel.com