Files
linux/drivers
Maxim Kochetkov 9ced40bf84 net: axienet: Move reset before 64-bit DMA detection
[ Upstream commit f1bc9fc4a0 ]

64-bit DMA detection will fail if axienet was started before (by boot
loader, boot ROM, etc). In this state axienet will not start properly.
XAXIDMA_TX_CDESC_OFFSET + 4 register (MM2S_CURDESC_MSB) is used to detect
64-bit DMA capability here. But datasheet says: When DMACR.RS is 1
(axienet is in enabled state), CURDESC_PTR becomes Read Only (RO) and
is used to fetch the first descriptor. So iowrite32()/ioread32() trick
to this register to detect 64-bit DMA will not work.
So move axienet reset before 64-bit DMA detection.

Fixes: f735c40ed9 ("net: axienet: Autodetect 64-bit DMA capability")
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Reviewed-by: Robert Hancock <robert.hancock@calian.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/20230622192245.116864-1-fido_max@inbox.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-23 13:46:55 +02:00
..
2023-07-05 18:25:05 +01:00
2023-06-14 11:13:08 +02:00
2021-11-18 19:16:08 +01:00
2023-02-22 12:57:03 +01:00
2023-07-23 13:46:46 +02:00
2023-04-05 11:24:55 +02:00
2023-03-10 09:40:13 +01:00
2022-08-25 11:40:33 +02:00
2021-12-22 09:32:39 +01:00