mvebu: backport upstream patch to fix COMPHY reset
authorMichal Hrusecky <michal.hrusecky@turris.com>
Mon, 9 Jan 2023 14:59:02 +0000 (15:59 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 11 Jan 2023 20:56:36 +0000 (21:56 +0100)
commitf6b46c9269a2e83e88b0a353a87812cd4837f97e
tree1a7cb68707c48d3a0e565b4c0d7723a3bdb108c1
parent57a02cbbff5bc1b9610437c4cedb2072f9647f00
mvebu: backport upstream patch to fix COMPHY reset

Upstream commit [1] included in the Linux kernel version 6.2 was
backported to Linux kernels 6.1.4, 6.0.18. It should be possible that it
is going to be backported even to the 5.15 series, but before it happens,
let's include it here.

It was discovered that on SOC Marvell Armada 3720, which is using e.g.
Turris MOX, and if you are also using it with older ARM Trusted Firmware
v1.5, it is not possible to detect connected USB 3.0 devices, but they
are working just fine when connected with USB 2.0 cable. This patch
fixes it.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/phy/marvell/phy-mvebu-a3700-comphy.c?id=b01d622d76134e9401970ffd3fbbb9a7051f976a

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
[improve commit description, added tag to the patch]
target/linux/mvebu/patches-5.15/710-v6.2-phy-marvell-phy-mvebu-a3700-comphy-Reset-COMPHY-regi.patch [new file with mode: 0644]