* [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver
@ 2015-06-20 0:49 Sergei Shtylyov
2015-06-20 0:50 ` [PATCH 1/2] rcar_can: print request_irq() error code Sergei Shtylyov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2015-06-20 0:49 UTC (permalink / raw)
To: netdev, wg, mkl, linux-can; +Cc: linux-sh
Hello.
Here's the set of 2 patches against Marc Kleine-Budde's 'linux-can.git'
repo plus 3 fix patches just posted; they are small error message cleanups for
the Renesas R-Car CAN driver.
[1/2] rcar_can: print request_irq() error code
[2/2] rcar_can: unify error messages
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] rcar_can: print request_irq() error code
2015-06-20 0:49 [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Sergei Shtylyov
@ 2015-06-20 0:50 ` Sergei Shtylyov
2015-06-20 0:51 ` [PATCH 2/2] rcar_can: unify error messages Sergei Shtylyov
2015-07-01 9:01 ` [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Marc Kleine-Budde
2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2015-06-20 0:50 UTC (permalink / raw)
To: netdev, wg, mkl, linux-can; +Cc: linux-sh
Also print the error code when the request_irq() call fails in rcar_can_open(),
rewording the error message...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
drivers/net/can/rcar_can.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: linux-can/drivers/net/can/rcar_can.c
=================================--- linux-can.orig/drivers/net/can/rcar_can.c
+++ linux-can/drivers/net/can/rcar_can.c
@@ -527,7 +527,8 @@ static int rcar_can_open(struct net_devi
napi_enable(&priv->napi);
err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev);
if (err) {
- netdev_err(ndev, "error requesting interrupt %d\n", ndev->irq);
+ netdev_err(ndev, "request_irq(%d) failed, error %d\n",
+ ndev->irq, err);
goto out_close;
}
can_led_event(ndev, CAN_LED_EVENT_OPEN);
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] rcar_can: unify error messages
2015-06-20 0:49 [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Sergei Shtylyov
2015-06-20 0:50 ` [PATCH 1/2] rcar_can: print request_irq() error code Sergei Shtylyov
@ 2015-06-20 0:51 ` Sergei Shtylyov
2015-07-01 9:01 ` [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Marc Kleine-Budde
2 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2015-06-20 0:51 UTC (permalink / raw)
To: netdev, wg, mkl, linux-can; +Cc: linux-sh
All the error messages in the driver but the ones from devm_clk_get() failures
use similar format. Make those two messages consitent with others.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
drivers/net/can/rcar_can.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: linux-can/drivers/net/can/rcar_can.c
=================================--- linux-can.orig/drivers/net/can/rcar_can.c
+++ linux-can/drivers/net/can/rcar_can.c
@@ -785,7 +785,8 @@ static int rcar_can_probe(struct platfor
priv->clk = devm_clk_get(&pdev->dev, "clkp1");
if (IS_ERR(priv->clk)) {
err = PTR_ERR(priv->clk);
- dev_err(&pdev->dev, "cannot get peripheral clock: %d\n", err);
+ dev_err(&pdev->dev, "cannot get peripheral clock, error %d\n",
+ err);
goto fail_clk;
}
@@ -797,7 +798,7 @@ static int rcar_can_probe(struct platfor
priv->can_clk = devm_clk_get(&pdev->dev, clock_names[clock_select]);
if (IS_ERR(priv->can_clk)) {
err = PTR_ERR(priv->can_clk);
- dev_err(&pdev->dev, "cannot get CAN clock: %d\n", err);
+ dev_err(&pdev->dev, "cannot get CAN clock, error %d\n", err);
goto fail_clk;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver
2015-06-20 0:49 [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Sergei Shtylyov
2015-06-20 0:50 ` [PATCH 1/2] rcar_can: print request_irq() error code Sergei Shtylyov
2015-06-20 0:51 ` [PATCH 2/2] rcar_can: unify error messages Sergei Shtylyov
@ 2015-07-01 9:01 ` Marc Kleine-Budde
2 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2015-07-01 9:01 UTC (permalink / raw)
To: Sergei Shtylyov, netdev, wg, linux-can; +Cc: linux-sh
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
On 06/20/2015 02:49 AM, Sergei Shtylyov wrote:
> Hello.
>
> Here's the set of 2 patches against Marc Kleine-Budde's 'linux-can.git'
> repo plus 3 fix patches just posted; they are small error message cleanups for
> the Renesas R-Car CAN driver.
Applied both series to can/master.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-01 9:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 0:49 [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Sergei Shtylyov
2015-06-20 0:50 ` [PATCH 1/2] rcar_can: print request_irq() error code Sergei Shtylyov
2015-06-20 0:51 ` [PATCH 2/2] rcar_can: unify error messages Sergei Shtylyov
2015-07-01 9:01 ` [PATCH 0/2] Error message clean-ups for Renesas R-Car CAN driver Marc Kleine-Budde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).