Commits

Han Xu committed c967ff22cba
MLK-16329-2: mtd: fsl-flexspi: fix the start address alignment issue FLEXSPI AHBCR register has one bit READADDROPT, which defined if start address must be aligned when doing wordaddress access. This bit must be set (no alignment limitation), otherwise controller may always try to access from even address and got wrong data when AHB read data under Octal DDR mode. Mounting UBIFS failed in this case since it read from odd address. [ 250.367893] fsl_fspi_read: from 620ad1, len: 11 [ 250.374700] UBIFS error (ubi0:0 pid 2871): check_lpt_type: invalid type (4) in LPT node type 2 [ 250.383326] CPU: 0 PID: 2871 Comm: mount Not tainted 4.9.11-03067-gd6ce90a-dirty #251 [ 250.391156] Hardware name: Freescale i.MX8QM ARM2 (DT) [ 250.396291] Call trace: [ 250.398739] [<ffff0000080882bc>] dump_backtrace+0x0/0x1e0 [ 250.404139] [<ffff0000080884b0>] show_stack+0x14/0x1c [ 250.409198] [<ffff0000083b3798>] dump_stack+0x8c/0xac [ 250.414251] [<ffff00000833c434>] check_lpt_type+0x80/0x88 [ 250.419654] [<ffff00000833eb74>] ubifs_lpt_init+0x448/0x8a4 [ 250.425222] [<ffff000008325a38>] ubifs_mount+0xde0/0x198c [ 250.430620] [<ffff0000081db2e0>] mount_fs+0x3c/0x15c [ 250.435589] [<ffff0000081f7070>] vfs_kern_mount+0x4c/0x11c [ 250.441077] [<ffff0000081fa26c>] do_mount+0x1b8/0xb5c [ 250.446125] [<ffff0000081faf3c>] SyS_mount+0x78/0xd8 [ 250.451085] [<ffff000008082f4c>] __sys_trace_return+0x0/0x4 [ 250.456787] ---lpt_init_rd [ 250.459530] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops Signed-off-by: Han Xu <han.xu@nxp.com>