ath10k: Switch to use new generic UUID API
PATCH 1/1 ath10k: Switch to use new generic UUID API
There are new types and helpers that are supposed to be used in new code.
As a preparation to get rid of legacy types and API functions do the conversion here.
--- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net/wireless/ath/ath10k/debug.c | 6 +++--- drivers/net/wireless/ath/ath10k/pci.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/net/wireless/ath/ath10k/core.h +1 -1
@@ -459,7 +459,7 @@ struct ath10k_ce_crash_hdr {struct ath10k_fw_crash_data {bool crashed_since_read; -uuid_le uuid; +guid_t guid;struct timespec timestamp;__le32 registers[REG_DUMP_COUNT_QCA988X ];struct ath10k_ce_crash_data ce_crash_data[CE_COUNT_MAX ];
drivers/net/wireless/ath/ath10k/debug.c +3 -3
@@ -70,7 +70,7 @@ struct ath10k_dump_file_data {/* some info we can get from ath10k struct that might help */ -u8 uuid[16 ]; +guid_t guid;__le32 chip_id;
@@ -719,7 +719,7 @@ ath10k_debug_get_new_fw_crash_data(struct ath10k *ar)lockdep_assert_held (&ar->data_lock); crash_data->crashed_since_read = true; -uuid_le_gen (&crash_data->uuid); +guid_gen (&crash_data->guid);getnstimeofday (&crash_data->timestamp);return crash_data;
@@ -766,7 +766,7 @@ static struct ath10k_dump_file_data *ath10k_build_dump_file(struct ath10k *ar, dump_data->version =cpu_to_le32 (ATH10K_FW_CRASH_DUMP_VERSION ); -memcpy (dump_data->uuid, &crash_data->uuid,sizeof (dump_data->uuid)); +guid_copy (&dump_data->guid, &crash_data->guid); dump_data->chip_id =cpu_to_le32 (ar->chip_id); dump_data->bus_type =cpu_to_le32 (0 ); dump_data->target_version =cpu_to_le32 (ar->target_version);
drivers/net/wireless/ath/ath10k/pci.c +4 -4
@@ -1463,7 +1463,7 @@ static void ath10k_pci_dump_registers(struct ath10k *ar,static void ath10k_pci_fw_crashed_dump (struct ath10k *ar) {struct ath10k_fw_crash_data *crash_data; -char uuid[50 ]; +char guid[UUID_STRING_LEN +1 ];spin_lock_bh (&ar->data_lock);
@@ -1472,11 +1472,11 @@ static void ath10k_pci_fw_crashed_dump(struct ath10k *ar) crash_data =ath10k_debug_get_new_fw_crash_data (ar);if (crash_data) -scnprintf (uuid,sizeof (uuid),"%pUl" , &crash_data->uuid); +scnprintf (guid,sizeof (guid),"%pUl" , &crash_data->guid);else -scnprintf (uuid,sizeof (uuid),"n/a" ); +scnprintf (guid,sizeof (guid),"n/a" ); -ath10k_err (ar,"firmware crashed! (uuid %s)\n" , uuid); +ath10k_err (ar,"firmware crashed! (guid %s)\n" , guid);ath10k_print_driver_info (ar);ath10k_pci_dump_registers (ar, crash_data);ath10k_ce_dump_registers (ar, crash_data);
Signature · 1 line
2.13.2
Quoted 6 lines · Andy Shevchenko
There are new types and helpers that are supposed to be used in new code.
As a preparation to get rid of legacy types and API functions do the conversion here.
Signed-off-by Andy Shevchenko <[email protected]>
To which tree are you planning to submit this? Can I take this to my ath.git tree?
--=20
Kalle Valo=
Quoted 5 lines · Kalle Valo
Quoted 3 lines · Andy Shevchenko
There are new types and helpers that are supposed to be used in new code.
Quoted 7 lines
Quoted 4 lines
As a preparation to get rid of legacy types and API functions do the conversion here.
Signed-off-by Andy Shevchenko <[email protected]>To which tree are you planning to submit this? Can I take this to my ath.git tree?
I guess it's precisely for your tree.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 7 lines · Andy Shevchenko
There are new types and helpers that are supposed to be used in new code.
As a preparation to get rid of legacy types and API functions do the conversion here.
Signed-off-by Andy Shevchenko <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
ab3f9c886865 ath10k: switch to use new generic UUID API
Signature · 3 lines
https://patchwork.kernel.org/patch/9876823/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches