• Kiran K's avatar
    Bluetooth: btintel_pcie: Add *setup* function to download firmware · 6e65a09f
    Kiran K authored
    Add support to download firmware.
    
    dmesg:
    [4.407464] Bluetooth: Core ver 2.22
    [4.407467] Bluetooth: Starting self testing
    [4.409093] Bluetooth: ECDH test passed in 1587 usecs
    [4.420737] Bluetooth: SMP test passed in 526 usecs
    [4.420745] Bluetooth: Finished self testing
    [4.420760] Bluetooth: HCI device and connection manager initialized
    [4.420764] Bluetooth: HCI socket layer initialized
    [4.420766] Bluetooth: L2CAP socket layer initialized
    [4.420769] Bluetooth: SCO socket layer initialized
    [4.437976] Bluetooth: hci0: Device revision is 0
    [4.437979] Bluetooth: hci0: Secure boot is disabled
    [4.437980] Bluetooth: hci0: OTP lock is disabled
    [4.437980] Bluetooth: hci0: API lock is disabled
    [4.437981] Bluetooth: hci0: Debug lock is disabled
    [4.437981] Bluetooth: hci0: Minimum firmware build 0 week 0 2000
    [4.437982] Bluetooth: hci0: Bootloader timestamp 2023.33 buildtype 1 build 45995
    [4.439461] Bluetooth: hci0: Found device firmware: intel/ibt-0190-0291-iml.sfi
    [4.439467] Bluetooth: hci0: Boot Address: 0x30099000
    [4.439468] Bluetooth: hci0: Firmware Version: 92-19.24
    [4.486773] Bluetooth: hci0: Waiting for firmware download to complete
    [4.486784] Bluetooth: hci0: Firmware loaded in 46209 usecs
    [4.486845] Bluetooth: hci0: Waiting for device to boot
    [4.491984] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
    [4.491987] Bluetooth: hci0: Device booted in 5074 usecs
    [4.496657] Bluetooth: hci0: Found device firmware: intel/ibt-0190-0291.sfi
    [4.496703] Bluetooth: hci0: Boot Address: 0x10000800
    [4.496704] Bluetooth: hci0: Firmware Version: 92-19.24
    [4.687338] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [4.687342] Bluetooth: BNEP filters: protocol multicast
    [4.687345] Bluetooth: BNEP socket layer initialized
    [4.922589] Bluetooth: hci0: Waiting for firmware download to complete
    [4.922608] Bluetooth: hci0: Firmware loaded in 415962 usecs
    [4.922664] Bluetooth: hci0: Waiting for device to boot
    [4.956185] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
    [4.956188] Bluetooth: hci0: Device booted in 32770 usecs
    [4.963167] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0190-0291.ddc
    [4.963440] Bluetooth: hci0: Applying Intel DDC parameters completed
    [4.963684] Bluetooth: hci0: Firmware timestamp 2024.18 buildtype 3 build 62300
    [4.963687] Bluetooth: hci0: Firmware SHA1: 0x8201a4cd
    [5.003020] Bluetooth: MGMT ver 1.22
    [5.003084] Bluetooth: ISO socket layer initialized
    [5.057844] Bluetooth: RFCOMM TTY layer initialized
    [5.057858] Bluetooth: RFCOMM socket layer initialized
    [5.057865] Bluetooth: RFCOMM ver 1.11
    
    hciconfig -a:
    hci0:   Type: Primary  Bus: PCI
            BD Address: A0:D3:65:48:F5:7F  ACL MTU: 1021:5  SCO MTU: 240:8
            UP RUNNING PSCAN
            RX bytes:23603 acl:0 sco:0 events:3792 errors:0
            TX bytes:949804 acl:0 sco:0 commands:3788 errors:0
            Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
            Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
            Link policy: RSWITCH SNIFF
            Link mode: PERIPHERAL ACCEPT
            Name: 'LNLM620'
            Class: 0x20010c
            Service Classes: Audio
            Device Class: Computer, Laptop
            HCI Version: 5.4 (0xd)  Revision: 0x4b5c
            LMP Version: 5.4 (0xd)  Subversion: 0x4b5c
            Manufacturer: Intel Corp. (2)
    Signed-off-by: default avatarChandrashekar <chandrashekar.devegowda@intel.com>
    Suggested-by: default avatarBjorn Helgaas <helgaas@kernel.org>
    Signed-off-by: default avatarKiran K <kiran.k@intel.com>
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    6e65a09f
btintel_pcie.c 35.2 KB