]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: Avoid extra duplicate entry in mmc device structure
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Thu, 19 Mar 2015 12:44:03 +0000 (07:44 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:36:25 +0000 (22:36 +0200)
commited6a31306e05e311c47d13ebc183b698ba97932f
treef3ef6debf57e5c7b013ccb7316d644430ba0309d
parent3e0dc752ad9cd20d55702ecb993887624bd0625e
mmc: Avoid extra duplicate entry in mmc device structure

The 'op_cond_response' field in mmc structure contains the response
from the last SEND_OP_COND MMC command while making iterational
polling of the card. Later it is copied to 'ocr' field, designed
to contain the OCR register value, which is actually the same
response from the same command. So, these fields have actually
the same data, just in different time periods. It's easier to use
the same 'ocr' field in both cases at once, without temporary using
of the 'op_cond_response' field.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
drivers/mmc/mmc.c
include/mmc.h