linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] gpiolib: Downgrade set_debounce() missing operation warning
@ 2013-09-06 12:38 Mark Brown
  2013-09-06 12:38 ` [PATCH 2/3] gpiolib: Provide helper macros for logging of GPIO events Mark Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark Brown @ 2013-09-06 12:38 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-gpio, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

It is reasonable for a driver using a GPIO to call set_debounce() on GPIOs
that don't provide this support in hardware since the driver can fall back
on a software debounce implementation or otherwise not depend on success
so downgrade the log message for this to a debug one.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 drivers/gpio/gpiolib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index b762718..374cf9e 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1779,8 +1779,8 @@ static int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce)
 
 	chip = desc->chip;
 	if (!chip->set || !chip->set_debounce) {
-		pr_warn("%s: missing set() or set_debounce() operations\n",
-			__func__);
+		pr_debug("%s: missing set() or set_debounce() operations\n",
+			 __func__);
 		return -EIO;
 	}
 
-- 
1.8.4.rc3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-09  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 12:38 [PATCH 1/3] gpiolib: Downgrade set_debounce() missing operation warning Mark Brown
2013-09-06 12:38 ` [PATCH 2/3] gpiolib: Provide helper macros for logging of GPIO events Mark Brown
2013-09-07  2:34   ` Alexandre Courbot
2013-09-07 13:10     ` Mark Brown
2013-09-06 12:38 ` [PATCH 3/3] gpiolib: Include GPIO label in log messages for GPIOs Mark Brown
2013-09-09  7:47 ` [PATCH 1/3] gpiolib: Downgrade set_debounce() missing operation warning Linus Walleij
2013-09-09  9:26   ` Mark Brown

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).