Loading drivers/mmc/core/debugfs.c +5 −0 Original line number Diff line number Diff line Loading @@ -496,6 +496,11 @@ void mmc_add_host_debugfs(struct mmc_host *host) &host->cmdq_thist_enabled)) goto err_node; if (!debugfs_create_bool("crash_on_err", 0600, root, &host->crash_on_err)) goto err_node; #ifdef CONFIG_MMC_RING_BUFFER if (!debugfs_create_file("ring_buffer", 0400, root, host, &mmc_ring_buffer_fops)) Loading drivers/mmc/host/sdhci.c +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ void sdhci_dumpregs(struct sdhci_host *host) host->ops->dump_vendor_regs(host); sdhci_dump_state(host); SDHCI_DUMP("============================================\n"); /* crash the system upon setting this debugfs. */ if (host->mmc->crash_on_err) BUG_ON(1); } EXPORT_SYMBOL_GPL(sdhci_dumpregs); Loading include/linux/mmc/host.h +1 −0 Original line number Diff line number Diff line Loading @@ -710,6 +710,7 @@ struct mmc_host { atomic_t rpmb_req_pending; struct mutex rpmb_req_mutex; unsigned long private[0] ____cacheline_aligned; bool crash_on_err; /* crash the system on error */ }; struct device_node; Loading Loading
drivers/mmc/core/debugfs.c +5 −0 Original line number Diff line number Diff line Loading @@ -496,6 +496,11 @@ void mmc_add_host_debugfs(struct mmc_host *host) &host->cmdq_thist_enabled)) goto err_node; if (!debugfs_create_bool("crash_on_err", 0600, root, &host->crash_on_err)) goto err_node; #ifdef CONFIG_MMC_RING_BUFFER if (!debugfs_create_file("ring_buffer", 0400, root, host, &mmc_ring_buffer_fops)) Loading
drivers/mmc/host/sdhci.c +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,9 @@ void sdhci_dumpregs(struct sdhci_host *host) host->ops->dump_vendor_regs(host); sdhci_dump_state(host); SDHCI_DUMP("============================================\n"); /* crash the system upon setting this debugfs. */ if (host->mmc->crash_on_err) BUG_ON(1); } EXPORT_SYMBOL_GPL(sdhci_dumpregs); Loading
include/linux/mmc/host.h +1 −0 Original line number Diff line number Diff line Loading @@ -710,6 +710,7 @@ struct mmc_host { atomic_t rpmb_req_pending; struct mutex rpmb_req_mutex; unsigned long private[0] ____cacheline_aligned; bool crash_on_err; /* crash the system on error */ }; struct device_node; Loading