Commit 3b1a774b authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: usb: add ep number to log

This patch adds the endpoint number of the USB pipe that reports to be
broken into the log message. It is needed to make debugging for
applications more comfortable.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aba258b7
...@@ -354,7 +354,8 @@ static void hdm_write_completion(struct urb *urb) ...@@ -354,7 +354,8 @@ static void hdm_write_completion(struct urb *urb)
mbo->status = MBO_SUCCESS; mbo->status = MBO_SUCCESS;
break; break;
case -EPIPE: case -EPIPE:
dev_warn(dev, "Broken OUT pipe detected\n"); dev_warn(dev, "Broken pipe on ep%02x\n",
mdev->ep_address[channel]);
mdev->is_channel_healthy[channel] = false; mdev->is_channel_healthy[channel] = false;
mdev->clear_work[channel].pipe = urb->pipe; mdev->clear_work[channel].pipe = urb->pipe;
schedule_work(&mdev->clear_work[channel].ws); schedule_work(&mdev->clear_work[channel].ws);
...@@ -507,7 +508,8 @@ static void hdm_read_completion(struct urb *urb) ...@@ -507,7 +508,8 @@ static void hdm_read_completion(struct urb *urb)
} }
break; break;
case -EPIPE: case -EPIPE:
dev_warn(dev, "Broken IN pipe detected\n"); dev_warn(dev, "Broken pipe on ep%02x\n",
mdev->ep_address[channel]);
mdev->is_channel_healthy[channel] = false; mdev->is_channel_healthy[channel] = false;
mdev->clear_work[channel].pipe = urb->pipe; mdev->clear_work[channel].pipe = urb->pipe;
schedule_work(&mdev->clear_work[channel].ws); schedule_work(&mdev->clear_work[channel].ws);
...@@ -517,7 +519,8 @@ static void hdm_read_completion(struct urb *urb) ...@@ -517,7 +519,8 @@ static void hdm_read_completion(struct urb *urb)
mbo->status = MBO_E_CLOSE; mbo->status = MBO_E_CLOSE;
break; break;
case -EOVERFLOW: case -EOVERFLOW:
dev_warn(dev, "Babble on IN pipe detected\n"); dev_warn(dev, "Babble on ep%02x\n",
mdev->ep_address[channel]);
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment