summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVenkat Gopalakrishnan <venkatg@codeaurora.org>2015-09-15 15:57:35 -0700
committerSubhash Jadavani <subhashj@codeaurora.org>2016-05-31 15:27:38 -0700
commitb78e1b402589663b584111e24b6756beccef4797 (patch)
tree9ac570a8d3d4c9efe8bfad99cb56c0a94fbb3a21 /include/linux
parent77da995311249747adf8b5e3b08e1ab415437f25 (diff)
mmc: debugfs: add debugfs entry to force raise host errors
The SDHC spec allows to force raise errors that is useful for debugging error handler routines. Add debugfs entry force_error to trigger host errors from userspace. Check SDHCI_SET_INT_ERROR register for error bitmask info. Usage: echo 0x1 > /sys/kernel/debug/mmcX/force_error X - denotes the slot id Change-Id: I9f67442a79b2645cbdc3020d1a10c0b32840ce32 Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org> [subhashj@codeaurora.org: fixed trivial merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mmc/host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 87f90a7d061a..a312467be721 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -182,6 +182,7 @@ struct mmc_host_ops {
int (*notify_load)(struct mmc_host *, enum mmc_load);
void (*notify_halt)(struct mmc_host *mmc, bool halt);
void (*detect)(struct mmc_host *host, bool detected);
+ void (*force_err_irq)(struct mmc_host *host, u64 errmask);
};
struct mmc_card;