File tree Expand file tree Collapse file tree 7 files changed +13
-0
lines changed
drivers/net/wireless/ath/ath10k Expand file tree Collapse file tree 7 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -806,6 +806,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
806
806
807
807
ath10k_pci_ce_deinit (ar );
808
808
809
+ bus_params .dev_type = ATH10K_DEV_TYPE_LL ;
809
810
bus_params .chip_id = ath10k_ahb_soc_read32 (ar , SOC_CHIP_ID_ADDRESS );
810
811
if (bus_params .chip_id == 0xffffffff ) {
811
812
ath10k_err (ar , "failed to get chip id\n" );
Original file line number Diff line number Diff line change @@ -2928,6 +2928,7 @@ int ath10k_core_register(struct ath10k *ar,
2928
2928
const struct ath10k_bus_params * bus_params )
2929
2929
{
2930
2930
ar -> chip_id = bus_params -> chip_id ;
2931
+ ar -> dev_type = bus_params -> dev_type ;
2931
2932
queue_work (ar -> workqueue , & ar -> register_work );
2932
2933
2933
2934
return 0 ;
Original file line number Diff line number Diff line change @@ -915,8 +915,14 @@ struct ath10k_per_peer_tx_stats {
915
915
u32 reserved2 ;
916
916
};
917
917
918
+ enum ath10k_dev_type {
919
+ ATH10K_DEV_TYPE_LL ,
920
+ ATH10K_DEV_TYPE_HL ,
921
+ };
922
+
918
923
struct ath10k_bus_params {
919
924
u32 chip_id ;
925
+ enum ath10k_dev_type dev_type ;
920
926
};
921
927
922
928
struct ath10k {
@@ -929,6 +935,7 @@ struct ath10k {
929
935
enum ath10k_hw_rev hw_rev ;
930
936
u16 dev_id ;
931
937
u32 chip_id ;
938
+ enum ath10k_dev_type dev_type ;
932
939
u32 target_version ;
933
940
u8 fw_version_major ;
934
941
u32 fw_version_minor ;
Original file line number Diff line number Diff line change @@ -3637,6 +3637,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
3637
3637
goto err_free_irq ;
3638
3638
}
3639
3639
3640
+ bus_params .dev_type = ATH10K_DEV_TYPE_LL ;
3640
3641
bus_params .chip_id = ath10k_pci_soc_read32 (ar , SOC_CHIP_ID_ADDRESS );
3641
3642
if (bus_params .chip_id == 0xffffffff ) {
3642
3643
ath10k_err (ar , "failed to get chip id\n" );
Original file line number Diff line number Diff line change @@ -2036,6 +2036,7 @@ static int ath10k_sdio_probe(struct sdio_func *func,
2036
2036
goto err_free_wq ;
2037
2037
}
2038
2038
2039
+ bus_params .dev_type = ATH10K_DEV_TYPE_HL ;
2039
2040
/* TODO: don't know yet how to get chip_id with SDIO */
2040
2041
bus_params .chip_id = 0 ;
2041
2042
ret = ath10k_core_register (ar , & bus_params );
Original file line number Diff line number Diff line change @@ -1351,6 +1351,7 @@ static int ath10k_snoc_probe(struct platform_device *pdev)
1351
1351
goto err_free_irq ;
1352
1352
}
1353
1353
1354
+ bus_params .dev_type = ATH10K_DEV_TYPE_LL ;
1354
1355
bus_params .chip_id = drv_data -> hw_rev ;
1355
1356
ret = ath10k_core_register (ar , & bus_params );
1356
1357
if (ret ) {
Original file line number Diff line number Diff line change @@ -1016,6 +1016,7 @@ static int ath10k_usb_probe(struct usb_interface *interface,
1016
1016
ar -> id .vendor = vendor_id ;
1017
1017
ar -> id .device = product_id ;
1018
1018
1019
+ bus_params .dev_type = ATH10K_DEV_TYPE_HL ;
1019
1020
/* TODO: don't know yet how to get chip_id with USB */
1020
1021
bus_params .chip_id = 0 ;
1021
1022
ret = ath10k_core_register (ar , & bus_params );
You can’t perform that action at this time.
0 commit comments