OSDN Git Service

ath10k: clean up growing hw checks during safe and full reset
authorVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Mon, 23 May 2016 20:12:43 +0000 (23:12 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 24 May 2016 17:45:01 +0000 (20:45 +0300)
commit0fc7e270523bf3757687e930c02bb46e3dcedde9
tree1987d1caeb1fc3d584bcb9314b327e0ca98ab42d
parent8f09588b2cdc2dfb6e6076fd10708791d6c6bedd
ath10k: clean up growing hw checks during safe and full reset

Store pci chip secific reset funtions in struct ath10k_pci
as callbacks during early ath10k_pci_probe() and use the
callback to perform chip specific resets. This patch essentially
adds two callback in ath10k_pci, one for doing soft reset and
the other for hard reset. By using callbacks we can get rid of
those hw revision checks in ath10k_pci_safe_chip_reset() and
ath10k_pci_chip_reset(). As such this patch does not fix
any issue.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c
drivers/net/wireless/ath/ath10k/pci.h