u-boot/arch
Stefan Eichenberger d61f3ee9bb arm: mvebu: a38x: serdes: fix serdes config for USB3
The electrical serdes configuration for USB3 expects an array as data
argument. For USB3 the second value is used (see data_arr_idx = USB3 =
1). However, because only one value is inside the array mv_seq_exec is
accessing an invalid element and the serdes is configured wrongly.

This wrong initialization is leading to an unreliable detection
mechanism for some USB3 devices. We were able to reproduce the issue
regularly with an LTE modem from Sierra Wireless (SM7455) where it was
not detected as USB3 device in 1/3 of all tests.

This commit fixes the issue by setting data_arr_idx to 0. This is the
same value as the original U-Boot from Marvell is using. There it is
called FIRST_CELL which is a define for 0.
See: https://github.com/MarvellEmbeddedProcessors/u-boot-marvell
commit 56f963ce4c ("fix: serdes: a38x, a39x: Fix USB3 serdes DB
initialization")

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
Signed-off-by: René Straub <rene.straub@netmodule.com>
Reviewed-by: Stefan Roese <sr@denx.de>
2021-12-19 09:50:47 +01:00
..
arc image: Drop IMAGE_ENABLE_OF_LIBFDT 2021-10-08 15:53:26 -04:00
arm arm: mvebu: a38x: serdes: fix serdes config for USB3 2021-12-19 09:50:47 +01:00
m68k WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
microblaze image: Drop IMAGE_ENABLE_OF_LIBFDT 2021-10-08 15:53:26 -04:00
mips Convert CONFIG_USB_EHCI_IS_TDI to Kconfig 2021-10-15 09:42:22 -04:00
nds32 image: Drop IMAGE_ENABLE_OF_LIBFDT 2021-10-08 15:53:26 -04:00
nios2 lmb: nios2: Add arch_lmb_reserve() 2021-09-23 14:15:32 -04:00
powerpc ide: Drop unused CONFIG options 2021-12-05 09:26:26 -07:00
riscv riscv: add #define in asm/io.h for some device drivers 2021-11-08 15:35:55 +08:00
sandbox Convert CONFIG_SYS_FDT_LOAD_ADDR to Kconfig 2021-12-05 09:23:15 -07:00
sh WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
x86 efi: Add video support to the app 2021-11-07 18:36:55 +01:00
xtensa WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
.gitignore
Kconfig Convert CONFIG_PHYSMEM to Kconfig 2021-12-17 09:44:59 -07:00
u-boot-elf.lds