Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2089318lqt; Mon, 22 Apr 2024 00:33:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYY5/qOQrpQ1U6w4v/XKggKukZA9KlFqt79ESe0xi7gwIN8BJcq7YkhlZroZ5Ne21TY28lByF+nitSaDmrPZuAuqVO8KVQLlL7brkzEQ== X-Google-Smtp-Source: AGHT+IE0Bo1G0KNPcuskC5zmY+VuRcUq/4h3d5ln9GwTh/6YgIVdKu64cd16hJRhJE+UJsT5Qm/c X-Received: by 2002:aca:1113:0:b0:3c4:dba6:6190 with SMTP id 19-20020aca1113000000b003c4dba66190mr10195076oir.47.1713771193686; Mon, 22 Apr 2024 00:33:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713771193; cv=pass; d=google.com; s=arc-20160816; b=dkYiNYoC9unQkFXm0xkIhyxXsf3F+YNCqPeeGSouLYQREeKVLRTeU0zoV3evDtrI6S vQ+Hsu33fRhyx9tCnM/zU0jZZEO3h7UBD5bY7Al+rfSTen96+Wq03qBZezGPtd101kST RAGne6Y64GC+umDAhq+aZzadN1unbw7y1HUMYVZusvNmLrp4Fy6VeI7IY0/EiarH0aDr fyY1KVP3hcB9OAKxQuUeUimVnFDv+igTZ10ZbtrQyhKFWXVF4v/rHz7qVWznfzO3Sdh7 6f4YLT59ts6xziTVqEXudfx0z96pj1NM6wET8LCrEHlUMUPIA546QVMB+vwan1MI3u/0 ZQIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=5tdZrkV4ugT0iYemtnIsqcd9N7v2rOdePJYzl+BH4Zk=; fh=ZQTMwvx87iB99qru6YT3mA65TQM6MMeEHr8A7mdsBh0=; b=wOUb6DDH1H6vZeAHXyPPOSvxwWOiEiBRSjFqgexVVchHfrv8DbLjotHuxOFgQoXgzO afrLWpekkVkWhBG4NjxPMiEpLk/Mm7P9Q0rkLjtyF8hIn4G2xZT0Sb+ANWjns/4v0Tss Jgx0cQTmWTopv6s/mV9kDlO2CEXWgJ4V2gCEinw5NSeYiJWbIhhFMTpJipz6dD3wfs7b yD6mQKgzg7vGQvaUzOe01+9JTcgLiEEP6e/rSqnHX48qUVdIu1jLPTxVj04q6iu9e1zk b7gnrW3u5n01RenwFUcnEAvj8IAQt9xrYwyIm9TmOzdUHTfaDqMCLLbb/9QanPn83bwc fA3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-3830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3830-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q26-20020a63751a000000b005f807dfdb0fsi4401412pgc.222.2024.04.22.00.33.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-bluetooth+bounces-3830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3830-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BFC22831E9 for ; Mon, 22 Apr 2024 07:33:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2D8E4CB35; Mon, 22 Apr 2024 07:33:04 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB856482CA; Mon, 22 Apr 2024 07:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771184; cv=none; b=FkRCOM9+qRrMoZ1jXpdIrz6jkZIgKNN64bcs599V1LOyj8Epwbj1LCXpTgLJXK9xDT2hqxcFur8jNsEd6kJVM86cvRV4Ki1Fex5XHrRNmclBT2arEOQawuy/dPZ6cDDfvc0GNnx5MSCPrONbOVQT95m0y6uvbJlvUZpVyNIkxBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713771184; c=relaxed/simple; bh=aypG6bs6Wzxn78bIcan0Wy8naV63+hfk5083L3Gs2nA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QfBSovpsKpWkN9JvWp49AgHCnfBT4q0FprUIycg8TjvK4tTA34pDrvg6t8ny7ccD4WD68nJjLbnC7WIHor4vhz2h5EBUy2mHE3dA3/9pW9M6QQ5jADwvszZND6Y7146XKLjf4Mta0m4g2dZOg5e7ZwdMCm90HQFDtfZqnWUo3DE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.6] (unknown [95.90.245.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 561E861E5FE04; Mon, 22 Apr 2024 09:32:48 +0200 (CEST) Message-ID: <687c8f6a-d5d6-4918-bfd5-93d4b04da086@molgen.mpg.de> Date: Mon, 22 Apr 2024 09:32:47 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Bluetooth: Populate hci_set_hw_info for Intel and Realtek To: Archie Pusaka , Archie Pusaka Cc: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz , Johan Hedberg , Marcel Holtmann , chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi , linux-kernel@vger.kernel.org References: <20240422152413.1.Ib96985e197f3db620a127a84aa20f3f3017aaf57@changeid> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240422152413.1.Ib96985e197f3db620a127a84aa20f3f3017aaf57@changeid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Dear Archie, Thank you for your patch. Am 22.04.24 um 09:24 schrieb Archie Pusaka: > From: Archie Pusaka > > The hardware information surfaced via debugfs might be usable by the > userspace to set some configuration knobs. This patch sets the hw_info > for Intel and Realtek chipsets. Could you please add an example paste to the commit message? > Signed-off-by: Archie Pusaka > Reviewed-by: Abhishek Pandit-Subedi > > --- > > drivers/bluetooth/btintel.c | 9 +++++++++ > drivers/bluetooth/btrtl.c | 7 +++++++ > 2 files changed, 16 insertions(+) > > diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c > index a19ebe47bd951..dc48352166a52 100644 > --- a/drivers/bluetooth/btintel.c > +++ b/drivers/bluetooth/btintel.c > @@ -2956,6 +2956,11 @@ static int btintel_setup_combined(struct hci_dev *hdev) > err = -EINVAL; > } > > + hci_set_hw_info(hdev, > + "INTEL platform=%u variant=%u revision=%u", > + ver.hw_platform, ver.hw_variant, > + ver.hw_revision); > + > goto exit_error; > } > > @@ -3060,6 +3065,10 @@ static int btintel_setup_combined(struct hci_dev *hdev) > break; > } > > + hci_set_hw_info(hdev, "INTEL platform=%u variant=%u", > + INTEL_HW_PLATFORM(ver_tlv.cnvi_bt), > + INTEL_HW_VARIANT(ver_tlv.cnvi_bt)); > + Why does it need to be added at two places? > exit_error: > kfree_skb(skb); > > diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c > index cc50de69e8dc9..4f1e37b4f7802 100644 > --- a/drivers/bluetooth/btrtl.c > +++ b/drivers/bluetooth/btrtl.c > @@ -1339,6 +1339,13 @@ int btrtl_setup_realtek(struct hci_dev *hdev) > > btrtl_set_quirks(hdev, btrtl_dev); > > + hci_set_hw_info(hdev, > + "RTL lmp_subver=%u hci_rev=%u hci_ver=%u hci_bus=%u", > + btrtl_dev->ic_info->lmp_subver, > + btrtl_dev->ic_info->hci_rev, > + btrtl_dev->ic_info->hci_ver, > + btrtl_dev->ic_info->hci_bus); > + > btrtl_free(btrtl_dev); > return ret; > } Kind regards, Paul