karo: fdt: fix panel-dpi support commit fefe948bd273 ("karo: fdt: support 'panel-dpi' in DT") inadvertedly copies the 'phandle' property from the 'display-timing' node. This creates a new property in the 'panel-timing' node which invalidates all FDT offsets being used by the karo_fixup_panel_timing() routine. Add a whitelist of properties to copy and recalculate all FDT offsets after possible creation of a new property in the panel-timing node. Also delete properties in the panel-timing node that don't exist in the display-timings node. Fixes: fefe948bd273 ("karo: fdt: support 'panel-dpi' in DT")
fs/fs.c: correctly interpret the '(max)len' parameter to fs_read() The 'len' parameter passed to fs_read() actually denotes the maximum number of bytes that fit into the callers buffer, not an expected amount of data to be read. Rename the parameter accordingly and honor the maxlen requested by the caller appropriately. Also remove the bogus warning message printed when the number of bytes read is smaller than maxlen.
karo: introduce variables 'safeboot' and 'wdreset' The environment variable 'safeboot' will be set when <CTRL-C> is detected early in the boot process. 'wdreset' is set when the last boot cause was a watchdog reset. This makes it possible to handle these events from the boot scripts.