Changeset deb2e55 in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-12-28T21:54:38Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
415c5116
Parents:
66c16b0
git-author:
Petr Manek <petr.manek@…> (2017-12-28 21:54:31)
git-committer:
Petr Manek <petr.manek@…> (2017-12-28 21:54:38)
Message:

usbhost: refactoring

Moved the "online" attribute from xhci_device_t to device_t. Changed
USB2 bus implementation to produce online devices (not to break
functionality on older buses).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    r66c16b0 rdeb2e55  
    217217        usb_log_debug2("Device " XHCI_DEV_FMT " going offline.", XHCI_DEV_ARGS(*xhci_dev));
    218218        fibril_mutex_lock(&dev->guard);
    219         xhci_dev->online = false;
     219        dev->online = false;
    220220        fibril_mutex_unlock(&dev->guard);
    221221
     
    304304        usb_log_debug2("Device " XHCI_DEV_FMT " going online.", XHCI_DEV_ARGS(*dev));
    305305        fibril_mutex_lock(&dev_base->guard);
    306         dev->online = true;
     306        dev_base->online = true;
    307307        fibril_mutex_unlock(&dev_base->guard);
    308308
     
    332332        usb_log_debug2("Device " XHCI_DEV_FMT " going offline.", XHCI_DEV_ARGS(*dev));
    333333        fibril_mutex_lock(&dev_base->guard);
    334         dev->online = false;
     334        dev_base->online = false;
    335335        fibril_mutex_unlock(&dev_base->guard);
    336336
Note: See TracChangeset for help on using the changeset viewer.