From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: "Bean Huo 霍斌斌 (beanhuo)" <beanhuo@micron.com>
Cc: "dedekind1@gmail.com" <dedekind1@gmail.com>,
"adrian.hunter@intel.com" <adrian.hunter@intel.com>,
"computersforpeace@gmail.com" <computersforpeace@gmail.com>,
"baruch@tkos.co.il" <baruch@tkos.co.il>,
"asierra@xes-inc.com" <asierra@xes-inc.com>,
"guz.fnst@cn.fujitsu.com" <guz.fnst@cn.fujitsu.com>,
"gsi@denx.de" <gsi@denx.de>, "richard@nod.at" <richard@nod.at>,
"David Woodhouse" <dwmw2@infradead.org>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"Frank Liu 刘群 (frankliu)" <frankliu@micron.com>,
"Andrea Scian" <rnd4@dave-tech.it>,
"Peter Pan 潘柏宏 (peterpan)" <peterpan@micron.com>,
"Karl Zhang 张双锣 (karlzhang)" <karlzhang@micron.com>,
"Iwo Mergler" <Iwo.Mergler@netcommwireless.com>,
"Jeff Lauruhn (jlauruhn)" <jlauruhn@micron.com>,
"Stefan Roese" <sr@denx.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/9] drivers:mtd:ubi:add definition for UBI bakvol operation
Date: Mon, 28 Sep 2015 11:48:15 +0200 [thread overview]
Message-ID: <20150928114815.698d9f2a@bbrezillon> (raw)
In-Reply-To: <A765B125120D1346A63912DDE6D8B6310BF4CEDA@NTXXIAMBX02.xacn.micron.com>
On Mon, 28 Sep 2015 07:02:40 +0000
Bean Huo 霍斌斌 (beanhuo) <beanhuo@micron.com> wrote:
> Add macro definition for UBI bakvol operation.
>
> Signed-off-by: Bean Huo <beanhuo@micron.com>
> ---
> drivers/mtd/ubi/ubi.h | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
> index 2974b67..746dfbe 100644
> --- a/drivers/mtd/ubi/ubi.h
> +++ b/drivers/mtd/ubi/ubi.h
> @@ -438,6 +438,7 @@ struct ubi_debug_info {
> * @vtbl_slots: how many slots are available in the volume table
> * @vtbl_size: size of the volume table in bytes
> * @vtbl: in-RAM volume table copy
> + * @bkblk_tbl: backup block table
> * @device_mutex: protects on-flash volume table and serializes volume
> * creation, deletion, update, re-size, re-name and set
> * property
> @@ -547,6 +548,7 @@ struct ubi_device {
> int vtbl_slots;
> int vtbl_size;
> struct ubi_vtbl_record *vtbl;
> + struct ubi_bkblk_tbl *bkblk_tbl;
Where is struct ubi_bkblk_tbl defined (actually I found it in patch
2).
> struct mutex device_mutex;
>
> int max_ec;
> @@ -797,6 +799,20 @@ int ubi_vtbl_rename_volumes(struct ubi_device *ubi,
> struct list_head *rename_list);
> int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai);
>
> +/* bakvol.c*/
> +int ubi_check_backup_volume(struct ubi_device *ubi);
> +int ubi_backup_data_to_backup_volume(struct ubi_device *ubi, loff_t addr,
> + size_t len, size_t *retlen, const void *buf);
> +int ubi_backup_volume_init(struct ubi_device *ubi);
> +int ubi_backup_volume_scan(struct ubi_device *ubi,
> + struct ubi_vid_hdr *vidh, int pnum);
> +int ubi_backup_volume_init_tail(struct ubi_device *ubi,
> + struct ubi_attach_info *si);
> +int ubi_bad_data_recovery(struct ubi_device *ubi);
> +int is_backup_need(struct ubi_device *ubi, loff_t addr);
> +void init_bakvol(struct ubi_volume_desc *desc, uint8_t choice);
> +void clear_bakvol(struct ubi_device *ubi);
> +
> /* vmt.c */
> int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req);
> int ubi_remove_volume(struct ubi_volume_desc *desc, int no_vtbl);
> @@ -846,6 +862,7 @@ int self_check_eba(struct ubi_device *ubi, struct ubi_attach_info *ai_fastmap,
>
> /* wl.c */
> int ubi_wl_get_peb(struct ubi_device *ubi);
> +int ubi_wl_get_plane_peb(struct ubi_device *ubi, int plane);
The same goes for those functions. You only define their protypes here,
and implement them in patch 4.
Please split your changes in a consistent way.
Best Regards,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
prev parent reply other threads:[~2015-09-28 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 7:02 [PATCH 2/9] drivers:mtd:ubi:add definition for UBI bakvol operation Bean Huo 霍斌斌 (beanhuo)
2015-09-28 9:48 ` Boris Brezillon [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=20150928114815.698d9f2a@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=Iwo.Mergler@netcommwireless.com \
--cc=adrian.hunter@intel.com \
--cc=asierra@xes-inc.com \
--cc=baruch@tkos.co.il \
--cc=beanhuo@micron.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=frankliu@micron.com \
--cc=gsi@denx.de \
--cc=guz.fnst@cn.fujitsu.com \
--cc=jlauruhn@micron.com \
--cc=karlzhang@micron.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=peterpan@micron.com \
--cc=richard@nod.at \
--cc=rnd4@dave-tech.it \
--cc=sr@denx.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