All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] input: serio: drop warnings in case of EPROBE_DEFER from serio_find_driver()
@ 2016-01-15 18:01 ` Grygorii Strashko
  0 siblings, 0 replies; 7+ messages in thread
From: Grygorii Strashko @ 2016-01-15 18:01 UTC (permalink / raw)
  To: Dmitry Torokhov
  Cc: linux-input, nsekhar, linux-kernel, lkp, Grygorii Strashko,
	Rafael J . Wysocki

Now serio_find_driver() will print warnings in case device_attach()
returns -EPROBE_DEFER. Those warnings are obsolete, in genral, because:
- DD core can report the same if required
- since commit 013c074f8642 ("PM / sleep: prohibit devices probing
during suspend/hibernation") the devices probing is prohibited during
System suspend and deferred device will be carefully reprobed once
Resume is finished.

Hence, drop warnings in case of EPROBE_DEFER from serio_find_driver().

Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 drivers/input/serio/serio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c
index 8f82897..1ca7f55 100644
--- a/drivers/input/serio/serio.c
+++ b/drivers/input/serio/serio.c
@@ -134,7 +134,7 @@ static void serio_find_driver(struct serio *serio)
 	int error;
 
 	error = device_attach(&serio->dev);
-	if (error < 0)
+	if (error < 0 && error != -EPROBE_DEFER)
 		dev_warn(&serio->dev,
 			 "device_attach() failed for %s (%s), error: %d\n",
 			 serio->phys, serio->name, error);
-- 
2.7.0

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

end of thread, other threads:[~2016-01-16 18:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 18:01 [PATCH] input: serio: drop warnings in case of EPROBE_DEFER from serio_find_driver() Grygorii Strashko
2016-01-15 18:01 ` Grygorii Strashko
2016-01-15 18:01 ` Grygorii Strashko
2016-01-15 20:53 ` Rafael J. Wysocki
2016-01-15 20:53   ` Rafael J. Wysocki
2016-01-16 18:36   ` Dmitry Torokhov
2016-01-16 18:36     ` Dmitry Torokhov

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.