Skip to content

mtd: spi-nor: core: Use auto-detection only once

Joel Slebodnick requested to merge jslebodn/centos-stream-9:spimtdfix-v0 into main

Merge Request Required Information

Summary of Changes

When using the SPI driver, a spi-nor probing error -ENOENT is shown in dmesg. This commit makes it so that instead of returning -ENOENT when spi_nor_read_id results in NULL, we return NULL instead (the result of the function call to spi_nor_read_id)

Omitted c0abb861c5d0 mtd: spi-nor: Introduce templates for SPI NOR operations
because it causes too many side effects on files that are not relevant

Tested on TIJ784 board with SPI configs enabled. After applying commits, the probing error was no longer shown in dmesg.

Signed-off-by: Joel Slebodnick jslebodn@redhat.com

Approved Development Ticket

All submissions to CentOS Stream must reference an approved ticket in Red Hat Jira. Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.
JIRA: https://issues.redhat.com/browse/RHEL-40636

Merge request reports