[PATCH] mtd: rawnand: onfi: Fix endianness when reading NV-DDR values

Miquel Raynal miquel.raynal at bootlin.com
Fri Jun 11 12:03:37 PDT 2021


On Thu, 2021-05-27 at 08:49:13 UTC, Miquel Raynal wrote:
> Without the use of le16_to_cpu(), these accesses would have been wrong
> on a big-endian machine.
> 
> Reported-by: kernel test robot <lkp at intel.com>
> Fixes: 45606518f961 ("mtd: rawnand: Add onfi_fill_nvddr_interface_config() helper")
> Fixes: 9310668fb60a ("mtd: rawnand: Retrieve NV-DDR timing modes from the ONFI parameter page")
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel



More information about the linux-mtd mailing list