mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-16 08:29:25 +01:00
turn off epic SD debug spew
This commit is contained in:
parent
ec1e5b7687
commit
bfc3d0b3b7
10
sdhc.c
10
sdhc.c
@ -129,7 +129,7 @@ int sdhc_wait_intr_debug(const char *func, int line, struct sdhc_host *, int, in
|
|||||||
void sdhc_transfer_data(struct sdhc_host *, struct sdmmc_command *);
|
void sdhc_transfer_data(struct sdhc_host *, struct sdmmc_command *);
|
||||||
void sdhc_read_data(struct sdhc_host *, u_char *, int);
|
void sdhc_read_data(struct sdhc_host *, u_char *, int);
|
||||||
void sdhc_write_data(struct sdhc_host *, u_char *, int);
|
void sdhc_write_data(struct sdhc_host *, u_char *, int);
|
||||||
#define SDHC_DEBUG 1
|
//#define SDHC_DEBUG 1
|
||||||
#ifdef SDHC_DEBUG
|
#ifdef SDHC_DEBUG
|
||||||
int sdhcdebug = 2;
|
int sdhcdebug = 2;
|
||||||
#define DPRINTF(n,s) do { if ((n) <= sdhcdebug) gecko_printf s; } while (0)
|
#define DPRINTF(n,s) do { if ((n) <= sdhcdebug) gecko_printf s; } while (0)
|
||||||
@ -454,7 +454,7 @@ sdhc_exec_command(struct sdhc_host *hp, struct sdmmc_command *cmd)
|
|||||||
if (!ISSET(status, SDHC_COMMAND_COMPLETE)) {
|
if (!ISSET(status, SDHC_COMMAND_COMPLETE)) {
|
||||||
cmd->c_error = ETIMEDOUT;
|
cmd->c_error = ETIMEDOUT;
|
||||||
gecko_printf("timeout dump: error_intr: 0x%x intr: 0x%x\n", hp->intr_error_status, hp->intr_status);
|
gecko_printf("timeout dump: error_intr: 0x%x intr: 0x%x\n", hp->intr_error_status, hp->intr_status);
|
||||||
sdhc_dump_regs(hp);
|
// sdhc_dump_regs(hp);
|
||||||
SET(cmd->c_flags, SCF_ITSDONE);
|
SET(cmd->c_flags, SCF_ITSDONE);
|
||||||
hp->data_command = 0;
|
hp->data_command = 0;
|
||||||
return;
|
return;
|
||||||
@ -710,7 +710,7 @@ sdhc_wait_intr_debug(const char *funcname, int line, struct sdhc_host *hp, int m
|
|||||||
/* Command timeout has higher priority than command complete. */
|
/* Command timeout has higher priority than command complete. */
|
||||||
if (ISSET(status, SDHC_ERROR_INTERRUPT)) {
|
if (ISSET(status, SDHC_ERROR_INTERRUPT)) {
|
||||||
gecko_printf("resetting due to error interrupt\n");
|
gecko_printf("resetting due to error interrupt\n");
|
||||||
sdhc_dump_regs(hp);
|
// sdhc_dump_regs(hp);
|
||||||
|
|
||||||
hp->intr_error_status = 0;
|
hp->intr_error_status = 0;
|
||||||
(void)sdhc_soft_reset(hp, SDHC_RESET_DAT|SDHC_RESET_CMD);
|
(void)sdhc_soft_reset(hp, SDHC_RESET_DAT|SDHC_RESET_CMD);
|
||||||
@ -720,7 +720,7 @@ sdhc_wait_intr_debug(const char *funcname, int line, struct sdhc_host *hp, int m
|
|||||||
/* Command timeout has higher priority than command complete. */
|
/* Command timeout has higher priority than command complete. */
|
||||||
if (ISSET(status, SDHC_ERROR_TIMEOUT)) {
|
if (ISSET(status, SDHC_ERROR_TIMEOUT)) {
|
||||||
gecko_printf("not resetting due to timeout\n");
|
gecko_printf("not resetting due to timeout\n");
|
||||||
sdhc_dump_regs(hp);
|
// sdhc_dump_regs(hp);
|
||||||
|
|
||||||
hp->intr_error_status = 0;
|
hp->intr_error_status = 0;
|
||||||
// (void)sdhc_soft_reset(hp, SDHC_RESET_DAT|SDHC_RESET_CMD);
|
// (void)sdhc_soft_reset(hp, SDHC_RESET_DAT|SDHC_RESET_CMD);
|
||||||
@ -739,7 +739,7 @@ sdhc_intr(void)
|
|||||||
u_int16_t status;
|
u_int16_t status;
|
||||||
|
|
||||||
DPRINTF(1,("shdc_intr():\n"));
|
DPRINTF(1,("shdc_intr():\n"));
|
||||||
sdhc_dump_regs(&sc_host);
|
// sdhc_dump_regs(&sc_host);
|
||||||
|
|
||||||
/* Find out which interrupts are pending. */
|
/* Find out which interrupts are pending. */
|
||||||
status = HREAD2(&sc_host, SDHC_NINTR_STATUS);
|
status = HREAD2(&sc_host, SDHC_NINTR_STATUS);
|
||||||
|
2
sdmmc.c
2
sdmmc.c
@ -276,7 +276,7 @@ int sdmmc_select(void)
|
|||||||
cmd.c_flags = SCF_RSP_R1B;
|
cmd.c_flags = SCF_RSP_R1B;
|
||||||
sdhc_exec_command(card.handle, &cmd);
|
sdhc_exec_command(card.handle, &cmd);
|
||||||
gecko_printf("%s: resp=%x\n", __FUNCTION__, MMC_R1(cmd.c_resp));
|
gecko_printf("%s: resp=%x\n", __FUNCTION__, MMC_R1(cmd.c_resp));
|
||||||
sdhc_dump_regs(card.handle);
|
// sdhc_dump_regs(card.handle);
|
||||||
|
|
||||||
// gecko_printf("present state = %x\n", HREAD4(hp, SDHC_PRESENT_STATE));
|
// gecko_printf("present state = %x\n", HREAD4(hp, SDHC_PRESENT_STATE));
|
||||||
if (cmd.c_error) {
|
if (cmd.c_error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user