Re: Selective Suspend for USB composite device

Tech-Archive recommends: Fix windows errors by optimizing your registry



do you control all of the drivers, both the parent and the child stacks? if so, you can do whatever you want to coordinate state between the child stacks? if you want to use usb SS, in your parent driver you need to pend each of the children's SS IRP and when all of the children are ready to suspend, the parent submits its own USB SS request down the stack. when the parent's USB SS callback is invoked, the parent calls each of the callbacks. once all of the children have powered down, you return.

it is not simple, in fact this is quite complicated. why are you not using usbccgp? why did you write your own parent driver?

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Prakash Manannavar" <PrakashManannavar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3C44853C-C3BB-43D9-8654-22AE459BB8D6@xxxxxxxxxxxxxxxx
No, There will not be usbccgp.sys as parent. We have our own driver, which
will act as parent and will enumerate the children. Then the children will
come into act.

The confusion is to implement SS/WW(SelSusp/Wait-Wake) in parent or in child
device drivers.
--
~~~~~
Prakash A Manannavar,
Bangalore/Bengaluru.


"Doron Holan [MSFT]" wrote:

are you using usbccgp for the parent driver which splits the functions into
their own stacks? if yes, it implements USB SS for the parent, but each FDO
that is loaded on its children need to also implement USB SS as well

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Prakash Manannavar" <PrakashManannavar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:EE6EC22B-5AEC-49BD-8498-3CB725F4B0F2@xxxxxxxxxxxxxxxx
> I want to implement, selective suspend for a composite device which has
> single configuration and 3 interfaces. Each interface has separate > driver.
>
> Now my question is "Should I implement Selective Suspend only to the
> parent
> or for all interfaces it has?".
>
> Please help me out, in this regard.
> -- > ~~~~~
> Prakash A Manannavar,
> Bangalore/Bengaluru.


.



Relevant Pages