From: Bart Van Assche <bvanassche@acm.org>
To: Daniel Lee <chullee@google.com>,
James.Bottomley@hansenpartnership.com,
martin.petersen@oracle.com
Cc: alim.akhtar@samsung.com, tanghuan@vivo.com,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ufs: sysfs: Add WB partial flush mode support
Date: Fri, 5 Jun 2026 08:50:42 -0700 [thread overview]
Message-ID: <6eedb86d-2e4d-4814-aed7-aedb5170df8d@acm.org> (raw)
In-Reply-To: <20260605093111.2530863-1-chullee@google.com>
On 6/5/26 2:31 AM, Daniel Lee wrote:
> +What: /sys/bus/platform/drivers/ufshcd/*/attributes/wb_partial_flush_mode
> +What: /sys/bus/platform/devices/*.ufs/attributes/wb_partial_flush_mode
> +Date: June 2026
> +Contact: Daniel Lee <chullee@google.com>
> +Description: This entry controls Extended WriteBooster partial flush modes.
> +
> + ====== ==============================
> + 0 No partial flush
> + 1 FIFO (first-in-first-out) mode
> + 2 Pinned mode
> + Others Reserved
> + ====== ==============================
> +
> + The attribute is read-write.
Please change this attribute such that it accepts and reports strings
instead of numbers. This is more user-friendly and also will make shell
scripts that read from or write into this sysfs attribute much easier to
read. This will make this attribute follow the design philosophy of
self-documenting interfaces.
> +static ssize_t ufs_sysfs_flag_show(struct device *dev,
> + struct device_attribute *attr, char *buf, enum flag_idn idn)
> +{
> + bool flag;
> + u8 index = 0;
> + int ret;
> + struct ufs_hba *hba = dev_get_drvdata(dev);
In new code, please order declarations from longest to shortest.
> +static ssize_t ufs_sysfs_flag_store(struct device *dev,
> + struct device_attribute *attr, const char *buf, size_t count,
> + enum flag_idn idn)
> +{
> + bool value;
> + u8 index = 0;
> + int ret;
> + struct ufs_hba *hba = dev_get_drvdata(dev);
Also here, please order declarations from longest to shortest.
Thanks,
Bart.
prev parent reply other threads:[~2026-06-05 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 9:31 [PATCH] ufs: sysfs: Add WB partial flush mode support Daniel Lee
2026-06-05 15:50 ` Bart Van Assche [this message]
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=6eedb86d-2e4d-4814-aed7-aedb5170df8d@acm.org \
--to=bvanassche@acm.org \
--cc=James.Bottomley@hansenpartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=chullee@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=tanghuan@vivo.com \
/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