mrf24j40: Warn if transmit interrupts timeout
authorAlan Ott <alan@signal11.us>
Mon, 18 Mar 2013 12:06:41 +0000 (12:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2013 14:07:49 +0000 (10:07 -0400)
Issue a warning if a transmit complete interrupt doesn't happen in time.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/mrf24j40.c

index 3106895e8b91a4f25d19f802497d154108bc55b5..582c0a3d5773d86bbb776146d65eb866d1015392 100644 (file)
@@ -362,6 +362,7 @@ static int mrf24j40_tx(struct ieee802154_dev *dev, struct sk_buff *skb)
        if (ret == -ERESTARTSYS)
                goto err;
        if (ret == 0) {
+               dev_warn(printdev(devrec), "Timeout waiting for TX interrupt\n");
                ret = -ETIMEDOUT;
                goto err;
        }