net: ethernet: adi: adin1110: Fix SPI transfers
authorAlexandru Tachici <alexandru.tachici@analog.com>
Mon, 17 Oct 2022 16:37:03 +0000 (19:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2022 13:20:37 +0000 (14:20 +0100)
commita526a3cc9c8d426713f8bebc18ebbe39a8495d82
tree21fc18f6e83935da5ac2d6b43e3b10d96dcc5abb
parentac3208fbac43a41e2aec94ca382dff43c7ee7323
net: ethernet: adi: adin1110: Fix SPI transfers

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>
drivers/net/ethernet/adi/adin1110.c