mmc: core: production year for eMMC 4.41 and later
authorRomain Izard <romain.izard.pro@gmail.com>
Fri, 14 Jun 2013 12:25:44 +0000 (14:25 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 05:38:50 +0000 (13:38 +0800)
commit5239bf158a2e8a25b9513e1b8373a987079cfb95
treef1d5a7dfaabde39a02ece50a0147e3c3b2379ac2
parent7a5e3a0b34008d14022922ff62b4d985d16f76cf
mmc: core: production year for eMMC 4.41 and later

The field containing the production date in the CID register only uses
4 bits to encode the year, starting from 1997 in the original standard.
In 2013, the production year field contains 0, and the kernel reports a
1997 production date.

The eMMC 4.51 specification adds a new interpretation rule. For all
devices implementing the 4.41 specification or later, the production
year field will be interpreted as a value between 2010 and 2025, with
0 corresponding to 2013.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c