Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c4ba645d in mainline for uspace/drv/bus/usb/ehci/ehci_rh.c


Ignore:
Timestamp:
2015-07-01T02:53:54Z (6 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
96323d2
Parents:
6ef69e9
Message:

ehci,rh: Improve logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_rh.c

    r6ef69e9 rc4ba645d  
    305305        ehci_rh_job_t *job = arg;
    306306        async_usleep(50000);
     307        usb_log_debug("EHCI_RH(%p-%u): Clearing reset", job->hub, job->port);
    307308        EHCI_CLR(job->hub->registers->portsc[job->port],
    308309            USB_PORTSC_PORT_RESET_FLAG);
     
    312313                async_usleep(1);
    313314        };
     315        usb_log_debug("EHCI_RH(%p-%u): Reset complete", job->hub, job->port);
    314316        /* Handle port ownership, if the port is not enabled
    315317         * after reset it's a full speed device */
    316318        if (!(EHCI_RD(job->hub->registers->portsc[job->port]) &
    317319            USB_PORTSC_ENABLED_FLAG)) {
     320                usb_log_debug("EHCI_RH(%p-%u): Port not enabled after reset, "
     321                "giving up ownership", job->hub, job->port);
    318322                EHCI_SET(job->hub->registers->portsc[job->port],
    319323                    USB_PORTSC_PORT_OWNER_FLAG);
Note: See TracChangeset for help on using the changeset viewer.