Changeset 95c675b in mainline for uspace/drv/bus/usb


Ignore:
Timestamp:
2017-10-17T13:11:35Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

Location:
uspace/drv/bus/usb
Files:
7 edited

Legend:

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

    rdbf32b1 r95c675b  
    3939#include <str_error.h>
    4040#include <assert.h>
    41 #include <devman.h>
     41#include <ddf/driver.h>
    4242#include <ddi.h>
    4343#include <usb/debug.h>
     
    176176        assert(device);
    177177
    178         async_sess_t *parent_sess = devman_parent_device_connect(
    179             ddf_dev_get_handle(device), IPC_FLAG_BLOCKING);
    180         if (!parent_sess)
     178        async_sess_t *parent_sess = ddf_dev_parent_sess_get(device);
     179        if (parent_sess == NULL)
    181180                return ENOMEM;
    182181
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c

    rdbf32b1 r95c675b  
    7878
    7979        /* Allow less data on input. */
    80         if (dir == USB_DIRECTION_IN) {
     80        if (direction == USB_DIRECTION_IN) {
    8181                OHCI_MEM32_SET(instance->status, TD_STATUS_ROUND_FLAG);
    8282        }
  • uspace/drv/bus/usb/ohci/ohci_rh.c

    rdbf32b1 r95c675b  
    361361        case USB_HUB_FEATURE_C_PORT_RESET:        /*20*/
    362362                usb_log_debug2("Clearing port C_CONNECTION, C_ENABLE, "
    363                     "C_SUSPEND, C_OC or C_RESET on port %"PRIu16".\n", port);
     363                    "C_SUSPEND, C_OC or C_RESET on port %u.\n", port);
    364364                /* Bit offsets correspond to the feature number */
    365365                OHCI_WR(hub->registers->rh_port_status[port],
     
    410410        case USB_HUB_FEATURE_PORT_RESET:   /*4*/
    411411                usb_log_debug2("Setting port POWER, ENABLE, SUSPEND or RESET "
    412                     "on port %"PRIu16".\n", port);
     412                    "on port %u.\n", port);
    413413                /* Bit offsets correspond to the feature number */
    414414                OHCI_WR(hub->registers->rh_port_status[port], 1 << feature);
  • uspace/drv/bus/usb/uhci/main.c

    rdbf32b1 r95c675b  
    3636#include <assert.h>
    3737#include <ddf/driver.h>
    38 #include <devman.h>
    3938#include <errno.h>
    4039#include <io/log.h>
     
    123122        assert(device);
    124123
    125         async_sess_t *parent_sess = devman_parent_device_connect(
    126             ddf_dev_get_handle(device), IPC_FLAG_BLOCKING);
    127         if (!parent_sess)
     124        async_sess_t *parent_sess = ddf_dev_parent_sess_get(device);
     125        if (parent_sess == NULL)
    128126                return ENOMEM;
    129127
    130128        /* See UHCI design guide page 45 for these values.
    131129         * Write all WC bits in USB legacy register */
    132         const int rc = pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    133 
    134         async_hangup(parent_sess);
    135         return rc;
     130        return pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    136131}
    137132
  • uspace/drv/bus/usb/usbhub/status.h

    rdbf32b1 r95c675b  
    3535#define HUB_STATUS_H
    3636
    37 #include <stdbool.h>
    38 #include <stdint.h>
    3937#include <usb/dev/request.h>
    4038
  • uspace/drv/bus/usb/usbhub/usbhub.h

    rdbf32b1 r95c675b  
    3838#define DRV_USBHUB_USBHUB_H
    3939
    40 #include <ipc/devman.h>
    4140#include <ddf/driver.h>
    4241
     
    7271        /** Condition variable for pending_ops_count. */
    7372        fibril_condvar_t pending_ops_cv;
    74         /** Pointer to devman usbhub function. */
     73        /** Pointer to usbhub function. */
    7574        ddf_fun_t *hub_fun;
    7675        /** Status indicator */
  • uspace/drv/bus/usb/usbmid/explore.c

    rdbf32b1 r95c675b  
    132132 *
    133133 * @param dev Device to be explored.
    134  * @return Whether to accept this device from devman.
     134 * @return Whether to accept this device.
    135135 */
    136136int usbmid_explore_device(usb_device_t *dev)
Note: See TracChangeset for help on using the changeset viewer.