aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorShivamurthy Shastri <[email protected]>2023-09-19 13:33:20 +0200
committerMiquel Raynal <[email protected]>2023-09-22 16:33:34 +0200
commit3cff177fc2793a362d784c912f536e69a755925e (patch)
treedccf792a8f7411a389edc549b32fb7452fee4dac /net/lapb/lapb_in.c
parent28a05da765c0cd21654ef5fed3b53af5cd278d63 (diff)
mtd: map_ram: prevent use of point and unpoint when NO_XIP is set
When the DT property no-unaligned-direct-access is set, map->phys is set to NO_XIP. With this property set, the flash should not be exposed directly to MTD users, since it cannot be mapped. map_ram() exposes the flash direct access unconditionally which leads to access errors (when the bus width does not match the RAM width). Therefore do not set point and unpoint when NO_XIP is set. Signed-off-by: Shivamurthy Shastri <[email protected]> Reviewed-by: Benedikt Spranger <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions