From: Ziyuan Xu Date: Fri, 23 Sep 2016 10:51:28 +0800 Subject: [U-Boot] [PATCH 1/3] mmc: dw_mmc: change the read/write order under fifo mode In-Reply-To: References: <1472491575-30091-1-git-send-email-jacob2.chen@rock-chips.com> <0aa34e17-ea5a-c4fb-da5d-2c100a8d22b6@samsung.com> <81727932-3d66-cc08-6591-f411ddadd59c@rock-chips.com> <81e4ec38-1bef-9eb2-3175-70a8396d0944@samsung.com> <6c5eab00-c9eb-44b0-b151-eeaec396df59@rock-chips.com> <31cd9bfd-93a5-d18e-8d06-447121d7f7c6@samsung.com> Message-ID: <58ad640e-1037-eeec-b1da-fee33c90b02c@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de hi Simon, On 2016?09?23? 10:39, Simon Glass wrote: > Hi, > > On 7 September 2016 at 21:54, Jaehoon Chung wrote: >> On 09/08/2016 12:43 PM, Ziyuan Xu wrote: >>> >>> On 2016?09?07? 14:50, Jaehoon Chung wrote: >>>> On 09/07/2016 03:14 PM, Ziyuan Xu wrote: >>>>> hi Jaehoon, >>>>> >>>>> >>>>> On 2016?08?30? 17:54, Jaehoon Chung wrote: >>>>>> Hi Jacob, >>>>>> >>>>>> On 08/30/2016 02:26 AM, Jacob Chen wrote: >>>>>>> From: "jacob2.chen" >>>>>>> >>>>>>> The former implement have a bug. >>>>>>> It will cause wrong data reading sometimes. >>>>>> Could you explain what bug is there? >>>>>>> Signed-off-by: jacob2.chen >>>>>> Could you change from jacob2.chen to your name? >>>>>> >>>>>>> --- >>>>>>> >>>>>>> drivers/mmc/dw_mmc.c | 32 +++++++++++++++++--------------- >>>>>>> 1 file changed, 17 insertions(+), 15 deletions(-) >>>>>>> >>>>>>> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c >>>>>>> index afc674d..f072739 100644 >>>>>>> --- a/drivers/mmc/dw_mmc.c >>>>>>> +++ b/drivers/mmc/dw_mmc.c >>>>>>> @@ -120,35 +120,37 @@ static int dwmci_data_transfer(struct dwmci_host *host, struct mmc_data *data) >>>>>>> if (host->fifo_mode && size) { >>>>>>> len = 0; >>>>>>> - if (data->flags == MMC_DATA_READ) { >>>>>>> - if ((dwmci_readl(host, DWMCI_RINTSTS) & >>>>>>> - DWMCI_INTMSK_RXDR)) { >>>>>>> + if (data->flags == MMC_DATA_READ && >>>>>>> + (mask & DWMCI_INTMSK_RXDR)) { >>>>>>> + while (size) { >>>>>>> len = dwmci_readl(host, DWMCI_STATUS); >>>>>>> len = (len >> DWMCI_FIFO_SHIFT) & >>>>>>> - DWMCI_FIFO_MASK; >>>>>>> + DWMCI_FIFO_MASK; > What is the status of this patch please? I have sent patch v2, and Jaehoon applied it. Pls see http://patchwork.ozlabs.org/patch/671533/. Thanks for your attention. > > [...] > > Regards, > Simon > > >