Re: MMC life-time register, why not updated very time when reading the attribute in /sys

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

 



On Mon, 21 Oct 2019 at 10:21, Yi Zheng <goodmenzy@xxxxxxxxx> wrote:
>
> Hi, all,
>
>   In the commit v4.10-rc8-9-g46bc5c408e4e, Jungseung Lee introduced an easy
> way to access the EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A/B registers.
>
>   That is fine, it avoid to parse the ECSD raw data from the debugfs mnt point:
>  /sys/kernel/debug/mmc0/mmc0:0001/ext_csd.
>
> But the code seems that only read the ECSD when init the Card. On our machines
> with BGA chip, run in long time, that sysfs attr seems not updated. It
> only keeps the
> original values when booting/init.
>
> Any plan to update that ?

Well, the current approach is as you say, a snapshot taken at card
initialization.

The life time time bits is not the only bits that may get updated over
time, so it seems we need to re-read the EXT_CSD to get the latest
data. At least for some of the bits in the EXT_CSD.

If you or someone else sends a patch, I would not have a problem accepting that.

Kind regards
Uffe



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

  Powered by Linux