Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp763767pxu; Mon, 23 Nov 2020 03:38:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyScKHDvG1cjoxdv8hO6C3QmGUWDJbTqvRwNSba4QI0Vv8c0rhBLwezIDAZS8LTxYftNsph X-Received: by 2002:a05:6402:b35:: with SMTP id bo21mr49068610edb.52.1606131519027; Mon, 23 Nov 2020 03:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606131519; cv=none; d=google.com; s=arc-20160816; b=cR1gBDcYbY5IDs0nZjyNr1cbrUmKAfbZDmQivH1314uAf2t9Ucbye6EszN2XcRx0xS kXp+BTkW3IJL3Ftftr2bT+zAqRzeHZeuEuhVt7eqglTrH1GyouA+W2MRUhsCbOHCtF8y ioD5FZF5OfhLrTpoVHo1qvg8aGaygLvQxK5/M0OhkmLR8yvXmMnJPwZbMDoBI0Ie92QW 4m/lI4mS+IKa+HayDuhd3lbROkwc0oRSknwbdLcwubQ9LKDcYymHh0zmrZp9zp4bG2sI j3IHMjf4Gsohq89OqsqNeJoOp3GCgjwB0iELAzM5pyS1vBKcr1lUA/NueHTfUXWRGcfy OhSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=BymbggjUfzeTmsBumlSID7FOixlwKEq/V/sgs6txkRY=; b=1Gb3/43Wq0TfZBMF2oc1Y2NzofADVoHiGmU8gTsWfLHPSDh9r3yR1kL/BGFLroAOgV VPiWjwiJnwQA3GQYonkIWZXUSjbozJExE1ecle8FMvQfOiN1J/xpbtI68IW07SV5eRoB 3qJFWMvNb1cK/yuLDXds0nt+F4IsqlO4ju1WTrptV3+i+MaveObGW0CWXEfn9vxGhyZj oPjySfc2PKc1Rg9uTmScdE+j0EYLbeNYBslrq/O84QpAf7qfh/xfaRxDRgcMrrg4DB4x K2+VrrYgIo4eoFcfk/jtbHt4VHNCt9T0R6ANtACqH3+5R6nMWs8kirB/MXUBfhB3aQFn Ujig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oo19si6471358ejb.40.2020.11.23.03.38.14; Mon, 23 Nov 2020 03:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728870AbgKWLhe convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Nov 2020 06:37:34 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:54536 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbgKWLhe (ORCPT ); Mon, 23 Nov 2020 06:37:34 -0500 Received: from marcel-macbook.holtmann.net (unknown [37.83.193.87]) by mail.holtmann.org (Postfix) with ESMTPSA id DA3E6CECCF; Mon, 23 Nov 2020 12:44:43 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: Updated fw versions ignored for Intel devices? From: Marcel Holtmann In-Reply-To: <0011e099-4ab0-4705-de1e-cb03953f11ef@gmail.com> Date: Mon, 23 Nov 2020 12:37:31 +0100 Cc: Johan Hedberg , BlueZ development Content-Transfer-Encoding: 8BIT Message-Id: <17CC90CE-CA5F-40B8-8C07-8313A35E944F@holtmann.org> References: <0011e099-4ab0-4705-de1e-cb03953f11ef@gmail.com> To: Heiner Kallweit X-Mailer: Apple Mail (2.3654.20.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Heiner, > In btusb.c we have the following code. I interpret this in a way > that once firmware was loaded the driver will never check for > updated firmware. > Shouldn't the driver always read the firmware file available on > the system and check its version against the firmware version > the device has (and apply it if it's newer)? > But maybe I miss something .. > > bt_dev_info(hdev, "read Intel version: %02x%02x%02x%02x%02x%02x%02x%02x%02x", > ver.hw_platform, ver.hw_variant, ver.hw_revision, > ver.fw_variant, ver.fw_revision, ver.fw_build_num, > ver.fw_build_ww, ver.fw_build_yy, ver.fw_patch_num); > > /* fw_patch_num indicates the version of patch the device currently > * have. If there is no patch data in the device, it is always 0x00. > * So, if it is other than 0x00, no need to patch the device again. > */ > if (ver.fw_patch_num) { > bt_dev_info(hdev, "Intel device is already patched. " > "patch num: %02x", ver.fw_patch_num); > goto complete; > } if you reboot it looses its firmware and things start over again. Regards Marcel