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

Commit 0f851bbc authored by Sara Sharon's avatar Sara Sharon Committed by Emmanuel Grumbach
Browse files

iwlwifi: pcie: write to legacy register also in MQ



Due to hardware bug, upon any shadow free-queue register write
access, a legacy RBD shadow register must be written as well.
This is required in order to trigger a copy of the shadow registers
values after MAC exits sleep state.
Specifically, the driver has to write (any value) to the legacy RBD
register each time FRBDCB is accessed.

Signed-off-by: default avatarSara Sharon <sara.sharon@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 24afba76
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -210,7 +210,11 @@ static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans,
	if (trans->cfg->mq_rx_supported)
		iwl_write_prph(trans, RFH_Q_FRBDCB_WIDX(rxq->id),
			       rxq->write_actual);
	else
	/*
	 * write to FH_RSCSR_CHNL0_WPTR register even in MQ as a W/A to
	 * hardware shadow registers bug - writing to RFH_Q_FRBDCB_WIDX will
	 * not wake the NIC.
	 */
	iwl_write32(trans, FH_RSCSR_CHNL0_WPTR, rxq->write_actual);
}