Commit 35191a0f authored by Kiran K's avatar Kiran K Committed by Marcel Holtmann
Browse files

Bluetooth: btintel: Read boot address irrespective of controller mode



Boot address was not getting updated when controller is present
in boot mode which is required to move the controller from boot mode
to operation mode after firmware download. This patch reads boot address
even if controller is present in boot mode.

Signed-off-by: default avatarKiran K <kiran.k@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 15a91f91
Loading
Loading
Loading
Loading
+10 −16
Original line number Diff line number Diff line
@@ -1072,9 +1072,6 @@ int btintel_download_firmware(struct hci_dev *hdev,
		/* Skip version checking */
		break;
	default:
		/* Skip reading firmware file version in bootloader mode */
		if (ver->fw_variant == 0x06)
			break;

		/* Skip download if firmware has the same version */
		if (btintel_firmware_version(hdev, ver->fw_build_num,
@@ -1115,8 +1112,6 @@ static int btintel_download_fw_tlv(struct hci_dev *hdev,
	int err;
	u32 css_header_ver;

	/* Skip reading firmware file version in bootloader mode */
	if (ver->img_type != 0x01) {
	/* Skip download if firmware has the same version */
	if (btintel_firmware_version(hdev, ver->min_fw_build_nn,
				     ver->min_fw_build_cw,
@@ -1128,7 +1123,6 @@ static int btintel_download_fw_tlv(struct hci_dev *hdev,
		 */
		return -EALREADY;
	}
	}

	/* The firmware variant determines if the device is in bootloader
	 * mode or is running operational firmware. The value 0x01 identifies