aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2021-12-05 16:00:47 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-12-14 21:18:38 +0100
commit83f664bbc583cc6c796510a04e57bb79429c0a89 (patch)
tree973949d34cfba9be723c6fe165debe90e737883a
parent9b9a5b573a295d6ae2844017b82a8bb8878fd12f (diff)
downloadbackports-83f664bbc583cc6c796510a04e57bb79429c0a89.tar.gz
patches: Refresh patches on top of kernel 5.15.8v5.15.8-1
Manual refreshed: patches/0101-net_device-threaded/mt76.patch Extend patches/0089-unknown-dmi/brcmfmac.patch to handle one more DMI_PRODUCT_SKU usage. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch2
-rw-r--r--patches/0077-genl-ro-after-init/nl80211.patch2
-rw-r--r--patches/0089-unknown-dmi/brcmfmac.patch10
-rw-r--r--patches/0097-skb-list/mac80211-rx.patch14
-rw-r--r--patches/0097-skb-list/mt76.patch8
-rw-r--r--patches/0100-revert-small_ops/mac80211.patch4
-rw-r--r--patches/0101-net_device-threaded/mt76.patch6
7 files changed, 28 insertions, 18 deletions
diff --git a/patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch b/patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch
index f7484b67..b61ffd61 100644
--- a/patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch
+++ b/patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch
@@ -11,7 +11,7 @@
device_initialize(&rdev->wiphy.dev);
rdev->wiphy.dev.class = &ieee80211_class;
rdev->wiphy.dev.platform_data = rdev;
-@@ -1296,6 +1292,10 @@ void cfg80211_init_wdev(struct wireless_
+@@ -1306,6 +1302,10 @@ void cfg80211_init_wdev(struct wireless_
INIT_WORK(&wdev->pmsr_free_wk, cfg80211_pmsr_free_wk);
#ifdef CONFIG_CFG80211_WEXT
diff --git a/patches/0077-genl-ro-after-init/nl80211.patch b/patches/0077-genl-ro-after-init/nl80211.patch
index aff82a2b..301d0bea 100644
--- a/patches/0077-genl-ro-after-init/nl80211.patch
+++ b/patches/0077-genl-ro-after-init/nl80211.patch
@@ -1,6 +1,6 @@
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
-@@ -15909,7 +15909,7 @@ static const struct genl_small_ops nl802
+@@ -15913,7 +15913,7 @@ static const struct genl_small_ops nl802
},
};
diff --git a/patches/0089-unknown-dmi/brcmfmac.patch b/patches/0089-unknown-dmi/brcmfmac.patch
index 1fbb1992..ab034040 100644
--- a/patches/0089-unknown-dmi/brcmfmac.patch
+++ b/patches/0089-unknown-dmi/brcmfmac.patch
@@ -20,3 +20,13 @@
/* also match on somewhat unique bios-version */
DMI_EXACT_MATCH(DMI_BIOS_VERSION, "1.000"),
},
+@@ -80,7 +84,9 @@ static const struct dmi_system_id dmi_pl
+ .matches = {
+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Default string"),
+ DMI_EXACT_MATCH(DMI_BOARD_NAME, "Cherry Trail CR"),
++#if LINUX_VERSION_IS_GEQ(4,18,0)
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "20170531"),
++#endif
+ },
+ /* The factory image nvram file is identical to the ACEPC T8 one */
+ .driver_data = (void *)&acepc_t8_data,
diff --git a/patches/0097-skb-list/mac80211-rx.patch b/patches/0097-skb-list/mac80211-rx.patch
index c4c22bb3..21dfddbd 100644
--- a/patches/0097-skb-list/mac80211-rx.patch
+++ b/patches/0097-skb-list/mac80211-rx.patch
@@ -37,7 +37,7 @@ the older kernel instead. The list attributes where also backported to
struct ieee80211_sub_if_data *sdata;
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
-@@ -2609,7 +2609,11 @@ static void ieee80211_deliver_skb_to_loc
+@@ -2610,7 +2610,11 @@ static void ieee80211_deliver_skb_to_loc
/* deliver to local stack */
if (rx->list)
@@ -49,7 +49,7 @@ the older kernel instead. The list attributes where also backported to
else
netif_receive_skb(skb);
}
-@@ -4519,7 +4523,11 @@ static void ieee80211_rx_8023(struct iee
+@@ -4520,7 +4524,11 @@ static void ieee80211_rx_8023(struct iee
skb->protocol = eth_type_trans(skb, fast_rx->dev);
memset(skb->cb, 0, sizeof(skb->cb));
if (rx->list)
@@ -61,7 +61,7 @@ the older kernel instead. The list attributes where also backported to
else
netif_receive_skb(skb);
-@@ -4701,7 +4709,11 @@ static bool ieee80211_prepare_and_rx_han
+@@ -4702,7 +4710,11 @@ static bool ieee80211_prepare_and_rx_han
static void __ieee80211_rx_handle_8023(struct ieee80211_hw *hw,
struct ieee80211_sta *pubsta,
struct sk_buff *skb,
@@ -73,7 +73,7 @@ the older kernel instead. The list attributes where also backported to
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_fast_rx *fast_rx;
-@@ -4742,7 +4754,11 @@ drop:
+@@ -4743,7 +4755,11 @@ drop:
static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
struct ieee80211_sta *pubsta,
struct sk_buff *skb,
@@ -85,7 +85,7 @@ the older kernel instead. The list attributes where also backported to
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_sub_if_data *sdata;
-@@ -4867,7 +4883,11 @@ static void __ieee80211_rx_handle_packet
+@@ -4868,7 +4884,11 @@ static void __ieee80211_rx_handle_packet
* 802.11 MPDU is received from the hardware.
*/
void ieee80211_rx_list(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta,
@@ -97,7 +97,7 @@ the older kernel instead. The list attributes where also backported to
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_rate *rate = NULL;
-@@ -4990,7 +5010,13 @@ void ieee80211_rx_napi(struct ieee80211_
+@@ -4992,7 +5012,13 @@ void ieee80211_rx_napi(struct ieee80211_
struct sk_buff *skb, struct napi_struct *napi)
{
struct sk_buff *tmp;
@@ -111,7 +111,7 @@ the older kernel instead. The list attributes where also backported to
/*
-@@ -5007,8 +5033,13 @@ void ieee80211_rx_napi(struct ieee80211_
+@@ -5009,8 +5035,13 @@ void ieee80211_rx_napi(struct ieee80211_
return;
}
diff --git a/patches/0097-skb-list/mt76.patch b/patches/0097-skb-list/mt76.patch
index 7ed0796e..daa7d1f9 100644
--- a/patches/0097-skb-list/mt76.patch
+++ b/patches/0097-skb-list/mt76.patch
@@ -30,7 +30,7 @@
}
--- a/drivers/net/wireless/mediatek/mt76/mt76.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76.h
-@@ -1089,7 +1089,11 @@ struct sk_buff *mt76_tx_status_skb_get(s
+@@ -1095,7 +1095,11 @@ struct sk_buff *mt76_tx_status_skb_get(s
void mt76_tx_status_skb_done(struct mt76_dev *dev, struct sk_buff *skb,
struct sk_buff_head *list);
void __mt76_tx_complete_skb(struct mt76_dev *dev, u16 wcid, struct sk_buff *skb,
@@ -90,7 +90,7 @@
}
--- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
-@@ -929,7 +929,11 @@ mt7921_tx_check_aggr(struct ieee80211_st
+@@ -979,7 +979,11 @@ mt7921_tx_check_aggr(struct ieee80211_st
static void
mt7921_tx_complete_status(struct mt76_dev *mdev, struct sk_buff *skb,
struct ieee80211_sta *sta, u8 stat,
@@ -102,7 +102,7 @@
{
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
struct ieee80211_tx_status status = {
-@@ -999,10 +1003,16 @@ void mt7921_mac_tx_free(struct mt7921_de
+@@ -1049,10 +1053,16 @@ void mt7921_mac_tx_free(struct mt7921_de
struct mt76_dev *mdev = &dev->mt76;
struct mt76_txwi_cache *txwi;
struct ieee80211_sta *sta = NULL;
@@ -120,7 +120,7 @@
/* clean DMA queues and unmap buffers first */
mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false);
-@@ -1080,8 +1090,13 @@ void mt7921_mac_tx_free(struct mt7921_de
+@@ -1130,8 +1140,13 @@ void mt7921_mac_tx_free(struct mt7921_de
napi_consume_skb(skb, 1);
diff --git a/patches/0100-revert-small_ops/mac80211.patch b/patches/0100-revert-small_ops/mac80211.patch
index 294af180..9f85a12f 100644
--- a/patches/0100-revert-small_ops/mac80211.patch
+++ b/patches/0100-revert-small_ops/mac80211.patch
@@ -1,6 +1,6 @@
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
-@@ -15145,9 +15145,11 @@ static const struct genl_ops nl80211_ops
+@@ -15149,9 +15149,11 @@ static const struct genl_ops nl80211_ops
/* can be retrieved by unprivileged users */
.internal_flags = NL80211_FLAG_NEED_WIPHY,
},
@@ -12,7 +12,7 @@
{
.cmd = NL80211_CMD_SET_WIPHY,
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
-@@ -15938,8 +15940,10 @@ static struct genl_family nl80211_fam __
+@@ -15942,8 +15944,10 @@ static struct genl_family nl80211_fam __
.module = THIS_MODULE,
.ops = nl80211_ops,
.n_ops = ARRAY_SIZE(nl80211_ops),
diff --git a/patches/0101-net_device-threaded/mt76.patch b/patches/0101-net_device-threaded/mt76.patch
index af155cec..81d5180d 100644
--- a/patches/0101-net_device-threaded/mt76.patch
+++ b/patches/0101-net_device-threaded/mt76.patch
@@ -16,10 +16,10 @@
int mt76_queues_read(struct seq_file *s, void *data)
{
-@@ -128,8 +130,10 @@ struct dentry *mt76_register_debugfs(str
+@@ -130,8 +132,10 @@ mt76_register_debugfs_fops(struct mt76_d
+ debugfs_create_u8("led_pin", 0600, dir, &dev->led_pin);
debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg);
- debugfs_create_file_unsafe("regval", 0600, dir, dev,
- &fops_regval);
+ debugfs_create_file_unsafe("regval", 0600, dir, dev, fops);
+#if LINUX_VERSION_IS_GEQ(5,12,0)
debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev,
&fops_napi_threaded);