]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: renesas: rswitch: remove speed from gwca structure
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Fri, 6 Dec 2024 19:21:40 +0000 (00:21 +0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Dec 2024 02:27:29 +0000 (18:27 -0800)
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>
drivers/net/ethernet/renesas/rswitch.c
drivers/net/ethernet/renesas/rswitch.h

index 3ba4a605f7cfc797aa945461a801febccb880a62..b754cc96e268d756e3322855d2acc437443ea10e 100644 (file)
@@ -1901,9 +1901,6 @@ static int rswitch_device_alloc(struct rswitch_private *priv, unsigned int index
        if (err < 0)
                goto out_get_params;
 
-       if (rdev->priv->gwca.speed < rdev->etha->speed)
-               rdev->priv->gwca.speed = rdev->etha->speed;
-
        err = rswitch_rxdmac_alloc(ndev);
        if (err < 0)
                goto out_rxdmac;
index 72e3ff596d3183fa6512516907d485937aee316c..303883369b94abe70ea163a9776d993204177de6 100644 (file)
@@ -993,7 +993,6 @@ struct rswitch_gwca {
        DECLARE_BITMAP(used, RSWITCH_MAX_NUM_QUEUES);
        u32 tx_irq_bits[RSWITCH_NUM_IRQ_REGS];
        u32 rx_irq_bits[RSWITCH_NUM_IRQ_REGS];
-       int speed;
 };
 
 #define NUM_QUEUES_PER_NDEV    2