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

Commit d8dc71eb authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: sdhci-msm: Add quirk to control debug feature



Add a quirk to control debug feature in sdcc.
With this change debug feature is disabled.

Change-Id: I548ad5b6e4e616076e893356078622300a840fc1
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 1d6a7b7e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1349,6 +1349,8 @@ void sdhci_msm_enter_dbg_mode(struct sdhci_host *host)
				SDCC_IP_CATALOG));
	if (minor < 2 || msm_host->debug_mode_enabled)
		return;
	if (!(host->quirks2 & SDHCI_QUIRK2_USE_DBG_FEATURE))
		return;

	/* Enable debug mode */
	writel_relaxed(ENABLE_DBG,
@@ -1392,6 +1394,8 @@ void sdhci_msm_exit_dbg_mode(struct sdhci_host *host)
				SDCC_IP_CATALOG));
	if (minor < 2 || !msm_host->debug_mode_enabled)
		return;
	if (!(host->quirks2 & SDHCI_QUIRK2_USE_DBG_FEATURE))
		return;

	/* Exit debug mode */
	writel_relaxed(DISABLE_DBG,
+5 −0
Original line number Diff line number Diff line
@@ -548,6 +548,11 @@ struct sdhci_host {
 */
#define SDHCI_QUIRK2_USE_PIO_FOR_EMMC_TUNING (1 << 29)

/*
 * Use QTI specific SDCC debug feature.
 */
#define SDHCI_QUIRK2_USE_DBG_FEATURE (1 << 30)

	int irq;		/* Device IRQ */
	void __iomem *ioaddr;	/* Mapped address */
	char *bounce_buffer;	/* For packing SDMA reads/writes */