Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437232 > unrolled thread

[PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level

Started byStephen Boyd <stephen.boyd@linaro.org>
First post2016-07-05 21:00 +0200
Last post2016-07-06 02:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level Stephen Boyd <stephen.boyd@linaro.org> - 2016-07-05 21:00 +0200
    Re: [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg  level Chanwoo Choi <cw00.choi@samsung.com> - 2016-07-06 02:10 +0200

#1437232 — [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level

FromStephen Boyd <stephen.boyd@linaro.org>
Date2016-07-05 21:00 +0200
Subject[PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level
Message-ID<rRDJD-6BU-5@gated-at.bofh.it>
Sometimes drivers may call this API and expect it to fail because
the extcon they're looking for is optional. Let's move these
prints to debug level so it doesn't look like there's a problem
when there isn't one.

Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
---
 drivers/extcon/extcon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 161acb826334..984f50d5297c 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -1096,13 +1096,13 @@ struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index)
 		return ERR_PTR(-EINVAL);
 
 	if (!dev->of_node) {
-		dev_err(dev, "device does not have a device node entry\n");
+		dev_dbg(dev, "device does not have a device node entry\n");
 		return ERR_PTR(-EINVAL);
 	}
 
 	node = of_parse_phandle(dev->of_node, "extcon", index);
 	if (!node) {
-		dev_err(dev, "failed to get phandle in %s node\n",
+		dev_dbg(dev, "failed to get phandle in %s node\n",
 			dev->of_node->full_name);
 		return ERR_PTR(-ENODEV);
 	}
-- 
2.9.0.rc2.8.ga28705d

[toc] | [next] | [standalone]


#1437338 — Re: [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level

FromChanwoo Choi <cw00.choi@samsung.com>
Date2016-07-06 02:10 +0200
SubjectRe: [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level
Message-ID<rRIzD-1GV-19@gated-at.bofh.it>
In reply to#1437232
Hi Stephen,

On 2016년 07월 06일 03:57, Stephen Boyd wrote:
> Sometimes drivers may call this API and expect it to fail because
> the extcon they're looking for is optional. Let's move these
> prints to debug level so it doesn't look like there's a problem
> when there isn't one.
> 
> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
> ---
>  drivers/extcon/extcon.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
> index 161acb826334..984f50d5297c 100644
> --- a/drivers/extcon/extcon.c
> +++ b/drivers/extcon/extcon.c
> @@ -1096,13 +1096,13 @@ struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index)
>  		return ERR_PTR(-EINVAL);
>  
>  	if (!dev->of_node) {
> -		dev_err(dev, "device does not have a device node entry\n");
> +		dev_dbg(dev, "device does not have a device node entry\n");
>  		return ERR_PTR(-EINVAL);
>  	}
>  
>  	node = of_parse_phandle(dev->of_node, "extcon", index);
>  	if (!node) {
> -		dev_err(dev, "failed to get phandle in %s node\n",
> +		dev_dbg(dev, "failed to get phandle in %s node\n",
>  			dev->of_node->full_name);
>  		return ERR_PTR(-ENODEV);
>  	}
> 

Applied it.

Thanks,
Chanwoo Choi

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web