From: Bean Huo <beanhuo@iokpp.de>
To: avri.altman@wdc.com, bvanassche@acm.org, alim.akhtar@samsung.com,
jejb@linux.ibm.com, martin.petersen@oracle.com, mani@kernel.org,
quic_cang@quicinc.com, quic_asutoshd@quicinc.com,
beanhuo@micron.com, thomas@t-8ch.de
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
mikebi@micron.com, lporzio@micron.com,
Bean Huo <beanhuo@iokpp.de>
Subject: [PATCH v2 0/3] Add UFS RTC support
Date: Wed, 22 Nov 2023 18:25:09 +0100 [thread overview]
Message-ID: <20231122172512.103748-1-beanhuo@iokpp.de> (raw)
Adding RTC support for embedded storage device UFS in its driver, it is important for a few key
reasons:
1. Helps with Regular Maintenance:
The RTC provides a basic way to keep track of time, making it useful for scheduling routine
maintenance tasks in the storage device. This includes things like making sure data is spread
evenly across the storage to extend its life.
2. Figuring Out How Old Data Is:
The RTC helps the device estimate how long ago certain parts of the storage were last used.
This is handy for deciding when to do maintenance tasks to keep the storage working well over time.
3. Making Devices Last Longer:
By using the RTC for regular upkeep, we can make sure the storage device lasts longer and
stays reliable. This is especially important for devices that need to work well for a long
time.
4.Fitting In with Other Devices:
The inclusion of RTC support aligns with existing UFS specifications (starting from UFS Spec 2.0)
and is consistent with the prevalent industry practice. Many UFS devices currently on the market
utilize RTC for internal timekeeping. By ensuring compatibility with this widely adopted standard,
the embedded storage device becomes seamlessly integrable with existing hardware and software
ecosystems, reducing the risk of compatibility issues.
In short, adding RTC support to embedded storage device UFS helps with regular upkeep, extends
the device's life, ensures compatibility, and keeps everything running smoothly with the rest
of the system.
Changelog:
v1--v2:
1. Add a new patch "scsi: ufs: core: Add ufshcd_is_ufs_dev_busy()"
2. RTC periodic update work is disabled by default
3. Address several issues raised by Avri, Bart, and Thomas.
Bean Huo (3):
scsi: ufs: core: Add ufshcd_is_ufs_dev_busy()
scsi: ufs: core: Add UFS RTC support
scsi: ufs: core: Add sysfs node for UFS RTC update
Documentation/ABI/testing/sysfs-driver-ufs | 7 ++
drivers/ufs/core/ufs-sysfs.c | 31 ++++++++
drivers/ufs/core/ufshcd.c | 90 ++++++++++++++++++++--
include/ufs/ufs.h | 15 ++++
include/ufs/ufshcd.h | 12 ++-
5 files changed, 149 insertions(+), 6 deletions(-)
--
2.34.1
next reply other threads:[~2023-11-22 18:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 17:25 Bean Huo [this message]
2023-11-22 17:25 ` [PATCH v2 1/3] scsi: ufs: core: Add ufshcd_is_ufs_dev_busy() Bean Huo
2023-11-22 17:43 ` Bart Van Assche
2023-11-22 17:25 ` [PATCH v2 2/3] scsi: ufs: core: Add UFS RTC support Bean Huo
2023-11-22 17:51 ` Bart Van Assche
2023-11-22 17:25 ` [PATCH v2 3/3] scsi: ufs: core: Add sysfs node for UFS RTC update Bean Huo
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=20231122172512.103748-1-beanhuo@iokpp.de \
--to=beanhuo@iokpp.de \
--cc=alim.akhtar@samsung.com \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lporzio@micron.com \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mikebi@micron.com \
--cc=quic_asutoshd@quicinc.com \
--cc=quic_cang@quicinc.com \
--cc=thomas@t-8ch.de \
/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
all inboxes | Powered by JetHome®