Revision dcbd0b5c hw/usb-ehci.c

b/hw/usb-ehci.c
604 604
    EHCIState *s = port->opaque;
605 605
    uint32_t *portsc = &s->portsc[port->index];
606 606

  
607
    DPRINTF("ehci_attach invoked for index %d, portsc 0x%x, desc %s\n",
608
           port->index, *portsc, port->dev->product_desc);
607
    trace_usb_ehci_port_attach(port->index, port->dev->product_desc);
609 608

  
610 609
    *portsc |= PORTSC_CONNECT;
611 610
    *portsc |= PORTSC_CSC;
......
625 624
    EHCIState *s = port->opaque;
626 625
    uint32_t *portsc = &s->portsc[port->index];
627 626

  
628
    DPRINTF("ehci_attach invoked for index %d, portsc 0x%x\n",
629
           port->index, *portsc);
627
    trace_usb_ehci_port_detach(port->index);
630 628

  
631 629
    *portsc &= ~PORTSC_CONNECT;
632 630
    *portsc |= PORTSC_CSC;
......
733 731
    *portsc &= ~rwc;
734 732

  
735 733
    if ((val & PORTSC_PRESET) && !(*portsc & PORTSC_PRESET)) {
736
        DPRINTF("port_status_write: USBTRAN Port %d reset begin\n", port);
734
        trace_usb_ehci_port_reset(port, 1);
737 735
    }
738 736

  
739 737
    if (!(val & PORTSC_PRESET) &&(*portsc & PORTSC_PRESET)) {
740
        DPRINTF("port_status_write: USBTRAN Port %d reset done\n", port);
738
        trace_usb_ehci_port_reset(port, 0);
741 739
        usb_attach(&s->ports[port], dev);
742 740

  
743 741
        // TODO how to handle reset of ports with no device

Also available in: Unified diff