diff options
-rw-r--r-- | drivers/staging/usbip/usbip_common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c index 337abc48f714..85622153ea7c 100644 --- a/drivers/staging/usbip/usbip_common.c +++ b/drivers/staging/usbip/usbip_common.c | |||
@@ -333,10 +333,11 @@ void usbip_dump_header(struct usbip_header *pdu) | |||
333 | usbip_udbg("CMD_UNLINK: seq %u\n", pdu->u.cmd_unlink.seqnum); | 333 | usbip_udbg("CMD_UNLINK: seq %u\n", pdu->u.cmd_unlink.seqnum); |
334 | break; | 334 | break; |
335 | case USBIP_RET_SUBMIT: | 335 | case USBIP_RET_SUBMIT: |
336 | usbip_udbg("RET_SUBMIT: st %d al %u sf %d ec %d\n", | 336 | usbip_udbg("RET_SUBMIT: st %d al %u sf %d #p %d ec %d\n", |
337 | pdu->u.ret_submit.status, | 337 | pdu->u.ret_submit.status, |
338 | pdu->u.ret_submit.actual_length, | 338 | pdu->u.ret_submit.actual_length, |
339 | pdu->u.ret_submit.start_frame, | 339 | pdu->u.ret_submit.start_frame, |
340 | pdu->u.ret_submit.number_of_packets, | ||
340 | pdu->u.ret_submit.error_count); | 341 | pdu->u.ret_submit.error_count); |
341 | case USBIP_RET_UNLINK: | 342 | case USBIP_RET_UNLINK: |
342 | usbip_udbg("RET_UNLINK: status %d\n", pdu->u.ret_unlink.status); | 343 | usbip_udbg("RET_UNLINK: status %d\n", pdu->u.ret_unlink.status); |
@@ -520,6 +521,7 @@ static void usbip_pack_ret_submit(struct usbip_header *pdu, struct urb *urb, | |||
520 | rpdu->status = urb->status; | 521 | rpdu->status = urb->status; |
521 | rpdu->actual_length = urb->actual_length; | 522 | rpdu->actual_length = urb->actual_length; |
522 | rpdu->start_frame = urb->start_frame; | 523 | rpdu->start_frame = urb->start_frame; |
524 | rpdu->number_of_packets = urb->number_of_packets; | ||
523 | rpdu->error_count = urb->error_count; | 525 | rpdu->error_count = urb->error_count; |
524 | } else { | 526 | } else { |
525 | /* vhci_rx.c */ | 527 | /* vhci_rx.c */ |
@@ -527,6 +529,7 @@ static void usbip_pack_ret_submit(struct usbip_header *pdu, struct urb *urb, | |||
527 | urb->status = rpdu->status; | 529 | urb->status = rpdu->status; |
528 | urb->actual_length = rpdu->actual_length; | 530 | urb->actual_length = rpdu->actual_length; |
529 | urb->start_frame = rpdu->start_frame; | 531 | urb->start_frame = rpdu->start_frame; |
532 | urb->number_of_packets = rpdu->number_of_packets; | ||
530 | urb->error_count = rpdu->error_count; | 533 | urb->error_count = rpdu->error_count; |
531 | } | 534 | } |
532 | } | 535 | } |
@@ -595,11 +598,13 @@ static void correct_endian_ret_submit(struct usbip_header_ret_submit *pdu, | |||
595 | cpu_to_be32s(&pdu->status); | 598 | cpu_to_be32s(&pdu->status); |
596 | cpu_to_be32s(&pdu->actual_length); | 599 | cpu_to_be32s(&pdu->actual_length); |
597 | cpu_to_be32s(&pdu->start_frame); | 600 | cpu_to_be32s(&pdu->start_frame); |
601 | cpu_to_be32s(&pdu->number_of_packets); | ||
598 | cpu_to_be32s(&pdu->error_count); | 602 | cpu_to_be32s(&pdu->error_count); |
599 | } else { | 603 | } else { |
600 | be32_to_cpus(&pdu->status); | 604 | be32_to_cpus(&pdu->status); |
601 | be32_to_cpus(&pdu->actual_length); | 605 | be32_to_cpus(&pdu->actual_length); |
602 | be32_to_cpus(&pdu->start_frame); | 606 | be32_to_cpus(&pdu->start_frame); |
607 | cpu_to_be32s(&pdu->number_of_packets); | ||
603 | be32_to_cpus(&pdu->error_count); | 608 | be32_to_cpus(&pdu->error_count); |
604 | } | 609 | } |
605 | } | 610 | } |