mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
Bluetooth: btintel_pcie: clear the GP0 cause with a W1C write
MSIX_HW_INT_CAUSES is a write-one-to-clear register. Using a
read-modify-write helper writes zero to GP0, leaving the cause uncleared,
and can acknowledge unrelated pending causes through the read value.
Write only the GP0 bit directly, matching the interrupt handler's W1C
acknowledgment convention.
Fixes: 88c6216a52 ("Bluetooth: btintel_pcie: Suspend/Resume: Controller doorbell interrupt handling")
Signed-off-by: Ravindra <ravindra@intel.com>
Tested-by: Sergey Lebedev <lsa.uz@pm.me>
Reviewed-by: Sergey Lebedev <lsa.uz@pm.me>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
4f6ead67b9
commit
f2cee6e2aa
|
|
@ -4234,10 +4234,12 @@ static int btintel_pcie_set_dxstate(struct btintel_pcie_data *data, u32 dxstate)
|
|||
"Timeout (%u ms) on alive interrupt for D%d entry, retry count %d",
|
||||
dx_intr_timeout_ms, dxstate, retry);
|
||||
|
||||
/* clear gp0 cause */
|
||||
btintel_pcie_clr_reg_bits(data,
|
||||
BTINTEL_PCIE_CSR_MSIX_HW_INT_CAUSES,
|
||||
BTINTEL_PCIE_MSIX_HW_INT_CAUSES_GP0);
|
||||
/* MSIX_HW_INT_CAUSES is W1C. Write only GP0 so other
|
||||
* pending causes are not acknowledged here.
|
||||
*/
|
||||
btintel_pcie_wr_reg32(data,
|
||||
BTINTEL_PCIE_CSR_MSIX_HW_INT_CAUSES,
|
||||
BTINTEL_PCIE_MSIX_HW_INT_CAUSES_GP0);
|
||||
}
|
||||
|
||||
/* gp0_received is set at the top of the handler, before the switch on
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user