Skip to content

Commit 32fd46f

Browse files
nikita-youshkuba-moo
authored andcommitted
net: renesas: rswitch: remove speed from gwca structure
This field is set but never used. GWCA is rswitch CPU interface module which connects rswitch to the host over AXI bus. Speed of the switch ports is not anyhow related to GWCA operation. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Link: https://patch.msgid.link/20241206192140.1714-2-nikita.yoush@cogentembedded.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 0709274 commit 32fd46f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/net/ethernet/renesas/rswitch.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,9 +1901,6 @@ static int rswitch_device_alloc(struct rswitch_private *priv, unsigned int index
19011901
if (err < 0)
19021902
goto out_get_params;
19031903

1904-
if (rdev->priv->gwca.speed < rdev->etha->speed)
1905-
rdev->priv->gwca.speed = rdev->etha->speed;
1906-
19071904
err = rswitch_rxdmac_alloc(ndev);
19081905
if (err < 0)
19091906
goto out_rxdmac;

drivers/net/ethernet/renesas/rswitch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,6 @@ struct rswitch_gwca {
993993
DECLARE_BITMAP(used, RSWITCH_MAX_NUM_QUEUES);
994994
u32 tx_irq_bits[RSWITCH_NUM_IRQ_REGS];
995995
u32 rx_irq_bits[RSWITCH_NUM_IRQ_REGS];
996-
int speed;
997996
};
998997

999998
#define NUM_QUEUES_PER_NDEV 2

0 commit comments

Comments
 (0)