@smaller09 can you guide me how to fix
Hunk #6 FAILED at 1703.
Hunk #7 succeeded at 1813 (offset 63 lines).
1 out of 7 hunks FAILED -- saving rejects to file drivers/net/dsa/mt7530.c.rej
Patch failed! Please fix /media/data_nvme/git/openwrt/target/linux/mediatek/patches-5.4/0102-dsa-mt7530-Extend-device-data.patch
based on what i’ve found in the rej-file, it seems to be changes for mt7531
./build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-5.4.28/drivers/net/dsa/mt7530.c.rej
1 --- drivers/net/dsa/mt7530.c
2 +++ drivers/net/dsa/mt7530.c
3 @@ -1703,16 +1790,37 @@ static const struct dsa_switch_ops mt7530_switch_ops = {
4 .port_vlan_prepare = mt7530_port_vlan_prepare,
5 .port_vlan_add = mt7530_port_vlan_add,
6 .port_vlan_del = mt7530_port_vlan_del,
7 - .phylink_validate = mt7530_phylink_validate,
8 + .phylink_validate = mt753x_phylink_validate,
9 .phylink_mac_link_state = mt7530_phylink_mac_link_state,
10 - .phylink_mac_config = mt7530_phylink_mac_config,
11 + .phylink_mac_config = mt753x_phylink_mac_config,
12 .phylink_mac_link_down = mt7530_phylink_mac_link_down,
13 .phylink_mac_link_up = mt7530_phylink_mac_link_up,
14 };
15
16 +static const struct mt753x_info mt753x_table[] = {
17 + [ID_MT7621] = {
18 + .id = ID_MT7621,
19 + .setup = mt7530_setup,
...
37 static const struct of_device_id mt7530_of_match[] = {
38 - { .compatible = "mediatek,mt7621", .data = (void *)ID_MT7621, },
39 - { .compatible = "mediatek,mt7530", .data = (void *)ID_MT7530, },
40 + { .compatible = "mediatek,mt7621", .data = &mt753x_table[ID_MT7621], },
41 + { .compatible = "mediatek,mt7530", .data = &mt753x_table[ID_MT7530], },
42 { /* sentinel */ },
43 };
44 MODULE_DEVICE_TABLE(of, mt7530_of_match);
45
have patched manually, it failes because there are 2 additional lines between .port_vlan_del and .phylink_validate
1765 .port_vlan_add = mt7530_port_vlan_add,
1766 .port_vlan_del = mt7530_port_vlan_del,
1767 .port_mirror_add = mt7530_port_mirror_add,
1768 .port_mirror_del = mt7530_port_mirror_del,
1769 .phylink_validate = mt753x_phylink_validate,
1770 .phylink_mac_link_state = mt7530_phylink_mac_link_state,
how can i update the Patch? and how to get further?
managed it using quilt https://openwrt.org/docs/guide-developer/build-system/use-patches-with-buildsystem