From: Brian Norris <computersforpeace@gmail.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] mtd: nand: fix ONFI parameter page layout
Date: Mon, 30 Nov 2015 12:17:29 -0800 [thread overview]
Message-ID: <20151130201729.GK64635@google.com> (raw)
In-Reply-To: <1448274187-22174-1-git-send-email-boris.brezillon@free-electrons.com>
On Mon, Nov 23, 2015 at 11:23:07AM +0100, Boris Brezillon wrote:
> src_ssync_features field is only 1 byte large, and the 4th reserved area
> is actually 8 bytes large.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
> Fixes d1e1f4e42b5 ("mtd: nand: add support for reading ONFI parameters from NAND device")
> Cc: <stable@vger.kernel.org> #v2.6.37+
Did you see an actual problem from this? (And is this deserving of
stable?) I could imagine an out-of-tree driver might try to use t_ald
(which should actually be t_adl, right?) and get the wrong value. But no
one does that in-tree yet.
> ---
> include/linux/mtd/nand.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
> index 5a9d1d4..93fc372 100644
> --- a/include/linux/mtd/nand.h
> +++ b/include/linux/mtd/nand.h
> @@ -276,7 +276,7 @@ struct nand_onfi_params {
> __le16 t_r;
> __le16 t_ccs;
> __le16 src_sync_timing_mode;
> - __le16 src_ssync_features;
> + u8 src_ssync_features;
> __le16 clk_pin_capacitance_typ;
> __le16 io_pin_capacitance_typ;
> __le16 input_pin_capacitance_typ;
> @@ -284,7 +284,7 @@ struct nand_onfi_params {
> u8 driver_strength_support;
> __le16 t_int_r;
> __le16 t_ald;
> - u8 reserved4[7];
> + u8 reserved4[8];
>
> /* vendor */
> __le16 vendor_revision;
Patch looks good.
Brian
next prev parent reply other threads:[~2015-11-30 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 10:23 [PATCH] mtd: nand: fix ONFI parameter page layout Boris Brezillon
2015-11-30 20:17 ` Brian Norris [this message]
2015-12-01 9:33 ` Boris Brezillon
2015-12-01 19:05 ` Brian Norris
2015-12-01 19:10 ` Boris Brezillon
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=20151130201729.GK64635@google.com \
--to=computersforpeace@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=stable@vger.kernel.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.