Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1564482 > unrolled thread
| Started by | Marcos Paulo de Souza <marcos.souza.org@gmail.com> |
|---|---|
| First post | 2017-01-22 19:00 +0100 |
| Last post | 2017-01-22 23:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH -v2] Input: i8042: Add dbg msg when a command can't write its parameter Marcos Paulo de Souza <marcos.souza.org@gmail.com> - 2017-01-22 19:00 +0100
Re: [PATCH -v2] Input: i8042: Add dbg msg when a command can't write its parameter Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-22 23:40 +0100
| From | Marcos Paulo de Souza <marcos.souza.org@gmail.com> |
|---|---|
| Date | 2017-01-22 19:00 +0100 |
| Subject | [PATCH -v2] Input: i8042: Add dbg msg when a command can't write its parameter |
| Message-ID | <t2uAO-3K7-25@gated-at.bofh.it> |
This can happen in cases like bug #102951[1], so add a proper debug msg
as done in wait_read. Also, change wait_read debug message to differ from
wait_write.
[1] https://bugzilla.kernel.org/show_bug.cgi?id=102951
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
---
Changes from v1:
* use dbg instead of pr_warn
drivers/input/serio/i8042.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 62685a7..cba6831 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -312,8 +312,10 @@ static int __i8042_command(unsigned char *param, int command)
for (i = 0; i < ((command >> 12) & 0xf); i++) {
error = i8042_wait_write();
- if (error)
+ if (error) {
+ dbg(" -- i8042 (timeout wait_write)\n");
return error;
+ }
dbg("%02x -> i8042 (parameter)\n", param[i]);
i8042_write_data(param[i]);
}
@@ -321,7 +323,7 @@ static int __i8042_command(unsigned char *param, int command)
for (i = 0; i < ((command >> 8) & 0xf); i++) {
error = i8042_wait_read();
if (error) {
- dbg(" -- i8042 (timeout)\n");
+ dbg(" -- i8042 (timeout wait_read)\n");
return error;
}
--
2.9.3
[toc] | [next] | [standalone]
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Date | 2017-01-22 23:40 +0100 |
| Subject | Re: [PATCH -v2] Input: i8042: Add dbg msg when a command can't write its parameter |
| Message-ID | <t2yXL-6yI-21@gated-at.bofh.it> |
| In reply to | #1564482 |
On Sun, Jan 22, 2017 at 03:55:19PM -0200, Marcos Paulo de Souza wrote:
> This can happen in cases like bug #102951[1], so add a proper debug msg
> as done in wait_read. Also, change wait_read debug message to differ from
> wait_write.
>
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=102951
>
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Applied, thank you.
> ---
> Changes from v1:
> * use dbg instead of pr_warn
>
> drivers/input/serio/i8042.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
> index 62685a7..cba6831 100644
> --- a/drivers/input/serio/i8042.c
> +++ b/drivers/input/serio/i8042.c
> @@ -312,8 +312,10 @@ static int __i8042_command(unsigned char *param, int command)
>
> for (i = 0; i < ((command >> 12) & 0xf); i++) {
> error = i8042_wait_write();
> - if (error)
> + if (error) {
> + dbg(" -- i8042 (timeout wait_write)\n");
> return error;
> + }
> dbg("%02x -> i8042 (parameter)\n", param[i]);
> i8042_write_data(param[i]);
> }
> @@ -321,7 +323,7 @@ static int __i8042_command(unsigned char *param, int command)
> for (i = 0; i < ((command >> 8) & 0xf); i++) {
> error = i8042_wait_read();
> if (error) {
> - dbg(" -- i8042 (timeout)\n");
> + dbg(" -- i8042 (timeout wait_read)\n");
> return error;
> }
>
> --
> 2.9.3
>
--
Dmitry
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web