Commit 94005b5
committed
Merge: mtd: spi-nor: core: Use auto-detection only once
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4480
# 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)
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](https://issues.redhat.com/). Please follow the CentOS Stream [contribution documentation](https://docs.centos.org/en-US/stream-contrib/quickstart/) for how to file this ticket and have it approved.
JIRA: https://issues.redhat.com/browse/RHEL-40636
Approved-by: Radu Rendec <rrendec@redhat.com>
Approved-by: Shawn Doherty <sdoherty@redhat.com>
Approved-by: Eric Chanudet <echanude@redhat.com>
Approved-by: Andrew Halaney <ahalaney@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Rado Vrbovsky <rvrbovsk@redhat.com>2 files changed
+66
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
372 | 403 | | |
373 | 404 | | |
374 | 405 | | |
| |||
1848 | 1879 | | |
1849 | 1880 | | |
1850 | 1881 | | |
1851 | | - | |
1852 | | - | |
1853 | | - | |
| 1882 | + | |
| 1883 | + | |
1854 | 1884 | | |
1855 | | - | |
| 1885 | + | |
| 1886 | + | |
1856 | 1887 | | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1861 | 1897 | | |
1862 | 1898 | | |
1863 | 1899 | | |
1864 | 1900 | | |
1865 | 1901 | | |
1866 | | - | |
| 1902 | + | |
1867 | 1903 | | |
1868 | 1904 | | |
1869 | 1905 | | |
1870 | | - | |
1871 | 1906 | | |
1872 | 1907 | | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
| 1908 | + | |
1885 | 1909 | | |
1886 | 1910 | | |
1887 | 1911 | | |
1888 | 1912 | | |
1889 | 1913 | | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
1896 | | - | |
1897 | | - | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
1898 | 1919 | | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
| 1920 | + | |
1903 | 1921 | | |
1904 | 1922 | | |
1905 | 1923 | | |
| |||
2961 | 2979 | | |
2962 | 2980 | | |
2963 | 2981 | | |
2964 | | - | |
2965 | | - | |
| 2982 | + | |
| 2983 | + | |
2966 | 2984 | | |
2967 | 2985 | | |
2968 | 2986 | | |
| |||
3037 | 3055 | | |
3038 | 3056 | | |
3039 | 3057 | | |
3040 | | - | |
| 3058 | + | |
3041 | 3059 | | |
3042 | 3060 | | |
3043 | | - | |
3044 | | - | |
3045 | | - | |
| 3061 | + | |
3046 | 3062 | | |
3047 | 3063 | | |
3048 | 3064 | | |
| |||
3051 | 3067 | | |
3052 | 3068 | | |
3053 | 3069 | | |
3054 | | - | |
| 3070 | + | |
3055 | 3071 | | |
3056 | 3072 | | |
3057 | 3073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
506 | 513 | | |
507 | 514 | | |
508 | 515 | | |
| 516 | + | |
| 517 | + | |
509 | 518 | | |
510 | 519 | | |
511 | 520 | | |
| |||
0 commit comments