Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10d23db4 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: update comment regarding warm reset



The old comment was a little out of date. HTT Rx
ring is a more relevant problem when stopping
transport layer.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 728f95ee
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -1243,11 +1243,10 @@ static void ath10k_pci_hif_stop(struct ath10k *ar)
	ath10k_pci_irq_disable(ar);
	ath10k_pci_irq_disable(ar);
	ath10k_pci_flush(ar);
	ath10k_pci_flush(ar);


	/* Make the sure the device won't access any structures on the host by
	/* Most likely the device has HTT Rx ring configured. The only way to
	 * resetting it. The device was fed with PCI CE ringbuffer
	 * prevent the device from accessing (and possible corrupting) host
	 * configuration during init. If ringbuffers are freed and the device
	 * memory is to reset the chip now.
	 * were to access them this could lead to memory corruption on the
	 */
	 * host. */
	ath10k_pci_warm_reset(ar);
	ath10k_pci_warm_reset(ar);


	ar_pci->started = 0;
	ar_pci->started = 0;