From: sandeep suresh Date: Wed, 30 Apr 2014 16:57:28 +0800 (SGT) Subject: [ath9k-devel] AR9287 Register state after ath9k_hw_reset() In-Reply-To: References: <1363930368.20988.YahooMailNeo@web193501.mail.sg3.yahoo.com> <1397809367.9224.YahooMailBasic@web193503.mail.sg3.yahoo.com> Message-ID: <1398848248.34633.YahooMailNeo@web193501.mail.sg3.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hello Adrian, ????Thanks for your response. I have noticed the following and wanted to understand if this is normal behavior; please help. ath9k is configured? as a WiFi client. ?I instrumented the code and printed whenever ath9k_hw_reset() is called and the function calling the ath9k_hw_reset() function. AFter calling the wpa_supplicant package to enroll to the WiFi AP, I get the following debug messages: ? Sandeep reset called from ath9k_start() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_set_channel() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_radio_disable() Sandeep: called from ath9k_hw_reset() root at wifi-client# Sandeep reset called from ath_radio_enable() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_radio_disable() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_radio_enable() Sandeep: called from ath9k_hw_reset() Sandeep reset called from ath_set_channel() Sandeep reset called from ath_set_channel() Sandeep: called from ath9k_hw_reset() ? Regards Sandeep Suresh ? From: Adrian Chadd To: sandeep suresh Cc: "ath9k-devel at lists.ath9k.org" Sent: Saturday, 26 April 2014 4:04 AM Subject: Re: AR9287 Register state after ath9k_hw_reset() Hi, I think the GPIO registers aren't cleared after a reset, but the initvals may end up overriding things. You can always add some calls _in_ ath9k_hw_reset() to restore the hardware registers that you're after. That's what it does for other things that need to persist through a hardware reset. -a On 18 April 2014 01:22, sandeep suresh wrote: > Hello All, >? ? ? After the execution of the function ath9k_hw_reset() function, what will be the status of the hardware registers in AR9287? >? ? ? Let us say we had set the GPIO Control & direction registers and also other control registers are initialized. If there is an execution of the ath9k_hw_reset(), will the hardware registers maintain their values before and after calling this function? If there is a loss, rather than initializing multiple function, is there a single ath9k_ function that can be called to restore the hardware registers? > > THanks & regards > Sandeep Suresh. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140430/1456b647/attachment.htm