mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-30 16:14:12 +00:00
generic: ar8216: remove support for Linux before version 6.1
Drop support for older kernel versions from legacy AR8216 switch driver. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
3f01b29146
commit
3660ddb8ab
@ -35,7 +35,6 @@
|
|||||||
#include <linux/lockdep.h>
|
#include <linux/lockdep.h>
|
||||||
#include <linux/ar8216_platform.h>
|
#include <linux/ar8216_platform.h>
|
||||||
#include <linux/workqueue.h>
|
#include <linux/workqueue.h>
|
||||||
#include <linux/version.h>
|
|
||||||
|
|
||||||
#include "ar8216.h"
|
#include "ar8216.h"
|
||||||
|
|
||||||
@ -2458,11 +2457,7 @@ ar8xxx_phy_config_init(struct phy_device *phydev)
|
|||||||
/* VID fixup only needed on ar8216 */
|
/* VID fixup only needed on ar8216 */
|
||||||
if (chip_is_ar8216(priv)) {
|
if (chip_is_ar8216(priv)) {
|
||||||
dev->phy_ptr = priv;
|
dev->phy_ptr = priv;
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
|
|
||||||
dev->priv_flags |= IFF_NO_IP_ALIGN;
|
dev->priv_flags |= IFF_NO_IP_ALIGN;
|
||||||
#else
|
|
||||||
dev->extra_priv_flags |= IFF_NO_IP_ALIGN;
|
|
||||||
#endif
|
|
||||||
dev->eth_mangle_rx = ar8216_mangle_rx;
|
dev->eth_mangle_rx = ar8216_mangle_rx;
|
||||||
dev->eth_mangle_tx = ar8216_mangle_tx;
|
dev->eth_mangle_tx = ar8216_mangle_tx;
|
||||||
}
|
}
|
||||||
@ -2697,11 +2692,7 @@ ar8xxx_phy_detach(struct phy_device *phydev)
|
|||||||
|
|
||||||
#ifdef CONFIG_ETHERNET_PACKET_MANGLE
|
#ifdef CONFIG_ETHERNET_PACKET_MANGLE
|
||||||
dev->phy_ptr = NULL;
|
dev->phy_ptr = NULL;
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
|
|
||||||
dev->priv_flags &= ~IFF_NO_IP_ALIGN;
|
dev->priv_flags &= ~IFF_NO_IP_ALIGN;
|
||||||
#else
|
|
||||||
dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN;
|
|
||||||
#endif
|
|
||||||
dev->eth_mangle_rx = NULL;
|
dev->eth_mangle_rx = NULL;
|
||||||
dev->eth_mangle_tx = NULL;
|
dev->eth_mangle_tx = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user