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


Ignore:
Timestamp:
2014-01-22T19:28:46Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ff59981
Parents:
82a639cd
Message:

ehci, rh: Port owner bit indicates companion control.

File:
1 edited

Legend:

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

    r82a639cd r486f479  
    275275            (((reg & USB_PORTSC_LINE_STATUS_MASK) == USB_PORTSC_LINE_STATUS_K) ?
    276276                (1 << USB_HUB_FEATURE_PORT_LOW_SPEED) : 0) |
    277             EHCI2USB(reg, USB_PORTSC_PORT_OWNER_FLAG, USB_HUB_FEATURE_PORT_HIGH_SPEED) |
     277            ((reg & USB_PORTSC_PORT_OWNER_FLAG) ? 0 : (1 << USB_HUB_FEATURE_PORT_HIGH_SPEED)) |
    278278            EHCI2USB(reg, USB_PORTSC_PORT_TEST_MASK, 11) |
    279279            EHCI2USB(reg, USB_PORTSC_INDICATOR_MASK, 12) |
     
    396396                if (!(EHCI_RD(hub->registers->portsc[port]) &
    397397                    USB_PORTSC_ENABLED_FLAG)) {
    398                         EHCI_CLR(hub->registers->portsc[port],
     398                        EHCI_SET(hub->registers->portsc[port],
    399399                            USB_PORTSC_PORT_OWNER_FLAG);
    400400                } else {
     
    443443                            (status & USB_PORTSC_LINE_STATUS_MASK) ==
    444444                                USB_PORTSC_LINE_STATUS_K)
    445                                 EHCI_CLR(hub->registers->portsc[port],
     445                                EHCI_SET(hub->registers->portsc[port],
    446446                                    USB_PORTSC_PORT_OWNER_FLAG);
    447447                        else
Note: See TracChangeset for help on using the changeset viewer.