Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19861632rwd; Wed, 28 Jun 2023 15:44:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uTNlTDDXlVYtGLMWM6sCFAIn2b+Y80splWBta16edd5Lh/CGTKL0ziR6h5cj1/Cl0QWMt X-Received: by 2002:a05:6a20:4323:b0:105:6d0e:c046 with SMTP id h35-20020a056a20432300b001056d0ec046mr46725025pzk.26.1687992286346; Wed, 28 Jun 2023 15:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687992286; cv=none; d=google.com; s=arc-20160816; b=BsxW4zRBPyhTrFyiyx1tWp94OZbVrwfBP242yTH8rB6ytU50TWa1K2AekeJmSNtr+N pqryFKufkAkBPk4wGJD1yjxPlT5XxolgmG+hhqqlMWdNClM8PkFU97srHcoeVfhMNrAH RvPGizDR7zRi6wsMglvd5p7SX7/gY8HecIXfiMt4sukv4IpsNTFBgk5ectw3yjfJc4+b YZYkSoMIFDBvQHT7O26BmyVzDogRTKDpH+dCBpWWZHe4xOQtFifQmRH/QdhAHMeLFQvj x/EiWIHPXE8eYoMMZmFcPBhLo6PrlSE9GV2DlADTJ3ozyAWfCIGdkMRLNnY0QRqPlRrW 6CRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=AVQsc8+bHT3ltu3x990qHGiaeqTmQMSDyc6zm8IbuPg=; fh=c6apAGwLQrjivLNeivNSzKn2C0FxC6FkYoLz+a48/pU=; b=aF498cpfuqvkFG6WOHwMeoQo6yooS2uOl8OS6CosG/TVZNRu9ohMMw6/Uo28kg5fxp IJ1PS2g6cjk3JLCvBC6a0MBhGW/m5/pbpZo0WurUXAhj6TE3L9Loyi8ltEjkArIcxpav ieoRKGKDqyybprT17jhYQyk/2cZ09DqIV9bEzq845EuQ/iOTwdTL2vF9yXr+Q6HAVLLM /fBwQZcdaIfPSKPLCuA9f1l4+JFfZOD41+KkM/mfgOCjKSSaGur6cnbwkAWUm/deaJpT 1Av9OnanjVtm1pH4mLF6ST63sAOiGPItDMfUMSzwoj6Y37y76PjwGaD4l/T2tawHb++P dSvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q12-20020a632a0c000000b00557523b8fa1si9913493pgq.880.2023.06.28.15.44.01; Wed, 28 Jun 2023 15:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjF1W3d (ORCPT + 99 others); Wed, 28 Jun 2023 18:29:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjF1W3U (ORCPT ); Wed, 28 Jun 2023 18:29:20 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4998C213D; Wed, 28 Jun 2023 15:29:18 -0700 (PDT) Received: from [192.168.0.2] (ip5f5aeb11.dynamic.kabel-deutschland.de [95.90.235.17]) (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 A7C8E61E5FE03; Thu, 29 Jun 2023 00:28:16 +0200 (CEST) Message-ID: <20b61d77-7397-e3ba-3215-232f49eb8c07@molgen.mpg.de> Date: Thu, 29 Jun 2023 00:28:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3] Bluetooth: btmtk: add printing firmware information To: Sean Wang , Chris Lu Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, Soul.Huang@mediatek.com, Leon.Yen@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, Eddie.Chen@mediatek.com, ch.yeh@mediatek.com, jenhao.yang@mediatek.com, Stella.Chang@mediatek.com, Tom.Chou@mediatek.com, steve.lee@mediatek.com, jsiuda@google.com, frankgor@google.com, abhishekpandit@google.com, michaelfsun@google.com, mmandlik@google.com, abhishekpandit@chromium.org, mcchou@chromium.org, shawnku@google.com, linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org References: <1c40a12b51ccd6ee2ee002276f5b1ba92c377100.1687990098.git.objelf@gmail.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <1c40a12b51ccd6ee2ee002276f5b1ba92c377100.1687990098.git.objelf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Sean, dear Chris, Thank you for your patch. Am 29.06.23 um 00:20 schrieb sean.wang@mediatek.com: > From: Chris Lu > > Add printing firmware information part when driver loading firmware that > user can get mediatek bluetooth information. Maybe use the commit message summary/title below: Bluetooth: btmtk: Log hw/sw version and fw build time Maybe also paste one log message example to the commit message. > Co-developed-by: Sean Wang > Signed-off-by: Sean Wang > Signed-off-by: Chris Lu > --- > v3: resend again with the latest tree > --- > drivers/bluetooth/btmtk.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c > index 9482401d97fa..8490d59502a5 100644 > --- a/drivers/bluetooth/btmtk.c > +++ b/drivers/bluetooth/btmtk.c > @@ -57,6 +57,7 @@ int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname, > wmt_cmd_sync_func_t wmt_cmd_sync) > { > struct btmtk_hci_wmt_params wmt_params; > + struct btmtk_patch_header *hdr; > struct btmtk_global_desc *globaldesc = NULL; > struct btmtk_section_map *sectionmap; > const struct firmware *fw; > @@ -75,9 +76,13 @@ int btmtk_setup_firmware_79xx(struct hci_dev *hdev, const char *fwname, > > fw_ptr = fw->data; > fw_bin_ptr = fw_ptr; > + hdr = (struct btmtk_patch_header *)fw_ptr; > globaldesc = (struct btmtk_global_desc *)(fw_ptr + MTK_FW_ROM_PATCH_HEADER_SIZE); > section_num = le32_to_cpu(globaldesc->section_num); > > + bt_dev_info(hdev, "HW/SW Version: 0x%04x%04x, Build Time: %s", Why not print 0x%04x/0x%04x, that means with a slash? > + le16_to_cpu(hdr->hwver), le16_to_cpu(hdr->swver), hdr->datetime); > + > for (i = 0; i < section_num; i++) { > first_block = 1; > fw_ptr = fw_bin_ptr; Kind regards, Paul