[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5477D682.30107@realsil.com.cn>
Date: Fri, 28 Nov 2014 01:57:22 +0000
From: 敬锐 <micky_ching@...lsil.com.cn>
To: Dan Carpenter <dan.carpenter@...cle.com>
CC: "sameo@...ux.intel.com" <sameo@...ux.intel.com>,
"lee.jones@...aro.org" <lee.jones@...aro.org>,
"chris@...ntf.net" <chris@...ntf.net>,
"ulf.hansson@...aro.org" <ulf.hansson@...aro.org>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
王炜 <wei_wang@...lsil.com.cn>,
"rogerable@...ltek.com" <rogerable@...ltek.com>,
"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>
Subject: Re: [PATCH 2/2] mmc: rtsx: add support for sdio card
On 11/27/2014 11:43 PM, Dan Carpenter wrote:
>> + int stat_idx = sd_status_index(rsp_type);
> I have always hated this terrible pointer math. 5 is relative to
> pcr->host_cmds_ptr + 1. It's a mess...
5 mean CRC7 offset of Response R1, see SD spec V3.01 Page 82.
4.9.1 R1 (normal response command).
And we have to +1 to skip unused/undefined data.
Powered by blists - more mailing lists