Skip to content
Snippets Groups Projects
Commit 995a54cc authored by Tobias Jakobi's avatar Tobias Jakobi Committed by Minkyu Kang
Browse files

exynos: be more verbose in process_nodes()


In case sdhci_get_config() or do_sdhci_init() fail, show
the error code that was returned.

Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: default avatarTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 6a9fbb6e
No related branches found
No related tags found
No related merge requests found
...@@ -170,7 +170,7 @@ static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host) ...@@ -170,7 +170,7 @@ static int sdhci_get_config(const void *blob, int node, struct sdhci_host *host)
static int process_nodes(const void *blob, int node_list[], int count) static int process_nodes(const void *blob, int node_list[], int count)
{ {
struct sdhci_host *host; struct sdhci_host *host;
int i, node; int i, node, ret;
int failed = 0; int failed = 0;
debug("%s: count = %d\n", __func__, count); debug("%s: count = %d\n", __func__, count);
...@@ -183,14 +183,16 @@ static int process_nodes(const void *blob, int node_list[], int count) ...@@ -183,14 +183,16 @@ static int process_nodes(const void *blob, int node_list[], int count)
host = &sdhci_host[i]; host = &sdhci_host[i];
if (sdhci_get_config(blob, node, host)) { ret = sdhci_get_config(blob, node, host);
printf("%s: failed to decode dev %d\n", __func__, i); if (ret) {
printf("%s: failed to decode dev %d (%d)\n", __func__, i, ret);
failed++; failed++;
continue; continue;
} }
if (do_sdhci_init(host)) { ret = do_sdhci_init(host);
printf("%s: failed to initialize dev %d\n", __func__, i); if (ret) {
printf("%s: failed to initialize dev %d (%d)\n", __func__, i, ret);
failed++; failed++;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment