public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Shawn Lin <shawn.lin@rock-chips.com>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: shawn.lin@rock-chips.com, linux-mmc@vger.kernel.org,
	Avri Altman <avri.altman@wdc.com>,
	Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: [PATCH 1/2] mmc-utils: lsmmc.c: print_mmc_cid(): correct year/month parsing
Date: Wed, 5 Nov 2025 15:23:55 +0800	[thread overview]
Message-ID: <77ce48fa-dfdf-43c9-8094-c1c47ff48aac@rock-chips.com> (raw)
In-Reply-To: <87qzud6jq8.fsf@dell.be.48ers.dk>

在 2025/11/05 星期三 15:07, Peter Korsgaard 写道:
>>>>>> "Shawn" == Shawn Lin <shawn.lin@rock-chips.com> writes:
> 
> Hi,
> 
>   > From the JESD84-B51, section 7.2.7,
> 
>   > For e•MMC 4.41 and later devices, indicated by a value larger than 4 in
>   > EXT_CSD_REV [192], the 4-bit“y” field shall roll over after 2012, so
>   > that y=0 shall be used for 2013. See Table 77 for a list of valid y
>   > values for specific e•MMC versions.
> 
>   > So mdt_year + 1997 seems wrong, too.
> 
> That tweak is even not enough, E.G. I see the kernel does:
> 
>         if (card->ext_csd.rev >= 5) {
>                  /* Adjust production date as per JEDEC JESD84-B451 */
>                  if (card->cid.year < 2010)
>                          card->cid.year += 16;
> 
> 2009 + 16 = 2025, so what will happen in a few months?
> 

TBH, I don't know if there is any update from JEDEC. :)


  reply	other threads:[~2025-11-05  7:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 20:00 [PATCH 1/2] mmc-utils: lsmmc.c: print_mmc_cid(): correct year/month parsing Peter Korsgaard
2025-11-04 20:00 ` [PATCH 2/2] mmc-utils: lsmmc.c: print_{mmc,sd}_cid(): correct month names Peter Korsgaard
2025-11-11 17:36   ` Ulf Hansson
2025-11-05  2:04 ` [PATCH 1/2] mmc-utils: lsmmc.c: print_mmc_cid(): correct year/month parsing Shawn Lin
2025-11-05  6:56   ` Peter Korsgaard
2025-11-05  7:07   ` Peter Korsgaard
2025-11-05  7:23     ` Shawn Lin [this message]
2025-11-05 19:57       ` Avri Altman
2025-11-05 20:16         ` Peter Korsgaard
2025-11-07  1:39         ` Shawn Lin
2025-11-11 17:26         ` Ulf Hansson
2025-11-11 17:36 ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77ce48fa-dfdf-43c9-8094-c1c47ff48aac@rock-chips.com \
    --to=shawn.lin@rock-chips.com \
    --cc=avri.altman@wdc.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=peter@korsgaard.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox