lkml.org 
[lkml]   [2014]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] mmc: rtsx: fix incorrect last byte in R2 response
Date
From: Roger Tseng <rogerable@realtek.com>

(The original patch for PCI and USB was splitted here to make it easier for
stable tree.)

Current code erroneously fill the last byte of R2 response with an undefined
value. In addition, the controller actually 'offloads' the last byte
(CRC7, end bit) while receiving R2 response and thus it's impossible to get the
actual value. This could cause mmc stack to obtain inconsistent CID from the
same card after resume and misidentify it as a different card.

Fix by assigning dummy CRC and end bit: {7'b0, 1} = 0x1 to the last byte of R2.

Roger Tseng (2):
mmc: rtsx_pci_sdmmc: fix incorrect last byte in R2 response
mmc: rtsx_usb_sdmmc: fix incorrect last byte in R2 response

drivers/mmc/host/rtsx_pci_sdmmc.c | 7 +++++++
drivers/mmc/host/rtsx_usb_sdmmc.c | 7 +++++++
2 files changed, 14 insertions(+)

--
1.7.10.4



\
 
 \ /
  Last update: 2014-08-15 08:21    [W:0.064 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site