aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorAapo Vienamo <[email protected]>2024-03-13 17:34:25 +0000
committerMiquel Raynal <[email protected]>2024-03-25 09:26:55 +0000
commitfe0b8213c0129ff2419458343d8d8e716b1495c0 (patch)
treecc3aec53748a36974205e7132fbae2eca653a96d /scripts/generate_rust_target.rs
parentmtd: core: Report error if first mtd_otp_size() call fails in mtd_otp_nvmem_a... (diff)
downloadkernel-fe0b8213c0129ff2419458343d8d8e716b1495c0.tar.gz
kernel-fe0b8213c0129ff2419458343d8d8e716b1495c0.zip
mtd: core: Don't fail mtd_otp_nvmem_add() if OTP is unsupported
Handle the case where -EOPNOTSUPP is returned from OTP driver. This addresses an issue that occurs with the Intel SPI flash controller, which has a limited supported opcode set. Whilst the OTP functionality is not available due to this restriction, other parts of the MTD functionality of the device are intact. This change allows the driver to gracefully handle the restriction by allowing the supported functionality to remain available instead of failing the probe altogether. Signed-off-by: Aapo Vienamo <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Reviewed-by: Michael Walle <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions