-
Notifications
You must be signed in to change notification settings - Fork 33
Description
I 'm a employee of a Industrial Camera company. Last Month, our customer told me that our cameras has a bug. The operation to reproduct bug is listed below:
Connect the camera with NVIDIA TX2, then power on the TX2.
Our camera will finish initialization before the TX2 finish initialization(TX2 finish poweron completely. So our camera will enter the CY_U3P_USB_EVENT_SUSPEND. After TX2 finish initialization, our camera should exit CY_U3P_USB_EVENT_SUSPEND and can be enumerated.However, our camera sometime can't archieve this action. Instead of exit CY_U3P_USB_EVENT_SUSPEND successfully, they stay in CY_U3P_USB_EVENT_SUSPEND.
I deleted the code about CY_U3P_USB_EVENT_SUSPEND to make camera ignore the command of entering CY_U3P_USB_EVENT_SUSPEND. After this operation, the camera can always be enumerated after the TX2 finish initialization. But I found the ubuntu18.04 of TX2 reported an error(“Maybe the USB cable is bad”) and I found the camera was enumerated as a USB2 camera(It should be enumerated as a USB3.0 camera).

In this situation(Connect the camera with NVIDIA TX2, then power on the TX2), we hope that camera can enter/exit CY_U3P_USB_EVENT_SUSPEND successfully, and the camera can be enumerated correctly(When the camera connected with a USB3 port, it should be enumerated as a USB3 camera.)
Test code to reproduce
code.zip
Cypress Version
SDK version is 1.3.1
Operating System
ubuntu 18.04