From: Reinhard Meyer Date: Mon, 30 Aug 2010 13:08:11 +0200 Subject: [U-Boot] [PATCH] fix the c_size, in CSD Version 2.0, it's 22 bits In-Reply-To: <1283162342-23558-1-git-send-email-xiangfu@openmobilefree.net> References: <1283162342-23558-1-git-send-email-xiangfu@openmobilefree.net> Message-ID: <4C7B911B.9040706@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Xiangfu Liu schrieb: > Signed-off-by: Xiangfu Liu > --- > include/mmc.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/include/mmc.h b/include/mmc.h > index fcb237e..b913a60 100644 > --- a/include/mmc.h > +++ b/include/mmc.h > @@ -189,12 +189,12 @@ struct mmc_csd > u8 tran_speed; > u16 ccc:12, > read_bl_len:4; > + u32 c_size:22; > u64 read_bl_partial:1, > write_blk_misalign:1, > read_blk_misalign:1, > dsr_imp:1, > rsvd2:2, > - c_size:12, > vdd_r_curr_min:3, > vdd_r_curr_max:3, > vdd_w_curr_min:3, NAK This structure approach is awfully broken. LE/BE issues, c_size spans over a 32 bit boundary! The generic MMC works fine with no such structure. I already proposed in earlier patches to finally remove that structure. Reinhard