]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ethernet: adi: adin1110: Fix SPI transfers
authorAlexandru Tachici <alexandru.tachici@analog.com>
Mon, 17 Oct 2022 16:37:03 +0000 (19:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:03 +0000 (13:32 +0100)
commit22d569b3d1a0c031c8d2f35d3558a518e42fca9d
tree62a8d4b3e069a69ef2304f1db975fd7f5a461550
parent1c65f8f98148709e08bd6157a807c443ba91f0ac
net: ethernet: adi: adin1110: Fix SPI transfers

[ Upstream commit a526a3cc9c8d426713f8bebc18ebbe39a8495d82 ]

No need to use more than one SPI transfer for reads.
Use only one from now as ADIN1110/2111 does not tolerate
CS changes during reads.

The BCM2711/2708 SPI controllers worked fine, but the NXP
IMX8MM could not keep CS lowered during SPI bursts.

This change aims to make the ADIN1110/2111 driver compatible
with both SPI controllers, without any loss of bandwidth/other
capabilities.

Fixes: bc93e19d088b ("net: ethernet: adi: Add ADIN1110 support")
Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/adi/adin1110.c