[PATCH 2/3] cmds/read_extcsd: compute in seconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The value in the register is * 100ms

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
---
 mmc_cmds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mmc_cmds.c b/mmc_cmds.c
index 3b35a932378d..8addd35046d7 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -815,6 +815,7 @@ int do_read_extcsd(int nargs, char **argv)
 
 		printf("1st Initialisation Time after programmed sector"
 			" [INI_TIMEOUT_AP: 0x%02x]\n", ext_csd[241]);
+		printf(" i.e. %.1f sec\n", ext_csd[241] * 100 / 1000.0);
 
 		/* A441: reserved [240] */
 		printf("Power class for 52MHz, DDR at 3.6V"
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux