freebsd-dev/sys/dev/ath/ath_hal
Adrian Chadd 8c01c3dc46 [ath] [ath_hal] Propagate the HAL_RESET_TYPE through to the chip reset; set it during ath_reset()
Although I added the reset type field to ath_hal_reset() years ago,
I never finished adding it both throughout the HALs and in if_ath.c.

This will eventually deprecate the ath_hal force_full_reset option
because it can be requested at the driver layer.

So:

* Teach ar5416ChipReset() and ar9300_chip_reset() about the HAL type
* Use it in ar5416Reset() and ar9300_reset() when doing a full chip reset
* Extend ath_reset() to include the HAL_RESET_TYPE parameter added in the above functions
* Use HAL_RESET_NORMAL in most calls to ath_reset()
* .. but use HAL_RESET_BBPANIC for the BB panics, and HAL_RESET_FORCE_COLD during fatal, beacon miss and other hardware related hangs.

This should be a glorified no-op outside of actual hardware issues.
I've tested things with ath_hal force_full_reset set to 1 for years now,
so I know that feature and a full reset works (albeit much slower than
a warm reset!) and it does unwedge hardware.

The eventual aim is to use this for all the places where the driver
detects a potential hang as well as if long calibration - ie, noise floor
calibration - fails to complete. That's one of the big hardware related
things that causes station mode operation to hang without easy recovery.

Differential Revision:	https://reviews.freebsd.org/D24981
2020-05-25 22:31:45 +00:00
..
ah_regdomain SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5210 [ath] [ath_hal] [ath_hal_9300] Extend the start PCU receive to handle resetting ANI. 2019-04-21 02:36:01 +00:00
ar5211 [ath] [ath_hal] [ath_hal_9300] Extend the start PCU receive to handle resetting ANI. 2019-04-21 02:36:01 +00:00
ar5212 [ath] [ath_hal] [ath_hal_9300] Extend the start PCU receive to handle resetting ANI. 2019-04-21 02:36:01 +00:00
ar5312 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ar5416 [ath] [ath_hal] Propagate the HAL_RESET_TYPE through to the chip reset; set it during ath_reset() 2020-05-25 22:31:45 +00:00
ar9001 [ath] [ath_hal] Propagate the HAL_RESET_TYPE through to the chip reset; set it during ath_reset() 2020-05-25 22:31:45 +00:00
ar9002 [ath] [ath_hal] Propagate the HAL_RESET_TYPE through to the chip reset; set it during ath_reset() 2020-05-25 22:31:45 +00:00
ar9003 SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_btcoex.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_debug.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_decode.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_desc.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_devid.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_diagcodes.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_9287.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_9287.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v1.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v1.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v3.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v3.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v4k.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v4k.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v14.c SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom_v14.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_eeprom.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_internal.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_regdomain.c ath_hal: fix typo in ath_hal_printf 2020-03-18 03:14:17 +00:00
ah_regdomain.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah_soc.h SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
ah.c [ath_hal] Fix queue bits a bit 2019-05-28 18:05:10 +00:00
ah.h [ath_hal] [ath_hal_ar9300] Fix endian macros to work in and out of kernel tree. 2020-05-12 02:20:27 +00:00