From: Ray Jui <rjui@broadcom.com>
To: Brian Norris <computersforpeace@gmail.com>,
<linux-mtd@lists.infradead.org>,
<bcm-kernel-feedback-list@broadcom.com>
Subject: Re: [PATCH] mtd: brcmnand: drop unused subpage_read() support
Date: Tue, 17 Nov 2015 17:11:22 -0800 [thread overview]
Message-ID: <564BD03A.4030309@broadcom.com> (raw)
In-Reply-To: <1447722248-135635-1-git-send-email-computersforpeace@gmail.com>
On 11/16/2015 5:04 PM, Brian Norris wrote:
> AFAIR this driver was never tested with subpage read support, and this
> code is currently unused because we don't set the NAND_SUBPAGE_READ
> flag. It can be resurrected if someone tests it properly.
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> ---
> drivers/mtd/nand/brcmnand/brcmnand.c | 11 -----------
> 1 file changed, 11 deletions(-)
>
> diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c
> index 2a437c7ed175..569d57b5a180 100644
> --- a/drivers/mtd/nand/brcmnand/brcmnand.c
> +++ b/drivers/mtd/nand/brcmnand/brcmnand.c
> @@ -1546,16 +1546,6 @@ static int brcmnand_read_oob_raw(struct mtd_info *mtd, struct nand_chip *chip,
> return 0;
> }
>
> -static int brcmnand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip,
> - uint32_t data_offs, uint32_t readlen,
> - uint8_t *bufpoi, int page)
> -{
> - struct brcmnand_host *host = chip->priv;
> -
> - return brcmnand_read(mtd, chip, host->last_addr + data_offs,
> - readlen >> FC_SHIFT, (u32 *)bufpoi, NULL);
> -}
> -
> static int brcmnand_write(struct mtd_info *mtd, struct nand_chip *chip,
> u64 addr, const u32 *buf, u8 *oob)
> {
> @@ -1944,7 +1934,6 @@ static int brcmnand_init_cs(struct brcmnand_host *host)
>
> chip->ecc.mode = NAND_ECC_HW;
> chip->ecc.read_page = brcmnand_read_page;
> - chip->ecc.read_subpage = brcmnand_read_subpage;
> chip->ecc.write_page = brcmnand_write_page;
> chip->ecc.read_page_raw = brcmnand_read_page_raw;
> chip->ecc.write_page_raw = brcmnand_write_page_raw;
>
Sanity tested on Cygnus WA board. Finished booting to command prompt
with UBIFS based rootfs.
Thanks!
Tested-by: Ray Jui <rjui@broadcom.com>
Ray
next prev parent reply other threads:[~2015-11-18 1:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 1:04 [PATCH] mtd: brcmnand: drop unused subpage_read() support Brian Norris
2015-11-18 1:11 ` Ray Jui [this message]
2015-11-18 22:30 ` Brian Norris
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=564BD03A.4030309@broadcom.com \
--to=rjui@broadcom.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=computersforpeace@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.