From: Richard Weinberger <richard@nod.at>
To: Rickard X Andersson <rickard.andersson@axis.com>
Cc: chengzhihao1 <chengzhihao1@huawei.com>,
linux-mtd <linux-mtd@lists.infradead.org>,
rickard314 andersson <rickard314.andersson@gmail.com>,
kernel <kernel@axis.com>
Subject: Re: [PATCH 1/2] ubi: Expose interface for reading erase counters
Date: Thu, 21 Nov 2024 11:37:34 +0100 (CET) [thread overview]
Message-ID: <308788156.51756690.1732185454130.JavaMail.zimbra@nod.at> (raw)
In-Reply-To: <20241121102157.3498056-1-rickard.andersson@axis.com>
Rickard,
----- Ursprüngliche Mail -----
> Von: "Rickard X Andersson" <rickard.andersson@axis.com>
> An: "richard" <richard@nod.at>, "chengzhihao1" <chengzhihao1@huawei.com>, "linux-mtd" <linux-mtd@lists.infradead.org>,
> "rickard314 andersson" <rickard314.andersson@gmail.com>
> CC: "Rickard X Andersson" <rickard.andersson@axis.com>, "kernel" <kernel@axis.com>
> Gesendet: Donnerstag, 21. November 2024 11:21:56
> Betreff: [PATCH 1/2] ubi: Expose interface for reading erase counters
> Using the ioctl command 'UBI_IOCECNFO' user space can obtain mean
> and max erase counters of a device. If fastmap is enabled also erase
> counter information of that area and its complementary area is
> provided.
the idea was having an ioctl interface to get the EC counters of all PEBs.
Such that userspace can do the mean/max/min calculations on it's own.
That way the kernel interface is clean and generic. Userspace can interpret
the data as it needs.
Thanks,
//richard
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2024-11-21 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 10:21 [PATCH 1/2] ubi: Expose interface for reading erase counters Rickard Andersson
2024-11-21 10:21 ` [PATCH 2/2] ubi: Implement 'UBI_IOCECNFO' " Rickard Andersson
2024-11-21 10:37 ` Richard Weinberger [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=308788156.51756690.1732185454130.JavaMail.zimbra@nod.at \
--to=richard@nod.at \
--cc=chengzhihao1@huawei.com \
--cc=kernel@axis.com \
--cc=linux-mtd@lists.infradead.org \
--cc=rickard.andersson@axis.com \
--cc=rickard314.andersson@gmail.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