From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mateusz Kulikowski Date: Sat, 19 Dec 2015 12:21:53 +0100 Subject: [U-Boot] [RFC PATCH 03/11] mmc: Add support for Qualcomm SDHCI controller In-Reply-To: References: <1449783707-23594-1-git-send-email-mateusz.kulikowski@gmail.com> <1449783707-23594-4-git-send-email-mateusz.kulikowski@gmail.com> <5671E9D8.8050009@gmail.com> Message-ID: <56753DD1.1050504@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Simon, On 18.12.2015 23:41, Simon Glass wrote: > Hi Mateusz, > > On 16 December 2015 at 15:46, Mateusz Kulikowski > wrote: [...] >> I'm not sure if I can do that - I can test it, perhaps it will even work on >> my board, but it was put explicitly in Linux driver (1-5ms delay). >> >> Documentation says: >> "SW should wait until bit 0 (MCLK_REG_WR_ACTIVE) of MCI_STATUS2 register >> is 0, after writing to MCI_POWER register and before accessing this >> register again." >> >> But this applies to all writes, not to reset request - I'm not sure >> how MCI_STATUS2 will behave during reset (it may get zeroed earlier). >> >> Do you really think I should try to decrease this delay? > > Can you change the code to wait until bit 0 is 0, instead of having a delay? This seems to work - at least on my board so will do it that way - thanks :) Regards, Mateusz -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWdT3MAAoJELvtohmVtQzBjRUIAIwoq7nv3Ed/WrDi+azQscUD RvZe8KGFGy0VOVbrV4iMYmG6SJzN9cxrA4q1oGVsUWZyh1uHuDMlhdPLqaW6EIC5 wQFeY2zWffNKJlx1MGhJKwKB+plYXWzEp6LDYIgB+LaTOUCPZOsnxJvac6bDvXF/ FLR3AXGMzHL1nrty/7MToNB2AtRynBxwEPRmyu5e1aNd9rfq+CrkyIqcsQ9M7VQz y1UbJCUWDcwKKIDLUMfM9z67xx7O436M1fDSL1ELxuxI8C2UtdiycFu/uKm3XP+o Nt871BEKLwK5WnkuFERZaXd8kbUYq+j1iOlt+oL7pTOY8+8IBQABnHf3YT1TCUo= =0ZkP -----END PGP SIGNATURE-----