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

Commit 97a11b4b authored by Manu Gautam's avatar Manu Gautam
Browse files

msm: pcie: Restore BME for RC after link_down recovery on SBR



Linkdown recovery sequence clears BME in PCI_COMMAND.
Restore it post link_down reset.

Change-Id: Ife2e40fbe07c4a62c325afe1c844a65e2adca533
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent ef94cac2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5164,7 +5164,10 @@ static void handle_sbr_func(struct work_struct *work)
	} else {
		PCIE_ERR(dev, "PCIe RC%d link initialization failed\n",
			dev->rc_idx);
		return;
	}
	/* restore BME that gets cleared after link_down reset */
	msm_pcie_write_mask(dev->dm_core + PCIE20_COMMAND_STATUS, 0, BIT(2));
}

static irqreturn_t handle_flush_irq(int irq, void *data)