* [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error
@ 2022-04-12 21:26 Bjorn Andersson
2022-04-13 3:11 ` Vinod Koul
2022-04-15 21:20 ` Wolfram Sang
0 siblings, 2 replies; 4+ messages in thread
From: Bjorn Andersson @ 2022-04-12 21:26 UTC (permalink / raw)
To: Vinod Koul; +Cc: linux-arm-msm, linux-i2c, linux-kernel
The GPI DMA engine driver can be compiled as a module, in which case the
likely probe deferral "error" shows up in the kernel log. Switch to
using dev_err_probe() to silence this warning and to ensure that
"devices_deferred" in debugfs carries this information.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
drivers/i2c/busses/i2c-qcom-geni.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
index fc1dcc19f2a1..5b920f0fc7dd 100644
--- a/drivers/i2c/busses/i2c-qcom-geni.c
+++ b/drivers/i2c/busses/i2c-qcom-geni.c
@@ -843,10 +843,8 @@ static int geni_i2c_probe(struct platform_device *pdev)
/* FIFO is disabled, so we can only use GPI DMA */
gi2c->gpi_mode = true;
ret = setup_gpi_dma(gi2c);
- if (ret) {
- dev_err(dev, "Failed to setup GPI DMA mode:%d ret\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(dev, ret, "Failed to setup GPI DMA mode\n");
dev_dbg(dev, "Using GPI DMA mode for I2C\n");
} else {
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error
2022-04-12 21:26 [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error Bjorn Andersson
@ 2022-04-13 3:11 ` Vinod Koul
2022-04-13 3:57 ` Vinod Koul
2022-04-15 21:20 ` Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2022-04-13 3:11 UTC (permalink / raw)
To: Bjorn Andersson; +Cc: linux-arm-msm, linux-i2c, linux-kernel
On 12-04-22, 14:26, Bjorn Andersson wrote:
> The GPI DMA engine driver can be compiled as a module, in which case the
> likely probe deferral "error" shows up in the kernel log. Switch to
> using dev_err_probe() to silence this warning and to ensure that
> "devices_deferred" in debugfs carries this information.
Reviewed-by: Vinod Koul <vkoul@kernel.org>
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error
2022-04-13 3:11 ` Vinod Koul
@ 2022-04-13 3:57 ` Vinod Koul
0 siblings, 0 replies; 4+ messages in thread
From: Vinod Koul @ 2022-04-13 3:57 UTC (permalink / raw)
To: Bjorn Andersson, Wolfram Sang; +Cc: linux-arm-msm, linux-i2c, linux-kernel
+ Wolfram
On 13-04-22, 08:41, Vinod Koul wrote:
> On 12-04-22, 14:26, Bjorn Andersson wrote:
> > The GPI DMA engine driver can be compiled as a module, in which case the
> > likely probe deferral "error" shows up in the kernel log. Switch to
> > using dev_err_probe() to silence this warning and to ensure that
> > "devices_deferred" in debugfs carries this information.
Somehow maintainers doesnt list Wolfram... maybe thats how you skipped
it..
>
> Reviewed-by: Vinod Koul <vkoul@kernel.org>
>
> --
> ~Vinod
--
~Vinod
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error
2022-04-12 21:26 [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error Bjorn Andersson
2022-04-13 3:11 ` Vinod Koul
@ 2022-04-15 21:20 ` Wolfram Sang
1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2022-04-15 21:20 UTC (permalink / raw)
To: Bjorn Andersson; +Cc: Vinod Koul, linux-arm-msm, linux-i2c, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 444 bytes --]
On Tue, Apr 12, 2022 at 02:26:01PM -0700, Bjorn Andersson wrote:
> The GPI DMA engine driver can be compiled as a module, in which case the
> likely probe deferral "error" shows up in the kernel log. Switch to
> using dev_err_probe() to silence this warning and to ensure that
> "devices_deferred" in debugfs carries this information.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-15 21:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 21:26 [PATCH] i2c: qcom-geni: Use dev_err_probe() for GPI DMA error Bjorn Andersson
2022-04-13 3:11 ` Vinod Koul
2022-04-13 3:57 ` Vinod Koul
2022-04-15 21:20 ` Wolfram Sang
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.