From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaehoon Chung Subject: Re: [PATCH] mmc: dw_mmc: init desc in dw_mci_idmac_init Date: Mon, 04 May 2015 09:07:00 +0900 Message-ID: <5546B824.80203@samsung.com> References: <1430314316-15971-1-git-send-email-zhangfei.gao@linaro.org> <1430403388-4184-1-git-send-email-zhangfei.gao@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout3.samsung.com ([203.254.224.33]:54622 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbbEDAHD (ORCPT ); Sun, 3 May 2015 20:07:03 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNS005UITNPV210@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 04 May 2015 09:07:01 +0900 (KST) In-reply-to: <1430403388-4184-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Zhangfei Gao , Ulf Hansson Cc: linux-mmc@vger.kernel.org, Fei Wang , CPGS Hi, Zhangfei. Will apply this patch at my dw-mmc tree. Thanks! Best Regards, Jaehoon Chung On 04/30/2015 11:16 PM, Zhangfei Gao wrote: > Set 0 to des1 in 32bit case. > Otherwise the random value of des1 will be used in > dw_mci_translate_sglist: IDMAC_SET_BUFFER1_SIZE(desc, length) > > Signed-off-by: Fei Wang > Signed-off-by: Zhangfei Gao > --- > drivers/mmc/host/dw_mmc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 241454f..488a8af 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -589,9 +589,11 @@ static int dw_mci_idmac_init(struct dw_mci *host) > host->ring_size = PAGE_SIZE / sizeof(struct idmac_desc); > > /* Forward link the descriptor list */ > - for (i = 0, p = host->sg_cpu; i < host->ring_size - 1; i++, p++) > + for (i = 0, p = host->sg_cpu; i < host->ring_size - 1; i++, p++) { > p->des3 = cpu_to_le32(host->sg_dma + > (sizeof(struct idmac_desc) * (i + 1))); > + p->des1 = 0; > + } > > /* Set the last descriptor as the end-of-ring descriptor */ > p->des3 = cpu_to_le32(host->sg_dma); >