Commit fa982cfb authored by Peng Chen's avatar Peng Chen Committed by Jiri Slaby

Bluetooth: Fix endianess issue in the ath3k driver

commit b9e2535a upstream.

The version is always in little endian format. This patch makes the
driver work on both little and big endian CPUs.
Signed-off-by: default avatarPeng Chen <pengchen@qca.qualcomm.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 33055088
...@@ -356,7 +356,7 @@ static int ath3k_load_patch(struct usb_device *udev) ...@@ -356,7 +356,7 @@ static int ath3k_load_patch(struct usb_device *udev)
} }
snprintf(filename, ATH3K_NAME_LEN, "ar3k/AthrBT_0x%08x.dfu", snprintf(filename, ATH3K_NAME_LEN, "ar3k/AthrBT_0x%08x.dfu",
fw_version.rom_version); le32_to_cpu(fw_version.rom_version));
ret = request_firmware(&firmware, filename, &udev->dev); ret = request_firmware(&firmware, filename, &udev->dev);
if (ret < 0) { if (ret < 0) {
...@@ -418,7 +418,7 @@ static int ath3k_load_syscfg(struct usb_device *udev) ...@@ -418,7 +418,7 @@ static int ath3k_load_syscfg(struct usb_device *udev)
} }
snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s", snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s",
fw_version.rom_version, clk_value, ".dfu"); le32_to_cpu(fw_version.rom_version), clk_value, ".dfu");
ret = request_firmware(&firmware, filename, &udev->dev); ret = request_firmware(&firmware, filename, &udev->dev);
if (ret < 0) { if (ret < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment