diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-03 15:24:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:30 -0400 |
commit | f637cfd6bbacbaeab329f9dfc56e9855cc15849d (patch) | |
tree | a3b8bfcf44c70d56996553c6f93ef98bcb82d0ea | |
parent | aa4058aea24efe7aef736cbfb2d9b07de920ca27 (diff) |
ath9k: describe hw initialization better
During initialization ath9k tends to use "attach" to when we
initialize hardware due to the fact we used to attach a "HAL".
The notion of a HAL is long gone, so lets just be clear on what
we are doing.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index aad259b4c197..a613cf46eebc 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
@@ -777,7 +777,7 @@ void ath9k_hw_ani_setup(struct ath_hw *ah) | |||
777 | } | 777 | } |
778 | } | 778 | } |
779 | 779 | ||
780 | void ath9k_hw_ani_attach(struct ath_hw *ah) | 780 | void ath9k_hw_ani_init(struct ath_hw *ah) |
781 | { | 781 | { |
782 | int i; | 782 | int i; |
783 | 783 | ||
diff --git a/drivers/net/wireless/ath/ath9k/ani.h b/drivers/net/wireless/ath/ath9k/ani.h index 08b4e7ed5ff0..803669faaade 100644 --- a/drivers/net/wireless/ath/ath9k/ani.h +++ b/drivers/net/wireless/ath/ath9k/ani.h | |||
@@ -132,7 +132,7 @@ u32 ath9k_hw_GetMibCycleCountsPct(struct ath_hw *ah, u32 *rxc_pcnt, | |||
132 | void ath9k_hw_procmibevent(struct ath_hw *ah, | 132 | void ath9k_hw_procmibevent(struct ath_hw *ah, |
133 | const struct ath9k_node_stats *stats); | 133 | const struct ath9k_node_stats *stats); |
134 | void ath9k_hw_ani_setup(struct ath_hw *ah); | 134 | void ath9k_hw_ani_setup(struct ath_hw *ah); |
135 | void ath9k_hw_ani_attach(struct ath_hw *ah); | 135 | void ath9k_hw_ani_init(struct ath_hw *ah); |
136 | void ath9k_hw_ani_detach(struct ath_hw *ah); | 136 | void ath9k_hw_ani_detach(struct ath_hw *ah); |
137 | 137 | ||
138 | #endif /* ANI_H */ | 138 | #endif /* ANI_H */ |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c index 6fb1a8034b3c..e8ccec0dea13 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.c +++ b/drivers/net/wireless/ath/ath9k/eeprom.c | |||
@@ -3978,7 +3978,7 @@ static struct eeprom_ops eep_AR9287_ops = { | |||
3978 | }; | 3978 | }; |
3979 | 3979 | ||
3980 | 3980 | ||
3981 | int ath9k_hw_eeprom_attach(struct ath_hw *ah) | 3981 | int ath9k_hw_eeprom_init(struct ath_hw *ah) |
3982 | { | 3982 | { |
3983 | int status; | 3983 | int status; |
3984 | if (AR_SREV_9287(ah)) { | 3984 | if (AR_SREV_9287(ah)) { |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 7ddd016a99ff..335098d16a71 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -665,6 +665,6 @@ struct eeprom_ops { | |||
665 | (((_txchainmask >> 2) & 1) + \ | 665 | (((_txchainmask >> 2) & 1) + \ |
666 | ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) | 666 | ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) |
667 | 667 | ||
668 | int ath9k_hw_eeprom_attach(struct ath_hw *ah); | 668 | int ath9k_hw_eeprom_init(struct ath_hw *ah); |
669 | 669 | ||
670 | #endif /* EEPROM_H */ | 670 | #endif /* EEPROM_H */ |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index f280eef736b4..65d2e7d059ae 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -578,7 +578,7 @@ static void ath9k_hw_init_txgain_ini(struct ath_hw *ah) | |||
578 | } | 578 | } |
579 | } | 579 | } |
580 | 580 | ||
581 | static int ath9k_hw_post_attach(struct ath_hw *ah) | 581 | static int ath9k_hw_post_init(struct ath_hw *ah) |
582 | { | 582 | { |
583 | int ecode; | 583 | int ecode; |
584 | 584 | ||
@@ -589,7 +589,7 @@ static int ath9k_hw_post_attach(struct ath_hw *ah) | |||
589 | if (ecode != 0) | 589 | if (ecode != 0) |
590 | return ecode; | 590 | return ecode; |
591 | 591 | ||
592 | ecode = ath9k_hw_eeprom_attach(ah); | 592 | ecode = ath9k_hw_eeprom_init(ah); |
593 | if (ecode != 0) | 593 | if (ecode != 0) |
594 | return ecode; | 594 | return ecode; |
595 | 595 | ||
@@ -602,7 +602,7 @@ static int ath9k_hw_post_attach(struct ath_hw *ah) | |||
602 | 602 | ||
603 | if (!AR_SREV_9100(ah)) { | 603 | if (!AR_SREV_9100(ah)) { |
604 | ath9k_hw_ani_setup(ah); | 604 | ath9k_hw_ani_setup(ah); |
605 | ath9k_hw_ani_attach(ah); | 605 | ath9k_hw_ani_init(ah); |
606 | } | 606 | } |
607 | 607 | ||
608 | return 0; | 608 | return 0; |
@@ -896,7 +896,7 @@ static void ath9k_hw_init_11a_eeprom_fix(struct ath_hw *ah) | |||
896 | } | 896 | } |
897 | } | 897 | } |
898 | 898 | ||
899 | int ath9k_hw_attach(struct ath_hw *ah) | 899 | int ath9k_hw_init(struct ath_hw *ah) |
900 | { | 900 | { |
901 | int r; | 901 | int r; |
902 | 902 | ||
@@ -963,7 +963,7 @@ int ath9k_hw_attach(struct ath_hw *ah) | |||
963 | else | 963 | else |
964 | ath9k_hw_disablepcie(ah); | 964 | ath9k_hw_disablepcie(ah); |
965 | 965 | ||
966 | r = ath9k_hw_post_attach(ah); | 966 | r = ath9k_hw_post_init(ah); |
967 | if (r) | 967 | if (r) |
968 | goto bad; | 968 | goto bad; |
969 | 969 | ||
@@ -2930,7 +2930,7 @@ void ath9k_hw_configpcipowersave(struct ath_hw *ah, int restore) | |||
2930 | /* | 2930 | /* |
2931 | * AR9280 2.0 or later chips use SerDes values from the | 2931 | * AR9280 2.0 or later chips use SerDes values from the |
2932 | * initvals.h initialized depending on chipset during | 2932 | * initvals.h initialized depending on chipset during |
2933 | * ath9k_hw_attach() | 2933 | * ath9k_hw_init() |
2934 | */ | 2934 | */ |
2935 | for (i = 0; i < ah->iniPcieSerdes.ia_rows; i++) { | 2935 | for (i = 0; i < ah->iniPcieSerdes.ia_rows; i++) { |
2936 | REG_WRITE(ah, INI_RA(&ah->iniPcieSerdes, i, 0), | 2936 | REG_WRITE(ah, INI_RA(&ah->iniPcieSerdes, i, 0), |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 35cf9f840eb3..4c78e8cd0397 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -541,10 +541,10 @@ struct ath_hw { | |||
541 | struct ar5416IniArray iniModesTxGain; | 541 | struct ar5416IniArray iniModesTxGain; |
542 | }; | 542 | }; |
543 | 543 | ||
544 | /* Attach, Detach, Reset */ | 544 | /* Initialization, Detach, Reset */ |
545 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); | 545 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); |
546 | void ath9k_hw_detach(struct ath_hw *ah); | 546 | void ath9k_hw_detach(struct ath_hw *ah); |
547 | int ath9k_hw_attach(struct ath_hw *ah); | 547 | int ath9k_hw_init(struct ath_hw *ah); |
548 | void ath9k_hw_rfdetach(struct ath_hw *ah); | 548 | void ath9k_hw_rfdetach(struct ath_hw *ah); |
549 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | 549 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, |
550 | bool bChannelChange); | 550 | bool bChannelChange); |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 230dedbb2e03..751d803e1bc4 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1332,10 +1332,10 @@ static int ath_init(u16 devid, struct ath_softc *sc) | |||
1332 | ah->hw_version.devid = devid; | 1332 | ah->hw_version.devid = devid; |
1333 | sc->sc_ah = ah; | 1333 | sc->sc_ah = ah; |
1334 | 1334 | ||
1335 | r = ath9k_hw_attach(ah); | 1335 | r = ath9k_hw_init(ah); |
1336 | if (r) { | 1336 | if (r) { |
1337 | DPRINTF(sc, ATH_DBG_FATAL, | 1337 | DPRINTF(sc, ATH_DBG_FATAL, |
1338 | "Unable to attach hardware; " | 1338 | "Unable to initialize hardware; " |
1339 | "initialization status: %d\n", r); | 1339 | "initialization status: %d\n", r); |
1340 | goto bad; | 1340 | goto bad; |
1341 | } | 1341 | } |