]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nfc: port100: lower verbosity of cancelled URB messages
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sun, 7 Nov 2021 14:14:00 +0000 (15:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Nov 2021 19:12:13 +0000 (19:12 +0000)
It is not an error to receive an URB with -ENOENT because it can come
from regular user operations, e.g. pressing CTRL+C when running nfctool
from neard.  Make it a debugging message, not an error.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/port100.c

index 16ceb763594fc92654aa14b747cbb1d8a0379792..d7db1a0e6be1253fce4f284ac360e7c5360dc1f5 100644 (file)
@@ -624,7 +624,7 @@ static void port100_recv_response(struct urb *urb)
                break; /* success */
        case -ECONNRESET:
        case -ENOENT:
-               nfc_err(&dev->interface->dev,
+               nfc_dbg(&dev->interface->dev,
                        "The urb has been canceled (status %d)\n", urb->status);
                goto sched_wq;
        case -ESHUTDOWN:
@@ -678,7 +678,7 @@ static void port100_recv_ack(struct urb *urb)
                break; /* success */
        case -ECONNRESET:
        case -ENOENT:
-               nfc_err(&dev->interface->dev,
+               nfc_dbg(&dev->interface->dev,
                        "The urb has been stopped (status %d)\n", urb->status);
                goto sched_wq;
        case -ESHUTDOWN:
@@ -942,7 +942,7 @@ static void port100_send_complete(struct urb *urb)
                break; /* success */
        case -ECONNRESET:
        case -ENOENT:
-               nfc_err(&dev->interface->dev,
+               nfc_dbg(&dev->interface->dev,
                        "The urb has been stopped (status %d)\n", urb->status);
                break;
        case -ESHUTDOWN: