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

Changeset 53a309e in mainline


Ignore:
Timestamp:
2017-10-08T20:42:50Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
07cb0108
Parents:
d15797d
Message:

Must not explicitly close DDF-provided parent session.

Location:
uspace/drv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.c

    rd15797d r53a309e  
    163163        async_sess_t *sess = ddf_dev_parent_sess_get(dsp->sb_dev);
    164164
    165         const int ret = hw_res_dma_channel_setup(sess,
     165        return hw_res_dma_channel_setup(sess,
    166166            dsp->dma16_channel, pa, size,
    167167            DMA_MODE_READ | DMA_MODE_AUTO | DMA_MODE_ON_DEMAND);
    168 
    169         async_hangup(sess);
    170         return ret;
    171168}
    172169
     
    307304        // TODO: Assumes DMA 16
    308305        const int remain = hw_res_dma_channel_remain(sess, dsp->dma16_channel);
    309         async_hangup(sess);
    310306        if (remain >= 0) {
    311307                *pos = dsp->buffer.size - remain;
  • uspace/drv/audio/sb16/main.c

    rd15797d r53a309e  
    186186        hw_res_list_parsed_init(&hw_res);
    187187        const int ret = hw_res_get_list_parsed(parent_sess, &hw_res, 0);
    188         async_hangup(parent_sess);
    189188        if (ret != EOK) {
    190189                return ret;
     
    250249
    251250        bool enabled = hw_res_enable_interrupt(parent_sess);
    252         async_hangup(parent_sess);
    253251
    254252        return enabled ? EOK : EIO;
  • uspace/drv/bus/usb/ehci/res.c

    rd15797d r53a309e  
    229229        //TODO unmap registers
    230230        hw_res_list_parsed_clean(&res);
    231         async_hangup(parent_sess);
    232231        return ret;
    233232}
  • uspace/drv/bus/usb/uhci/main.c

    rd15797d r53a309e  
    111111        /* See UHCI design guide page 45 for these values.
    112112         * Write all WC bits in USB legacy register */
    113         const int rc = pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    114 
    115         async_hangup(parent_sess);
    116         return rc;
     113        return pci_config_space_write_16(parent_sess, 0xc0, 0xaf00);
    117114}
    118115
Note: See TracChangeset for help on using the changeset viewer.