Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "ARM: dts: bcm283x: increase dwc2's RX FIFO size"

This reverts commit 278407a53c3b33fb820332c4d39eb39316c3879a.

The original change breaks USB config on Raspberry Pi Zero and Pi 4 B,
because it exceeds the total fifo size of 4080. A naive attempt to reduce
g-tx-fifo-size doesn't help on Raspberry Pi Zero. So better go back.

Fixes: 278407a53c3b ("ARM: dts: bcm283x: increase dwc2's RX FIFO size")
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/1622293371-5997-1-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Nicolas Saenz Julienne <nsaenz@kernel.org>

authored by

Stefan Wahren and committed by
Nicolas Saenz Julienne
77daceab 6efb943b

+2 -2
+1 -1
arch/arm/boot/dts/bcm283x-rpi-usb-otg.dtsi
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 &usb { 3 3 dr_mode = "otg"; 4 - g-rx-fifo-size = <558>; 4 + g-rx-fifo-size = <256>; 5 5 g-np-tx-fifo-size = <32>; 6 6 /* 7 7 * According to dwc2 the sum of all device EP
+1 -1
arch/arm/boot/dts/bcm283x-rpi-usb-peripheral.dtsi
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 &usb { 3 3 dr_mode = "peripheral"; 4 - g-rx-fifo-size = <558>; 4 + g-rx-fifo-size = <256>; 5 5 g-np-tx-fifo-size = <32>; 6 6 g-tx-fifo-size = <256 256 512 512 512 768 768>; 7 7 };