diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-11-23 11:23:07 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2016-02-13 10:34:04 +0000 |
commit | f247d52ac47d2cccf7536ca98f6a741a8f028174 (patch) | |
tree | 5aed7b18afe41361d54cde42a458b3833b442485 /include/linux | |
parent | 636109645fa424fd896db9f25ddfd39a6cdc110f (diff) | |
download | lwn-f247d52ac47d2cccf7536ca98f6a741a8f028174.tar.gz lwn-f247d52ac47d2cccf7536ca98f6a741a8f028174.zip |
mtd: nand: fix ONFI parameter page layout
commit de64aa9ec129ba627634088f662a4d09e356ddb6 upstream.
src_ssync_features field is only 1 byte large, and the 4th reserved area
is actually 8 bytes large.
Fixes: d1e1f4e42b5 ("mtd: nand: add support for reading ONFI parameters from NAND device")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/nand.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index b25b09b1ea00..0c4f0ddc8267 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -283,7 +283,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; @@ -291,7 +291,7 @@ struct nand_onfi_params { u8 driver_strenght_support; __le16 t_int_r; __le16 t_ald; - u8 reserved4[7]; + u8 reserved4[8]; /* vendor */ u8 reserved5[90]; |