* [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error
@ 2026-11-29 19:25 Jiawen Liu
2026-11-30 2:11 ` Krzysztof Kozlowski
2026-11-30 19:31 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Jiawen Liu @ 2026-11-29 19:25 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-spi
On StarFive JH7110, cqspi_probe() deasserts the QSPI reference reset
through the SYSCRG reset controller. The provider returns -ETIMEDOUT
if hardware does not acknowledge deassertion. Ignoring the error can
leave the driver initializing and registering a controller still in
reset, preventing SPI NOR identification.
Report the deassert error with dev_err_probe() and use the existing
clock cleanup path to return the original errno before IRQ registration
or controller initialization.
Verified by source review,
git diff --check, checkpatch, and driver object builds on RISC-V
StarFive with reset support enabled and x86-64 with it disabled.
Runtime and hardware reproduction were not performed.
Fixes: 47fef94afeae ("spi: cadence-quadspi: Add support for StarFive JH7110 QSPI")
Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>
---
drivers/spi/spi-cadence-quadspi.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index 44d96b8cf8f0c..dd9fd5b7cdbff 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -1896,7 +1896,11 @@ static int cqspi_probe(struct platform_device *pdev)
goto disable_clks;
}
reset_control_assert(rstc_ref);
- reset_control_deassert(rstc_ref);
+ ret = reset_control_deassert(rstc_ref);
+ if (ret) {
+ dev_err_probe(dev, ret, "Failed to deassert QSPI REF reset\n");
+ goto disable_clks;
+ }
}
reset_control_assert(rstc);
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error
2026-11-29 19:25 [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error Jiawen Liu
@ 2026-11-30 2:11 ` Krzysztof Kozlowski
2026-11-30 19:31 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-30 2:11 UTC (permalink / raw)
To: Jiawen Liu; +Cc: linux-spi, Mark Brown
On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote:
> On StarFive JH7110, cqspi_probe() deasserts the QSPI reference reset
> through the SYSCRG reset controller. The provider returns -ETIMEDOUT
> if hardware does not acknowledge deassertion. Ignoring the error can
> leave the driver initializing and registering a controller still in
> reset, preventing SPI NOR identification.
>
> Report the deassert error with dev_err_probe() and use the existing
> clock cleanup path to return the original errno before IRQ registration
> or controller initialization.
>
> Verified by source review,
> git diff --check, checkpatch, and driver object builds on RISC-V
> StarFive with reset support enabled and x86-64 with it disabled.
> Runtime and hardware reproduction were not performed.
>
> Fixes: 47fef94afeae ("spi: cadence-quadspi: Add support for StarFive JH7110 QSPI")
> Signed-off-by: Jiawen Liu <liu1298662399@gmail.com>
> ---
> drivers/spi/spi-cadence-quadspi.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.
More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.
Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error
2026-11-29 19:25 [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error Jiawen Liu
2026-11-30 2:11 ` Krzysztof Kozlowski
@ 2026-11-30 19:31 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-11-30 19:31 UTC (permalink / raw)
To: Jiawen Liu; +Cc: linux-spi
On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote:
> spi: cadence-quadspi: Fail probe on reference reset deassertion error
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.5
Thanks!
[1/1] spi: cadence-quadspi: Fail probe on reference reset deassertion error
https://git.kernel.org/broonie/spi/c/54e7c4d96475
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-01 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-29 19:25 [PATCH] spi: cadence-quadspi: Fail probe on reference reset deassertion error Jiawen Liu
2026-11-30 2:11 ` Krzysztof Kozlowski
2026-11-30 19:31 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.