From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] Tegra114: MMC: Add SD bus power-rail init routine
Date: Tue, 12 Mar 2013 12:13:30 -0600 [thread overview]
Message-ID: <513F704A.6080205@wwwdotorg.org> (raw)
In-Reply-To: <CA+m5__LdQ=4g+5572E=pXr73nUmTYbMtpeF7CEw10_R_CaDd3w@mail.gmail.com>
On 03/12/2013 12:05 PM, Tom Warren wrote:
> Stephen,
>
> On Tue, Mar 12, 2013 at 10:54 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 03/12/2013 10:17 AM, Tom Warren wrote:
>>> T114 requires SD bus power-rail bringup for the SDIO card on SDMMC3.
>>
>>> diff --git a/board/nvidia/dalmore/dalmore.c b/board/nvidia/dalmore/dalmore.c
>>> +void board_sdmmc_voltage_init(void)
>>
>>> + /* TPS65913: LDO9_VOLTAGE = 3.3V */
>>> + data_buffer[0] = 0x31;
>>> + reg = 0x61;
>>> +
>>> + for (i = 0; i < MAX_I2C_RETRY; ++i) {
>>> + ret = i2c_write(PMU_I2C_ADDRESS, reg, 1, data_buffer, 1);
>>> + if (ret) {
>>> + udelay(100);
>>> + printf("%s: PMU i2c_write %02X<-%02X returned %d\n",
>>> + __func__, reg, data_buffer[0], ret);
>>> + }
>>> + }
>>
>> Is there actually a need to retry these transactions; is there any
>> evidence they're expected to fail? Hopefully the HW isn't flaky like that.
>
> This is how it was done in the original internal U-Boot code I got the
> I2C writes from (also done this way on T30). I did add the printf
> error writes, though, when I was having a PWR_I2C/I2C5/dev 0 problem.
> I think Whistler does something similar.
Whistler doesn't do any retries. That's why I was surprised by this. I
would assert we should remove the retry logic unless there's a specific
need for it, in which case we need to port it to the kernel too.
next prev parent reply other threads:[~2013-03-12 18:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 16:17 [U-Boot] [PATCH 0/4] Tegra114: MMC: Add MMC driver for T114/Dalmore Tom Warren
2013-03-12 16:17 ` [U-Boot] [PATCH 1/4] Tegra114: fdt: Add SDMMC (sdhci) nodes for T114 boards (Dalmore for now) Tom Warren
2013-03-12 16:17 ` [U-Boot] [PATCH 2/4] Tegra114: Dalmore: Add SDIO3 pad config to pinctrl_config table Tom Warren
2013-03-12 17:52 ` Stephen Warren
2013-03-12 17:59 ` Tom Warren
2013-03-12 16:17 ` [U-Boot] [PATCH 3/4] Tegra114: MMC: Add SD bus power-rail init routine Tom Warren
2013-03-12 17:54 ` Stephen Warren
2013-03-12 18:05 ` Tom Warren
2013-03-12 18:13 ` Stephen Warren [this message]
2013-03-12 16:17 ` [U-Boot] [PATCH 4/4] Tegra114: MMC: Enable DT MMC driver support for Tegra114 Dalmore boards Tom Warren
2013-03-12 17:56 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=513F704A.6080205@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.