aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* ipq807x: add support for CMCC RM2-6Chukun Pan2024-02-15
| | | | | | | | | | | | | | | | | | Hardware specifications: SoC: Qualcomm IPQ8070A RAM: 512MB of DDR3 Flash: 256MB Micron NAND Ethernet: 2x 1G RJ45 port WiFi1: QCN5024 2x2 2.4GHz WiFi2: QCN5054 2x2 5GHz Fan: 1x GPIO controlled Button: Reset, WPS Flash instructions: Upload factory.bin in stock firmware's upgrade page. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Robert Marko <robimarko@gmail.com>
* qualcommax: ipq807x: MX4200 convert qca807x PHY to new implementationPaweł Owoc2024-02-15
| | | | | | | Convert qca807x PHY to new implementation like for other devices. Signed-off-by: Paweł Owoc <frut3k7@gmail.com> Reviewed-by: Robert Marko <robimarko@gmail.com>
* qca-ssdk: drop not used Malibu PHY patchRobert Marko2024-02-15
| | | | | | | Now that Malibu (QCA807x) PHY-s use an upstream driver we dont need support for defining address of the first PHY in the package so drop the patch. Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: remove usage of malibu_first_phy_addrRobert Marko2024-02-15
| | | | | | | | Now that Malibu (QCA807x) PHY is using the upstream driver, we dont need support to define address of the first PHY in package, so remove the malibu_first_phy_addr DTS property. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.1: use upstreamed QCA807x fixupRobert Marko2024-02-15
| | | | | | | Now that QCA807x interface mode check was upstreamed, use the upstreamed version and mark it as such. Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools/expat: fix build error with ccacheKoen Vandeputte2024-02-15
| | | | | | | | Disable compilation of separate tests as it causes a build error when combined with ccache Fixes: 4a3f430d72 ("tools/expat: update to 2.6.0") Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
* kernel: fix bidirectional hardware flow offloadFelix Fietkau2024-02-14
| | | | | | Fix a bug that was introduced upstream Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ugps: update to Git HEAD (2024-02-14)Petr Štetiar2024-02-14
| | | | | | 69561a074d6f ugps: add quality measurement parameters Signed-off-by: Petr Štetiar <ynezz@true.cz>
* wifi-scripts: create the wlan object in board_data if not presentFelix Fietkau2024-02-13
| | | | | | Fixes an error in wifi detection Signed-off-by: Felix Fietkau <nbd@nbd.name>
* omap: drop kernel 5.15Andre Heider2024-02-13
| | | | | | One version is sufficient for this minor target. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: switch to kernel 6.1Andre Heider2024-02-13
| | | | | | Lightly tested on boneblack, no fallout observed so far. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: run kernel_oldconfig for 6.1Andre Heider2024-02-13
| | | | | | No manual changes done. Signed-off-by: Andre Heider <a.heider@gmail.com>
* omap: copy kernel config for 6.1Andre Heider2024-02-13
| | | | | | Unmodified copy to ease reviewing follow-up changes. Signed-off-by: Andre Heider <a.heider@gmail.com>
* ucode: update to Git HEAD (2024-02-13)Jo-Philipp Wich2024-02-13
| | | | | | | | | | | | | 7e5830edfb38 nl80211: fix datatype of NL80211_BAND_IFTYPE_ATTR_HE_CAP_{MAC,PHY} attrs 5c8fd34bac42 nl80211: fix parsing of NL80211_BAND_ATTR_VHT_MCS_SET attribute e8d4e4fe967d nl80211: fix decoding of NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET attribute 30a3f7ad0433 rtnl: store callback in listener registry only on success 9cbe8294909f rtnl: optimize reception of rtnl events 534417132e18 rtnl: increase event socket rx buffer size limit to 1 MiB 3f9811d2f7b7 compiler: close upvalues on loop control statements Fixes: https://github.com/jow-/ucode.git/issues/187 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* libxml2: update to 2.12.5Nick Hainke2024-02-13
| | | | | | | | Release Notes: https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.5 Fixes: CVE-2024-25062 Signed-off-by: Nick Hainke <vincent@systemli.org>
* mediatek: filogic: fixup mt7988a DTS coding styleRafał Miłecki2024-02-13
| | | | | | Use coding style as described as preferred in upstream DTS Coding Style. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mediatek: filogic: reorder mt7988a DTS propertiesRafał Miłecki2024-02-13
| | | | | | | Use order described as preferred in DTS Coding Style. Mostly just move "compatible", "reg", "ranges" and "status" properties. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* binutils: update to 2.42Nick Hainke2024-02-12
| | | | | | | Refresh patch: - 001-replace-attribute_const.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* base-files: move uci_set_poe() to uci-defaults.shSander Vanheule2024-02-12
| | | | | | | | | PoE devices in the realtek target have the possibility to add PSE info to the board description via 02_network. Make this available for all targets, by moving the uci_set_poe() function to the globally available uci-default.sh script. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: move port filtering out of uci_set_poe()Sander Vanheule2024-02-12
| | | | | | | | | | | | uci_set_poe() now performs two duties: filtering the list of device ports to exclude non-PoE ports, and generating the PoE related device config. Extract the port filtering to an external function, which is made a bit more readable by the use of 'sort -V [-r] | uniq -u' to filter duplicate entries out of a (reverse) version sorted list. Signed-off-by: Sander Vanheule <sander@svanheule.net>
* realtek: add support for chassis fan on ZyXEL XGS1250-12Tobias Schramm2024-02-12
| | | | | | | | | | The ZyXEL XGS1250-12 has a chassis fan. The fan is positioned perfectly to provide additional cooling to the Aquantia NBase-T phys. Testing has shown that the phys can reach temperatures upwards of 72 degrees Celsius quite easily at about 20 degrees Celsius ambient. Support the chassis fan to give the phys a bit of extra cooling. Signed-off-by: Tobias Schramm <tobias@t-sys.eu>
* Revert "build: align SOURCE path for build system and SDK"Daniel Golle2024-02-12
| | | | | | | | | This reverts commit 131e41614dcfae1f995e55330ada6573ca244ba3. Sadly it makes menuconfig fail with tmp/.config-package.in:171: glob failed: No files found "feeds/base/utils/busybox/Config.in" make: *** [/usr/src/openwrt/include/toplevel.mk:136: menuconfig] Error 1 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* build: align SOURCE path for build system and SDKPaul Spooren2024-02-12
| | | | | | | | | | | | | | | Building a package in the build system or the SDK results in different values for the `SOURCE` property, it's either `packages/<package name>` or `feeds/base/<package name>`. The reason is that the SDK handles `openwrt.git` as an external feed called while the build system contains the *base* packages directly. Since packages created with either method are (ideally) the same (bit for bit), align the content of SOURCE. To do so this commit creates a symlink from `feeds/base` to `$(TOPDIR)/package` and adopts the SOURCE when building from inside the build system. Signed-off-by: Paul Spooren <mail@aparcar.org>
* generic: 6.1: fixup QCA807x upstream PHYRobert Marko2024-02-12
| | | | | | | | | | | | | | | Currently, we are checking whether the PHY package mode matches the individual PHY interface modes at PHY package probe time, but at that time we only know the PHY package mode and not the individual PHY interface modes as of_get_phy_mode() that populates it will only get called once the netdev to which PHY-s are attached to is being probed and thus this check will always fail and return -EINVAL. So, lets move this check to .config_init_once as at that point individual PHY interface modes should be populated. Fixes: 16364e410039 ("generic: 6.1: backport QCA807x PHY patches") Signed-off-by: Robert Marko <robimarko@gmail.com>
* tools/expat: update to 2.6.0Nick Hainke2024-02-12
| | | | | | | Changelog: https://github.com/libexpat/libexpat/blob/R_2_6_0/expat/Changes Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/ccache: update to 4.9.1Nick Hainke2024-02-12
| | | | | | | | | | Release Notes: https://ccache.dev/releasenotes.html#_ccache_4_9_1 Manually refresh patch: - 100-honour-copts.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: mt76x8: drop AT803X phy driverShiji Yang2024-02-12
| | | | | | | | | This Qualcomm Gigabit phy driver was mistakenly added because MT76x8 does not support external phy, and it only supports max 100M full duplex speed. Fixes: cadf5171074f ("ralink: add support for mt7628") Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* qca-ssdk: drop deprecated Xiaomi LEDs quirk patchChristian Marangi2024-02-11
| | | | | | | Drop deprecated Xiaomi LEDs quirk patches as they are not needed anymore as LEDs are now supported by the upstream qca807x driver. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: apply special PHY LEDs configuration for Xiaomi AX9000Christian Marangi2024-02-11
| | | | | | | | | Xiaomi AX9000 apply a special PHY LEDs configuration where the unique green LED for each qca807x PHY port is turned on also on 1000Mbps link. Apply this special configuration to reflect original implementation. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: apply special PHY LEDs configuration for Xiaomi AX3600Christian Marangi2024-02-11
| | | | | | | | | | | | Xiaomi AX3600 apply a special PHY LEDs configuration where the unique green LED for each qca807x PHY port is turned on also on 1000Mbps link. Apply this special configuration to reflect original implementation. Also enable CONFIG_PHYLIB_LEDS to actually expose the PHY LEDs if defined in DT. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: convert qca807x PHY to PHY package implementationChristian Marangi2024-02-11
| | | | | | | | Convert every qca807x PHY definition in DT to new PHY package implementation to correctly support applying fixup for the correct PHY mode. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: set correct PHY mode for port 0-4Christian Marangi2024-02-11
| | | | | | | | | | | | Port 0-4 have the mode set to SGMII instead of PSGMII. Now that we use the upstream qca807x driver, this conflicts with the qca SSDK driver that expects the mode to be PSGMII as for not integrated driver, it does refer to the real PHY mode. Update the entry for port 0-4 to PSGMII to solve warning from qca SSDK in ipq8074-ess.dtsi. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qca-ssdk: add patch to support detection of PSGMII mode for PHYChristian Marangi2024-02-11
| | | | | | | | | | | If a PHY doesn't use the integrated driver, SSDK use poll the phydev to get the real PHY mode. qca807x use PSGMII as PHY mode and this specific mode is not detected in qca SSDK while used in the entire driver. Add support for it in the hsl_port_phydev_interface_mode_status_get function used to translate PHY mode to the internal SSDK value. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: enable qca807x PHY driverChristian Marangi2024-02-11
| | | | | | | | IPQ807x have integrated qca8074 PHY supported by the upstream qca807x driver. Enable it to use it instead of the downstream qca SSDK variant. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qca-ssdk: disable Malibu PHY in favor of upstream versionChristian Marangi2024-02-11
| | | | | | | | | | Disable Malibu PHY driver in Qca SSDK in favor of the upstream version. The same workaround are applied and the version upstream is just a drop in replacement and is well tested from the ipq40xx target. Also using the upstream version permits further support for LEDs. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: adapt to new Upstream QCA807x PHY driverChristian Marangi2024-02-11
| | | | | | | | Adapt patches to new Upstream QCA807x PHY driver. Rework the PHY patch to new PHY Package nodes. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: backport QCA807x PHY patchesChristian Marangi2024-02-11
| | | | | | | | | | | | Backport QCA807x PHY patches merged upstream that introduce the new concept of PHY package. Also add in generic config the new Kconfig CONFIG_QCA807X_PHY. All affected patch automatically refreshed with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: move LEDs netdev trigger patch from pending to backportChristian Marangi2024-02-11
| | | | | | | Move LEDs netdev trigger patch from pending to backport as it has been merged upstream. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: 6.1: backport Aquantia PHY endianess patchChristian Marangi2024-02-11
| | | | | | | | | Backport Aquantia PHY endianess patch. While the current implementation works ok for Little-Endian targets, backport patch to prevent any kind of malfunction if in the future we will have Big-Endian target with Aquantia PHYs. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: fix wrong PHY node definition for Buffalo WXR-5950AX12Christian Marangi2024-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit d737ae99cb36 ("qualcommax: Fix Buffalo WXR-5950AX12 Ethernet DTS") reverted the switch bmp to the original OEM definition and added the malibu_first_phy_addr property. Problem is that OEM bmp definition is wrong and actually doesn't make sense, probably caused by copy-paste of the QCOM reference DTS without actually setting real values. What actually fixed the regression was adding the malibu_first_phy_addr as without it the MALIBU PHY was actually not correctly configured and the Aquantia PHY were actually configured as MALIBU PHY. Fix all these wrong PHY definition. The BPM is reverted and the following fixes are applied: - Drop ESS_PORT1 as it's not actually attached in HW. - Move ESS_PORT5 AGAIN from lan to wan. This refer to the first Aquantia PHY that is labelled "wan" - Move ESS_PORT6 AGAIN from wan to lan. This refer to the second Aquantia PHY that is labelled "lan1". Also PHY tag in MDIO node are renumbered to start from 0 following the tagging standard used also in other dts and the not attached one (reg 0x18 and reg 0x1c) are correctly dropped. Definition for port@1 in phyinfo is dropped as it doesn't exist. dp nodes are updated to reference the new PHY tag numbering. Fixes: d737ae99cb36 ("qualcommax: Fix Buffalo WXR-5950AX12 Ethernet DTS") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* mediatek: fix failsafe ethernet for NWA50AX ProDavid Bauer2024-02-11
| | | | | | | | | The NWA50AX Pro only has a eth0 interface for its only ethernet port. Use this port for preinit. Fixes non-working network in failsafe mode. Signed-off-by: David Bauer <mail@david-bauer.net>
* ramips: mtk_eth_soc: fix NULL pointer dereference for syncpShiji Yang2024-02-11
| | | | | | | | u64_stats_init() has been unable to handle NULL pointer since 6.1 kernel. This patch fixes kernel oops on mt76x8 and rt305x sub-target. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* uboot-envtools: backport some usefull patches from v2024.04-rc1Shiji Yang2024-02-11
| | | | | | | | Highlights: - Silence small page read warning. - Autodetect NAND erase size and env sectors. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ramips: hsdma-mtk: fix build on 5.15 kernelShiji Yang2024-02-11
| | | | | | | | In the 5.15 kernel, we use the staging driver version instead of the downstream file. Fixes: 88d982e3bd87 ("ramips: 6.1: mt7621-dma: add hsdma driver to files") Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ramips: add support for 6.1 kernelNick Hainke2024-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove upstreamed patches: - 000-v5.18-01-dt-bindings-reset-add-dt-binding-header-for-Mediatek.patch - 000-v5.18-02-staging-mt7621-dts-align-resets-with-binding-documen.patch - 001-v5.18-01-dt-bindings-clock-mediatek-mt7621-sysc-add-reset-cel.patch - 001-v5.18-02-clk-ralink-make-system-controller-node-a-reset-provi.patch - 002-v6.0-MIPS-ralink-mt7621-avoid-to-init-common-ralink-reset.patch - 100-v5.16-PCI-mt7621-Add-MediaTek-MT7621-PCIe-host-controller-.patch - 101-v5.17-PCI-mt7621-Rename-mt7621_pci_-to-mt7621_pcie_.patch - 102-v5.17-PCI-mt7621-Declare-mt7621_pci_ops-static.patch - 103-v5.17-PCI-mt7621-Move-MIPS-setup-to-pcibios_root_bridge_pr.patch - 104-v5.17-PCI-mt7621-Drop-of_match_ptr-to-avoid-unused-variabl.patch - 105-v5.17-PCI-mt7621-Remove-unused-function-pcie_rmw.patch - 106-v5.17-PCI-Let-pcibios_root_bridge_prepare-access-bridge-wi.patch - 107-v6.2-PCI-mt7621-Add-sentinel-to-quirks-table.patch - 108-v6.3-PCI-mt7621-Delay-phy-ports-initialization.patch Manually refresh: - 006-v6.5-mips-ralink-introduce-commonly-used-remap-node-funct.patch - 320-MIPS-add-support-for-buggy-MT7621S-core-detection.patch - 405-mtd-spi-nor-Add-support-for-BoHong-bh25q128as.patch - 410-mtd-rawnand-add-driver-support-for-MT7621-nand-flash.patch - 805-pinctrl-AW9523.patch - 825-i2c-MIPS-adds-ralink-I2C-driver.patch - 830-mmc-MIPS-ralink-add-sdhci-for-mt7620a-SoC.patch Automatically refresh: - 200-add-ralink-eth.patch - 314-MIPS-add-bootargs-override-property.patch - 315-owrt-hack-fix-mt7688-cache-issue.patch - 700-net-ethernet-mediatek-support-net-labels.patch - 720-Revert-net-phy-simplify-phy_link_change-arguments.patch - 721-NET-no-auto-carrier-off-support.patch - 800-dmaengine-mediatek-add-HSDMA-support-for-mt7621.patch - 802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch - 810-uvc-add-iPassion-iP2970-support.patch - 821-SPI-ralink-add-Ralink-SoC-spi-driver.patch - 835-asoc-add-mt7620-support.patch - 840-serial-add-ugly-custom-baud-rate-hack.patch - 845-pwm-add-mediatek-support.patch - 850-awake-rt305x-dwc2-controller.patch Tested-by: Andre Heider <a.heider@gmail.com> # netgear,wac124 Tested-by: Andrey Jr. Melnikov <temnota.am@gmail.com> # Xiaomi Mi Router 3G Tested-by: Timo Dorfner <timo.capa@gmail.com> # mt7621/mir3g mt7621/rm2100 Reviewed-by: Shiji Yang <yangshiji66@qq.com> Co-Developed-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: 6.1: ralink: fix ethernet driver with 6.1Mieczyslaw Nalewaj2024-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes errors in the form of: make[9]: Entering directory '/home/nick/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-6.1.77' CC drivers/net/ethernet/ralink/mtk_eth_soc.o drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_init': drivers/net/ethernet/ralink/mtk_eth_soc.c:1368:51: warning: passing argument 2 of 'of_get_mac_address' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1368 | of_get_mac_address(priv->dev->of_node, dev->dev_addr); | ~~~^~~~~~~~~~ In file included from drivers/net/ethernet/ralink/mtk_eth_soc.c:26: ./include/linux/of_net.h:16:59: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *' 16 | extern int of_get_mac_address(struct device_node *np, u8 *mac); | ~~~~^~~ drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_probe': drivers/net/ethernet/ralink/mtk_eth_soc.c:1641:9: error: too many arguments to function 'netif_napi_add' 1641 | netif_napi_add(netdev, &priv->rx_napi, fe_poll, napi_weight); | ^~~~~~~~~~~~~~ In file included from ./include/linux/etherdevice.h:21, from drivers/net/ethernet/ralink/mtk_eth_soc.c:21: ./include/linux/netdevice.h:2611:1: note: declared here 2611 | netif_napi_add(struct net_device *dev, struct napi_struct *napi, | ^~~~~~~~~~~~~~ Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> [split commit and rewrite commit message] Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: 6.1: spi: fix patch by replacing cs_gpio with cs_gpiodMieczyslaw Nalewaj2024-02-10
| | | | | | | | | | | | Upstream commit f48dc6b96649 ("spi: Retire legacy GPIO handling") [0] removed support using GPIOs as chip select. Fix it by replacing cs_gpio with cs_gpiod. [0] - https://github.com/torvalds/linux/commit/f48dc6b9664963107e500aecfc2f4df27dc5afb6 Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> [split commit and rewrite commit message] Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: 6.1: ralink: fix const warning in the ethernet driverNick Hainke2024-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | Change fe_hw_set_macaddr and the set_mac parameter to const to fix errors in the form of: drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_set_mac_address': drivers/net/ethernet/ralink/mtk_eth_soc.c:174:53: error: passing argument 2 of 'priv->soc->set_mac' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 174 | priv->soc->set_mac(priv, dev->dev_addr); | ~~~^~~~~~~~~~ drivers/net/ethernet/ralink/mtk_eth_soc.c:174:53: note: expected 'unsigned char *' but argument is of type 'const unsigned char *' drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_hw_init': drivers/net/ethernet/ralink/mtk_eth_soc.c:1220:45: error: passing argument 2 of 'priv->soc->set_mac' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1220 | priv->soc->set_mac(priv, dev->dev_addr); | ~~~^~~~~~~~~~ drivers/net/ethernet/ralink/mtk_eth_soc.c:1220:45: note: expected 'unsigned char *' but argument is of type 'const unsigned char *' drivers/net/ethernet/ralink/mtk_eth_soc.c:1222:44: error: passing argument 2 of 'fe_hw_set_macaddr' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1222 | fe_hw_set_macaddr(priv, dev->dev_addr); | ~~~^~~~~~~~~~ drivers/net/ethernet/ralink/mtk_eth_soc.c:155:75: note: expected 'unsigned char *' but argument is of type 'const unsigned char *' 155 | static inline void fe_hw_set_macaddr(struct fe_priv *priv, unsigned char *mac) | ~~~~~~~~~~~~~~~^~~ cc1: all warnings being treated as errors Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: 6.1: pwm: rewrite mtk_pwm_ops to fix pwm driverNick Hainke2024-02-10
| | | | | | | | | | | | | | | | | | | | | | | | Upstream dropped support for legacy driver [0]. Rewrite the driver like the renesas pwm driver [1]. Fixes erros in the form of: make: *** [/__w/openwrt/openwrt/openwrt/include/toplevel.mk:232: target/compile] Error 1 ====== Make errors from logs/target/linux/compile.txt ====== | ^~~~~~~~~~~~~~ drivers/pwm/pwm-mediatek-ramips.c:107:19: note: (near initialization for 'mtk_pwm_ops.free') drivers/pwm/pwm-mediatek-ramips.c:108:10: error: 'const struct pwm_ops' has no member named 'disable' 108 | .disable = mtk_pwm_disable, | ^~~~~~~ drivers/pwm/pwm-mediatek-ramips.c:108:20: error: initialization of 'int (*)(struct pwm_chip *, struct pwm_device *, struct pwm_capture *, long unsigned int)' from incompatible pointer type 'void (*)(struct pwm_chip *, struct pwm_device *)' [-Werror=incompatible-pointer-types] 108 | .disable = mtk_pwm_disable, | ^~~~~~~~~~~~~~~ drivers/pwm/pwm-mediatek-ramips.c:108:20: note: (near initialization for 'mtk_pwm_ops.capture') cc1: all warnings being treated as errors [0] - https://github.com/torvalds/linux/commit/0829c35dc5346e90f428de61896362b51ab58296 [1] - https://github.com/torvalds/linux/commit/ec00cd5e63f05461ab48128775c73c851c3c2b18 Signed-off-by: Nick Hainke <vincent@systemli.org>
* ramips: 6.1: dai_dma: drop dma_data->slave_id in mt7620 support patchNick Hainke2024-02-10
| | | | | | | | | | | | | | | | | | Upstream dropped slave_id in dai_dma [0]. So drop it also in the mt7620 support patch. Fixes errors in the form of: sound/soc/ralink/ralink-i2s.c: In function 'ralink_i2s_init_dma_data': sound/soc/ralink/ralink-i2s.c:452:17: error: 'struct snd_dmaengine_dai_dma_data' has no member named 'slave_id' 452 | dma_data->slave_id = i2s->txdma_req; | ^~ sound/soc/ralink/ralink-i2s.c:462:17: error: 'struct snd_dmaengine_dai_dma_data' has no member named 'slave_id' 462 | dma_data->slave_id = i2s->rxdma_req; | ^~ [0] - https://lore.kernel.org/r/20211122222203.4103644-3-arnd@kernel.org Signed-off-by: Nick Hainke <vincent@systemli.org>