diff options
| author | Qiang Ma <maqianga@uniontech.com> | 2026-05-15 18:26:20 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-15 22:42:42 +0900 |
| commit | 59b991990a04b1d1ce95373983b7c8b65bdf7acc (patch) | |
| tree | a644feb1a66c174602ed7d30f9310323bd8dc3c4 /scripts/const_structs.checkpatch | |
| parent | fe46080cc0a73b05b1fb6a18dc519664999cb0be (diff) | |
spi: hisi-kunpeng: Use dev_err_probe() for host registration failure
When the SPI core registers the Kunpeng controller it may need to acquire
chip-select GPIO descriptors. If the GPIO provider has not probed yet,
spi_register_controller() returns -EPROBE_DEFER.
On a Kunpeng system this currently prints an alarming error even though the
next deferred-probe retry succeeds:
hisi-kunpeng-spi HISI03E1:00: failed to register spi host, ret=-517
hisi-kunpeng-spi HISI03E1:00: hw version:0x30 max-freq:12500 kHz
Use dev_err_probe() so that -EPROBE_DEFER is reported through the deferred
probe mechanism instead of as a hard error, while preserving normal error
reporting for real registration failures.
Fixes: c770d8631e18 ("spi: Add HiSilicon SPI Controller Driver for Kunpeng SoCs")
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Link: https://patch.msgid.link/20260515102620.1926930-1-maqianga@uniontech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
