Re: [PATCH net] bgmac: fix *initial* chip reset to support BCM5358
From: Leon Romanovsky <leon@kernel.org>
Date: 2023-02-27 09:54:36
From: Leon Romanovsky <leon@kernel.org>
Date: 2023-02-27 09:54:36
On Mon, Feb 27, 2023 at 10:11:56AM +0100, Rafał Miłecki wrote:
From: Rafał Miłecki <rafal@milecki.pl>
While bringing hardware up we should perform a full reset including the
switch bit (BGMAC_BCMA_IOCTL_SW_RESET aka SICF_SWRST). It's what
specification says and what reference driver does.
This seems to be critical for the BCM5358. Without this hardware doesn't
get initialized properly and doesn't seem to transmit or receive any
packets.
Originally bgmac was calling bgmac_chip_reset() before setting
"has_robosw" property which resulted in expected behaviour. That has
changed as a side effect of adding platform device support which
regressed BCM5358 support.
Fixes: f6a95a24957a ("net: ethernet: bgmac: Add platform device support")
Cc: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/net/ethernet/broadcom/bgmac.c | 8 ++++++--
drivers/net/ethernet/broadcom/bgmac.h | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)Thanks, Reviewed-by: Leon Romanovsky <leonro@nvidia.com>