Error device cannot start. (Code 10)

I have a USB hub driver, and on that driver when we are adding the microsoft xbox controller device, then it ends up with the below error in device manager
This device cannot start. (Code 10)
Current device power state cannot support this request.

Below are the failure events.Device USB\VID_045E&PID_02EA\3032363030303331303136373230 had a problem starting.
Driver Name: dc1-controller.inf
Class Guid: {05f5cfe2-4733-4950-a6bb-07aad01a3a84}
Service: dc1-controller
Lower Filters:
Upper Filters: xboxgip
Problem: 0xA
Problem Status: 0xC00002D3

Here are the power capabilities that i have adjusted to support the device, however not helping much.
Power capabilities:
0000007F
PDCAP_D0_SUPPORTED
PDCAP_D1_SUPPORTED
PDCAP_D2_SUPPORTED
PDCAP_D3_SUPPORTED
PDCAP_WAKE_FROM_D0_SUPPORTED
PDCAP_WAKE_FROM_D1_SUPPORTED
PDCAP_WAKE_FROM_D2_SUPPORTEDPower state mappings:
S0 → D0
S1 → D3
S2 → D3
S3 → D3
S4 → D3
S5 → D3

Tried to collect the WDF logs,
7592: FxPkgPnp::PowerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering Power State WdfDevStatePowerGotoD3Stopped from WdfDevStatePowerD0BusWakeOwner
7593: FxPkgIo::StopProcessingForPower - Perform FxIoStopProcessingForPowerHold for all queues of WDFDEVICE 0x00001CF029E955D8
7594: FxIoQueue::DispatchEvents - Thread FFFFE30FD50CE040 is processing WDFQUEUE 0x00001CF02E0C16D8
7595: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000003(FxIoQueuePowerStartingTransition)
7596: FxIoQueue::StartPowerTransitionOff - Waiting for all threads to stop dispatching requests so that WDFQUEUE 0x00001CF02E0C16D8 can be powered off
7597: FxIoQueue::DispatchEvents - Thread FFFFE30FD50CE040 is processing WDFQUEUE 0x00001CF02E0C16D8
7598: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000004(FxIoQueuePowerStopping)
7599: FxIoQueue::ProcessPowerEvents - Power Stop: WDFQUEUE 0x00001CF02E0C16D8 is powering off without in-flight requests
7600: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000005(FxIoQueuePowerStoppingNotifyingDriver)
7601: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000006(FxIoQueuePowerStoppingDriverNotified)
7602: FxIoQueue::ProcessPowerEvents - Power Stop: WDFQUEUE 0x00001CF02E0C16D8 is now powered off with no in-flight requests
7603: FxIoQueue::StopProcessingForPower - Waiting for all inflight requests to be acknowledged on WDFQUEUE 0x00001CF02E0C16D8
7604: FxPkgPnp::PowerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering Power State WdfDevStatePowerStopped from WdfDevStatePowerGotoD3Stopped
7605: FxPkgPnp::NotPowerPolicyOwnerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering not power policy owner state WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown from WdfDevStatePwrPolStopping
7606: FxPkgPnp::NotPowerPolicyOwnerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering not power policy owner state WdfDevStatePwrPolStoppingSendStatus from WdfDevStatePwrPolStoppingWaitingForImplicitPowerDown
7607: FxPkgPnp::NotPowerPolicyOwnerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering not power policy owner state WdfDevStatePwrPolStopped from WdfDevStatePwrPolStoppingSendStatus
7608: FxPkgPnp::PnpEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering PnP State WdfDevStatePnpRemovingDisableInterfaces from WdfDevStatePnpStartedRemoving
7609: FxPkgIo::StopProcessingForPower - Perform FxIoStopProcessingForPowerPurgeManaged for all queues of WDFDEVICE 0x00001CF029E955D8
7610: FxIoQueue::QueuePurge - All WDFQUEUE 0x00001CF02E0C16D8 requests cancelled
7611: FxIoQueue::QueuePurge - All driver cancellable requests cancelled in WDFQUEUE 0x00001CF02E0C16D8
7612: FxIoQueue::DispatchEvents - Thread FFFFE30FD50CE040 is processing WDFQUEUE 0x00001CF02E0C16D8
7613: FxIoQueue::DispatchEvents - Thread FFFFE30FD50CE040 is processing WDFQUEUE 0x00001CF02E0C16D8
7614: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000007(FxIoQueuePowerPurge)
7615: FxIoQueue::ProcessPowerEvents - Power purge: WDFQUEUE 0x00001CF02E0C16D8 is purging without in-flight requests
7616: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000008(FxIoQueuePowerPurgeNotifyingDriver)
7617: FxIoQueue::DispatchEvents - WDFQUEUE 0x00001CF02E0C16D8 Power Transition State 0x00000009(FxIoQueuePowerPurgeDriverNotified)
7618: FxIoQueue::ProcessPowerEvents - Power Stop: WDFQUEUE 0x00001CF02E0C16D8 is now powered off with no in-flight requests
7619: FxIoQueue::StopProcessingForPower - Waiting for all inflight requests to be acknowledged on WDFQUEUE 0x00001CF02E0C16D8
7620: FxPkgPnp::NotPowerPolicyOwnerEnterNewState - WDFDEVICE 0x00001CF029E955D8 !devobj 0xFFFFE30FD557FBA0 entering not power policy owner state WdfDevStatePwrPolRemoved from WdfDevStatePwrPolStopped

Could someone have a look into this and provide a pointer to resolve this issue.
Any help would be much appreciated.
Thanks!

You shouldn’t be adjusting any power capabilities at all. The base configuration descriptor says exactly what the hardware can support, and it’s up to the device’s driver to set the power capabilities. You just expose the power capabilities of your hub. The device doesn’t support D1 or D2, so I’m not sure why those are in your list at all.

thanks for your reply.
These are the device power capabilities without the hub driver.
Current power state:
D0
Power capabilities:
0000007F
PDCAP_D0_SUPPORTED
PDCAP_D1_SUPPORTED
PDCAP_D2_SUPPORTED
PDCAP_D3_SUPPORTED
PDCAP_WAKE_FROM_D0_SUPPORTED
PDCAP_WAKE_FROM_D1_SUPPORTED
PDCAP_WAKE_FROM_D2_SUPPORTED
Power state mappings:
S0 → D0
S1 → D3
S2 → D3
S3 → D3
S4 → D3
S5 → D3

I tried without enabling the device power capabilities and here is the result with hub driver
Current power state:
D3
Power capabilities:
00000019
PDCAP_D0_SUPPORTED
PDCAP_D3_SUPPORTED
PDCAP_WAKE_FROM_D0_SUPPORTED
Power state mappings:
S0 → D0
S1 → D3
S2 → D3
S3 → D3
S4 → D3
S5 → D3
Above is the result when the hub power capabilities are
pC.DeviceD1 = WdfTrue;
pC.WakeFromD1 = WdfFalse;
pC.DeviceWake = PowerDeviceD0;
pC.DeviceState[PowerSystemWorking] = PowerDeviceD0;
pC.DeviceState[PowerSystemSleeping1] = PowerDeviceD3;
pC.DeviceState[PowerSystemSleeping2] = PowerDeviceD3;
pC.DeviceState[PowerSystemSleeping3] = PowerDeviceD3;
pC.DeviceState[PowerSystemHibernate] = PowerDeviceD3;
pC.DeviceState[PowerSystemShutdown] = PowerDeviceD3;

I tried changing the hub power capabilities options but that did not help either.
Please suggest if any other option which could be tried to fix this?
Thanks!