Unverified Commit 039741a8 authored by Jonathan Bell's avatar Jonathan Bell Committed by Krzysztof Wilczyński
Browse files

PCI: brcmstb: Fix broken brcm_pcie_mdio_write() polling

The MDIO_WT_DONE() macro tests bit 31, which is always 0 (== done) as
readw_poll_timeout_atomic() does a 16-bit read. Replace with the readl
variant.

[kwilczynski: commit log]
Fixes: ca5dcc76 ("PCI: brcmstb: Replace status loops with read_poll_timeout_atomic()")
Link: https://lore.kernel.org/linux-pci/20240217133722.14391-1-wahrenst@gmx.net


Signed-off-by: default avatarJonathan Bell <jonathan@raspberrypi.com>
Signed-off-by: default avatarStefan Wahren <wahrenst@gmx.net>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Acked-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
parent 6613476e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment