Uboot-socfpga USB Driver Problem Uboot 2013 vs 2017

Hello all,

I would like to have some advice or hints on USB Driver under U-boot.

I am porting uboot-socfpga to latest version of custom board, where USB PHY and connection are exactly same as previous.
With Same Cyclone V device.

I am using https://github.com/altera-opensource/u-boot-socfpga
rel_socfpga_v2013.01.01_14.09.02

On previous board if works very good.
But on the new one there is some problem

When I tried branch v2017.09 on new board, USB again works as it should be.
I change only bootloader and USB is working.
I need to stay on uboot 2013 and make USB working again. (a lot of new problems on new uboot)

Problem is that in Uboot 2013 after it detect USB Hub it reads
Port 1 Status 400 Change 9 - e.g. no device connected.

usb_control_msg: reques    t: 0x6, requesttype: 0x80, value 0x302 index 0x409 length 0x2
Manufacturer DWC OTG RootHub
Product
SerialNumber
USB hub found
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x4
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 length 0x9
1 ports detected
ganged power switching
standalone hub
global over-current protection
power on to power good time: 0ms
hub controller current requirement: 64mA
port 1 is removable
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 length 0x4
get_hub_status returned status 0, change 0
local power source is good
no over-current condition exists
enabling power on all ports
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 length 0x0
port 1 returns 0
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
...
...
Port 1 Status 400 Change 9
port 1 connection change

But in Uboot 2017 after same sequence it reads
Port 1 Status 511 Change 1 (same as on Uboot 2013 on the previous board)

usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 length 0x4
Port 1 Status 511 Change 1
devnum=1 port=1: USB dev found

Do you have any ideas why Uboot 2017 works OK but Uboot 2013 is causing the same USB Request to read different USB status?

Thank for any information.

BR,
TO