Commit 8d653d26 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Jakub Kicinski

ravb: Improve ravb_hw_info instance order

Move ravb_gen2_hw_info before ravb_gen3_hw_info to match
ravb_match_table[] order.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Link: https://patch.msgid.link/a76febe3737e26365a784e9193da9363f22aa550.1719234830.git.geert+renesas@glider.beSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d891317f
...@@ -2652,7 +2652,7 @@ static int ravb_mdio_release(struct ravb_private *priv) ...@@ -2652,7 +2652,7 @@ static int ravb_mdio_release(struct ravb_private *priv)
return 0; return 0;
} }
static const struct ravb_hw_info ravb_gen3_hw_info = { static const struct ravb_hw_info ravb_gen2_hw_info = {
.receive = ravb_rx_rcar, .receive = ravb_rx_rcar,
.set_rate = ravb_set_rate_rcar, .set_rate = ravb_set_rate_rcar,
.set_feature = ravb_set_features_rcar, .set_feature = ravb_set_features_rcar,
...@@ -2668,16 +2668,13 @@ static const struct ravb_hw_info ravb_gen3_hw_info = { ...@@ -2668,16 +2668,13 @@ static const struct ravb_hw_info ravb_gen3_hw_info = {
.rx_buffer_size = SZ_2K + .rx_buffer_size = SZ_2K +
SKB_DATA_ALIGN(sizeof(struct skb_shared_info)), SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),
.rx_desc_size = sizeof(struct ravb_ex_rx_desc), .rx_desc_size = sizeof(struct ravb_ex_rx_desc),
.internal_delay = 1, .aligned_tx = 1,
.tx_counters = 1, .gptp = 1,
.multi_irqs = 1,
.irq_en_dis = 1,
.ccc_gac = 1,
.nc_queues = 1, .nc_queues = 1,
.magic_pkt = 1, .magic_pkt = 1,
}; };
static const struct ravb_hw_info ravb_gen2_hw_info = { static const struct ravb_hw_info ravb_gen3_hw_info = {
.receive = ravb_rx_rcar, .receive = ravb_rx_rcar,
.set_rate = ravb_set_rate_rcar, .set_rate = ravb_set_rate_rcar,
.set_feature = ravb_set_features_rcar, .set_feature = ravb_set_features_rcar,
...@@ -2693,8 +2690,11 @@ static const struct ravb_hw_info ravb_gen2_hw_info = { ...@@ -2693,8 +2690,11 @@ static const struct ravb_hw_info ravb_gen2_hw_info = {
.rx_buffer_size = SZ_2K + .rx_buffer_size = SZ_2K +
SKB_DATA_ALIGN(sizeof(struct skb_shared_info)), SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),
.rx_desc_size = sizeof(struct ravb_ex_rx_desc), .rx_desc_size = sizeof(struct ravb_ex_rx_desc),
.aligned_tx = 1, .internal_delay = 1,
.gptp = 1, .tx_counters = 1,
.multi_irqs = 1,
.irq_en_dis = 1,
.ccc_gac = 1,
.nc_queues = 1, .nc_queues = 1,
.magic_pkt = 1, .magic_pkt = 1,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment