aboutsummaryrefslogtreecommitdiff
path: root/package/kernel
Commit message (Collapse)AuthorAge
* kernel: kmod-phy-smsc: add dependency on crc16Tomasz Maciej Nowak2024-03-29
| | | | | | Introduced WoL feature needs CRC16 support. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
* kernel: qca-ssdk: fix C45 MDIO support on kernel 6.6Robert Marko2024-03-26
| | | | | | | | | | | | | | | | | | | Kernel 6.3 has introduced separate C45 read/write operations, and thus split them out of the C22 operations completely so the old way of marking C45 reads and writes via the register value does not work anymore. This is causing SSDK to fail and find C45 only PHY-s such as Aquantia ones: [ 22.187877] ssdk_phy_driver_init[371]:INFO:dev_id = 0, phy_adress = 8, phy_id = 0x0 phytype doesn't match [ 22.209924] ssdk_phy_driver_init[371]:INFO:dev_id = 0, phy_adress = 0, phy_id = 0x0 phytype doesn't match This in turn causes USXGMII MAC autoneg bit to not get set and then UNIPHY autoneg will time out, causing the 10G ports not to work: [ 37.292784] uniphy autoneg time out! So, lets detect C45 reads and writes by the magic BIT(30) in the register argument and if so call separate C45 mdiobus read/write functions. Signed-off-by: Robert Marko <robimarko@gmail.com>
* treewide: update PKG_MIRROR_HASH after APK version schemaPaul Spooren2024-03-25
| | | | | | | | | | With the change in version schema the downloaded files changed, too, mostly the hash is now prefixed with a tilde `~` instead of a dash `-`. Since each downloaded archive contains folder with the same name as the archive, the checksum changed. Signed-off-by: Paul Spooren <mail@aparcar.org>
* imx: add imx8m supportTim Harvey2024-03-24
| | | | | | | | | | | | | | | | | | | | Add imx8m support: - add a cortexa53 subtarget to imx - move ARCH and KERNELNAME to subtargets - account for kernel modules that are not used for cortexa53 No device-specific targets or firmware images are created yet but all imx8m* dtbs will be built. enabling CONFIG_TARGET_ROOTFS_INITRAMFS results in openwrt-imx-cortexa53-imx8m-initramfs-kernel.bin which has been successfully booted on an imx8mm-evk using the following: u-boot=> tftpboot $fdt_addr_r image-imx8mm-evk.dtb && \ tftpboot $kernel_addr_r openwrt-imx-cortexa53-imx8m-initramfs-kernel.bin && \ booti $kernel_addr_r - $fdt_addr_r Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* mac80211: carl9170: re-fix fortified-memset warningMieczyslaw Nalewaj2024-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | The carl9170_tx_release() function sometimes triggers a fortified-memset warning in my randconfig builds: In file included from include/linux/string.h:254, from drivers/net/wireless/ath/carl9170/tx.c:40: In function 'fortify_memset_chk', inlined from 'carl9170_tx_release' at drivers/net/wireless/ath/carl9170/tx.c:283:2, inlined from 'kref_put' at include/linux/kref.h:65:3, inlined from 'carl9170_tx_put_skb' at drivers/net/wireless/ath/carl9170/tx.c:342:9: include/linux/fortify-string.h:493:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] 493 | __write_overflow_field(p_size_field, size); Kees previously tried to avoid this by using memset_after(), but it seems this does not fully address the problem. I noticed that the memset_after() here is done on a different part of the union (status) than the original cast was from (rate_driver_data), which may confuse the compiler. Unfortunately, the memset_after() trick does not work on driver_rates[] because that is part of an anonymous struct, and I could not get struct_group() to do this either. Using two separate memset() calls on the two members does address the warning though. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* kernel: kmod-ata-ahci-platform: enable support for RK35xxMarius Durbaca2024-03-23
| | | | | | | enable support for RK35xx in kmod-ata-ahci-platform kernel module Suggested-by: Tianling Shen <cnsztl@immortalwrt.org> Signed-off-by: Marius Durbaca <mariusd84@gmail.com>
* treewide: use APK compatible version schemaPaul Spooren2024-03-22
| | | | | | | | | | | | | | | | | Different from OPKG, APK uses a deterministic version schema which chips the version into chunks and compares them individually. This enforces a certain schema which was previously entirely flexible. - Releases are added at the very and end prefixed with an `r` like `1.2.3-r3`. - Hashes are prefixed with a `~` like `1.2.3~abc123`. - Dates become semantic versions, like `2024.04.01` - Extra tags are possible like `_git`, `_alpha` and more. For full details see the APK test list: https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/master/test/version.data Signed-off-by: Paul Spooren <mail@aparcar.org>
* kernel: qca-nss-dp: enable compiling against 6.6Robert Marko2024-03-22
| | | | | | | Since 6.5 netdev_rx_queue was moved out of netdevice.h so include the new header since that is where it lives now. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: qca-ssdk: allow compiling against 6.6Robert Marko2024-03-22
| | | | | | | Add a patch that makes SSDK recognize kernel 6.6 and thus allows compiling against it. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: update deprecated license informationFlorian Eckert2024-03-21
| | | | | | | | | Update the deprecated license information from GPL-2.0 to GPL-2.0-only as written in the COPYING file of the linux source tree. Also add the 'COPYING' file to the PKG_LICENSE_FILES variable. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mac80211: add missing license informationFlorian Eckert2024-03-21
| | | | | | | The lincense information for the packages mac80211 are missing. This commit adds the missing information. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* mt76: update to Git HEAD (2024-03-18)Felix Fietkau2024-03-18
| | | | | | | | | | | | | | | | | | | | a903d3169193 wifi: mt76: mt7921: fix a potential association failure upon resuming eb0d0ce344f3 wifi: mt76: mt7921: fix suspend issue on MediaTek COB platform 841bf82e9958 wifi: mt76: fix the issue of missing txpwr settings from ch153 to ch177 ce7ccc540168 wifi: mt76: Remove redundant assignment to variable tidno a238df940d6f wifi: mt76: mt7915: initialize rssi on adding stations 46c7d1849dbd wifi: mt76: replace skb_put with skb_put_zero b5640b3153c7 wifi: mt76: fix tx packet loss when scanning on DBDC 7b054e5cb3af wifi: mt76: mt7915: fix mcu command format for mt7915 tx stats 3f27a64a8010 wifi: mt76: mt7915: fix bogus Tx/Rx airtime duration values 4f681a8fbc91 wifi: mt76: mt7915: fix HE PHY capabilities IE for station mode 8ede229eb8b5 wifi: mt76: mt7915: only set MT76_MCU_RESET for the main phy 2330781b8c5f wifi: mt76: mt7996: only set MT76_MCU_RESET for the main phy e5fb6995e7eb wifi: mt76: mt7915: add support for disabling in-band discovery b4a917417c85 wifi: mt76: mt7915: add mt7986, mt7916 and mt7981 pre-calibration 2135e201e7a9 mt76: mt7915: add fallback in case of missing precal data Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: modules: package driver for MediaTek T7xx PCIe 5G modemDaniel Golle2024-03-17
| | | | | | | Build and package driver for MediaTek PCIe 5G WWAN modem T7xx device available in Linux 6.1 and 6.6 as kmod-mtk-t7xx. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* hwmon: add TC654 fan-controller supportZoltan HERPAI2024-03-17
| | | | | | Add support for the Microchip TC654 PWM fan-controller. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* mac80211: fix a crash triggered by sta disconnect with per-sta VLANsFelix Fietkau2024-03-16
| | | | | Reported-by: ranygh@riseup.net Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: fix another regression in the broadcast AQL patchFelix Fietkau2024-03-15
| | | | | | | | | | Add a separate bit in struct ieee80211_tx_info to indicate airtime tracked as broadcast/multicast. This avoids a race condition where airtime from stations that were just removed wasn't getting subtracted from the total PHY airtime. Fixes: 95e633efbd1b ("mac80211: add AQL support for broadcast/multicast packets") Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: modules: video: select drm-exec and drm-suballoc-helper for AMDGPURobert Marko2024-03-15
| | | | | | | | drm-amdgpu and drm-radeon require drm-exec and/or drm-suballoc-helper in 6.6, so since we have them packaged separately include them when required. Fixes: 5b08b5600720 ("kernel: modules: video: adapt for kernel 6.6") Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: modules: video: package DRM suballocation helperRobert Marko2024-03-15
| | | | | | | | | | Linux 6.4 has split out the previously AMDGPU specific suballocation helper into a generic one and it has its own symbol now. So, lets package it as a separate helper as AMDGPU still requires it for 6.6. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: modules: video: package DRM EXECRobert Marko2024-03-15
| | | | | | | Linux 6.6 has added DRM EXEC as a separate symbol, so package it separately as AMDGPU requires it. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: modules: video: drm: remove DRM_EXEC and DRM_SUBALLOC_HELPERRobert Marko2024-03-15
| | | | | | | | | | | | | As part of adding kernel 6.6 support, DRM_EXEC and DRM_SUBALLOC_HELPER were added to the kmod-drm, however these are only used by drm-amdgpu and drm-radeon which are only supported on x86. So, lets start fixing building of other targets by removing these from the main kmod-drm, in follow-up commits they will be packaged separately and selected when required. Fixes: 5b08b5600720 ("kernel: modules: video: adapt for kernel 6.6") Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: kmod-hwmon-coretemp: Depend on x86Hauke Mehrtens2024-03-14
| | | | | | This kernel module depends on x86, it works only on some Intel CPUs. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-video-cpia2: Depend on kernel 5.15Hauke Mehrtens2024-03-14
| | | | | | | | | | | This driver was moved to staging in kernel 6.1 and then removed in kernel 6.3, see these commits: https://git.kernel.org/linus/be8cebc46d9d38166a1b3fda22a018ae52b0928e https://git.kernel.org/linus/9ea8a9c72a9b4d24e6045ee25f5e465dc22f9f55 Build it only on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-can: Fix build of can driversHauke Mehrtens2024-03-14
| | | | | | | | | | | | | | | | | | | | | Many can kernel modules are now gated by the newly introduced CONFIG_CAN_NETLINK configuration option. Activate it to build the can drivers again. This was changed in this upstream Linux commit: https://git.kernel.org/linus/df6ad5dd838e0fa543ca28ca6154901fa65a9443 This should fix these warnings with kernel 6.1 and 6.6: logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can-pci is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-c-can-platform is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-mcp251x is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-slcan is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-8dev is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-ems is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-kvaser is not available in the kernel config - generating empty package logs/package/kernel/linux/compile.txt:WARNING: kmod-can-usb-peak is not available in the kernel config - generating empty package Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-can-flexcan: Fix flexcan.ko locationHauke Mehrtens2024-03-14
| | | | | | | | | The flexcan.ko file was moved in upstream Linux: https://git.kernel.org/linus/bfd00e021cf162049946a9e0047b0997d2b35fec This fixes the build with kernel >= 5.17. This module was never build with kernel 6.1 before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-can-slcan: Fix can-slcan.ko locationHauke Mehrtens2024-03-14
| | | | | | | | | The slcan.ko file was moved in upstream Linux: https://git.kernel.org/linus/98b12064591d635db86da4957b547067dc6897cc This fixes the build with kernel >= 6.0. This module was never build with kernel 6.1 before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-crypto-gf128: Fix build with kernel 6.6Hauke Mehrtens2024-03-14
| | | | | | | The gf128mul.ko module was moved in kernel 6.2: https://git.kernel.org/linus/61c581a46a9668747d355436bd4b2505594539bd Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: kmod-crypto-user: Add missing dependencyHauke Mehrtens2024-03-14
| | | | | | | The algif_rng.ko kernel module depends on the rng.ko kernel module with kernel 6.6 when compiling for MIPS malta. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: modules: don't override NLS dependenciesDaniel Golle2024-03-11
| | | | | | | | | | | | | Recent changes for Linux 6.6 broke things when building with older kernels: Package kmod-fs-jfs is missing dependencies for the following libraries: nls_base.ko Fix this by adding NLS dependencies after the added dependency applying on Linux 6.6. Fixes: f9198480da ("kernel: modules: fs: adapt for kernel 6.6") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ath10k-ct: fix build error on linux kernel 6.6Weijie Gao2024-03-11
| | | | | | Fix a build error caused by fortify checking memcpy data range. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* rtl8812au-ct: fix build failure on linux kernel 6.6Weijie Gao2024-03-11
| | | | | | Use the correct return status code to avoid incompatible type error Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* mt76: fix build failure on linux kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | | A commit introduced in kernel 6.6 has splitted page_pool.h into several headers. Thus the included header must be modified for a successful build. Ref: a9ca9f9ceff3 (page_pool: split types and declarations from page_pool.h) Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* mac80211: fix build with linux kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | | | | | | | | | | | Fix build failure with linux kernel 6.6 Related kernel commits: 20b0b53aca43 (genetlink: introduce split op representation) bffcc6882a1b (genetlink: remove userhdr from struct genl_info) e9a688bcb193 (random: use rejection sampling for uniform bounded random integers) 3c202d14a9d7 (prandom: remove prandom_u32_max()) 3d2f20ad46f8 (wifi: iwlwifi: Use generic thermal_zone_get_trip() function) Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* gpio-button-hotplug: fix 6.2 build failureWeijie Gao2024-03-11
| | | | | | | | | | | devm_gpiod_get_from_of_node() was removed since linux 6.2. devm_fwnode_gpiod_get() is the recommended replacement. Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpio/gpiolib-devres.c?id=650f2dc970539b3344a98c4bd18efa309e66623b Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: crypto: add kmod-crypto-geniv as dependency to modules that use itRobert Marko2024-03-11
| | | | | | | | Now that geniv is packaged separately for kernel 6.6, we need to add it as a dependency to kmod-crypto-seqiv and kmod-crypto-echainiv that require it under kernel 6.6. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: crypto: remove geniv from aead with kernel 6.6Robert Marko2024-03-11
| | | | | | | | geniv was separated intentionally from aead in kernel 6.5, and since we now have it packaged separately as well remove it from kmod-aead in 6.6. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: crypto: package geniv as a separate module for 6.6Robert Marko2024-03-11
| | | | | | | | | | In kernel 6.5 geniv was split from AEAD config symbol, in order to manage its dependencies on other code. So, lets do the same in OpenWrt and split it from aead module so others can depend on geniv directly. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: modules: hwmon: adapt for kernel 6.6Tan Zien2024-03-11
| | | | | | | | | Adapt hwmon kmods for building under kernel 6.6: * ad7418 now requires regmap * Invert criteria to allow adt7410 be built with Linux 6.1 as well as Linux 6.6. Signed-off-by: Tan Zien <nabsdh9@gmail.com>
* kernel: modules: crypto: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | Adapt crypto kmods for building under kernel 6.6: * mpi.ko moved from lib/mpi/mpi.ko to lib/crypto/mpi/mpi.ko * jitterentropy_rng requires SHA3 support for kernel 6.6 Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Tan Zien <nabsdh9@gmail.com> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: video: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | | Adapt video kmods for building under kernel 6.6: * Add drm_exec.ko and drm_suballoc_helper.ko for kmod-drm as they are added since 6.6 and 6.4 * Add uvc.ko for kmod-video-uvc as related contents was split as a new module since 6.3 Signed-off-by: Tan Zien <nabsdh9@gmail.com> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: block: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | Adapt block kmods for building under kernel 6.6: * To build scsi_transport_iscsi.ko, change CONFIG_SCSI_ISCSI_ATTRS from =y to =m as this config is always tristate since 2.6. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: fs: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | | | | | | | | | | Adapt fs kmods for building under kernel 6.6: * Add kmod-fs-netfs as dependency for kmod-fs-9p * Add kmod-fs-netfs as dependency for fs-smbfs-common as netfs is required for cifs since 6.3 * Add new kmod-nls-ucs2-utils as dependency for smbfs/jfs as UCS2 support was split as new module since 6.6. * Add kmod-lib-zlib-deflate and kmod-lib-zlib-inflate as dependencies for kmod-pstore due to crypto API compression was replaced with zlib_deflate library calls since 6.6 * Remove nfs_ssc.ko from kmod-fs-nfs-common. The nfs_ssc was no longer a kernel module described by NFS_V4_2_SSC_HELPER since 5.13 [1] Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/fs/Kconfig?id=d9092b4bb2109502eb8972021a3f74febc931a63 Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: usb: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | Adapt usb kmods for building under kernel 6.6: * Add kmod-phylink as dependency for usb-net-asix * Add kmod-net-selftests as dependency for usb-net-smsc95xx * Add kmod-iio-core as dependency for usb-hid-mcp2221 as ADC/DAC support was added since 6.2 which requires IIO. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: netdevices: adapt for kernel 6.6Daniel Golle2024-03-11
| | | | | | | | | | | | Adapt netdevices kmods for building under kernel 6.6: * Add missing module dependency for kmod-stmmac-core on kmod-of-mdio. * Invert criteria to allow Airoha EN8811H PHY driver to build with Linux 6.1 as well as Linux 6.6. * Mellanox mlx5 driver started exposing thermal sensors and now it requires hwmon Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: modules: netsupport: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | Adapt netsupport kmods for building under kernel 6.6: * common part of mqprio was split into a new Kconfig since 6.3. Add new kmod-sched-mqprio-common as dependency for kmod-sched-mqprio. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: input: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | | | Adapt input kmods for building under kernel 6.6: * kmod-input-touchscreen-edt-ft5x06 depends on kmod-regmap-i2c from 6.3 as it starts to use regmap to access registers * CONFIG_HID_SUPPORT needs to be set in addition to CONFIG_HID. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: iio: adapt for kernel 6.6Weijie Gao2024-03-11
| | | | | | | | Adapt iio kmods for building under kernel 6.6: * kmod-iio-lsm6dsx depends on kmod-kmod-industrialio-triggered-buffer from 6.2 Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* mac80211: select BRCMFMAC_SDIO on starfiveZoltan HERPAI2024-03-10
| | | | | | | As the Visionfive V1 board has an Ampak module connected via SDIO, enable support for SDIO in the brcmfmac module. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* usb: add cdns3 supportZoltan HERPAI2024-03-10
| | | | | | | | | | CDNS3 is a SuperSpeed (SS) USB 3.0 Dual-Role-Device (DRD) controller from Cadence. Add support for this device, and add the required symbols into the generic configs. Compile-tested: apm821xx, bcm4908, imx, mpc85xx, pistachio, starfive Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* mac80211: rtl8xxxu: sync with linux-next 20240229Shiji Yang2024-03-09
| | | | | | Backporting upstream patches to improve RTL8188F support. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* mac80211: fix a regression in the broadcast AQL patchFelix Fietkau2024-03-08
| | | | | | | | | The AQL limit for buffered broadcast packets is higher than the maximum total pending airtime limit. This can get unicast data stuck whenever there is too much pending broadcast data. Fix this by excluding broadcast AQL from the total limit. Signed-off-by: Felix Fietkau <nbd@nbd.name>