feat: add WCN3990 Wi-Fi bringup service, battery protection, and bringup automation
Offline project checks / check (push) Canceled after 0s

- Add phone-dsp.openrc to initialize Hexagon DSP, rmtfs, pd-mapper, and ath10k_snoc
- Update phone-battery-guard threshold to 80% with power supply node fallbacks
- Enhance phone-cellular-setup with battery gate checks, RF locks, and unit tests
- Include bringup, flashing, and inspection automation scripts for platina
- Update candidate IPA v2.6 patches and package locks
This commit is contained in:
shenlei
2026-11-12 14:54:23 +09:00
parent 225ad54930
commit 530a3690da
34 changed files with 4103 additions and 47 deletions
@@ -7,25 +7,22 @@ device on Xiaomi Mi 8 Lite (Platina).
--- a/arch/arm64/boot/dts/qcom/sdm660.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi
@@ -435,6 +435,24 @@
@@ -435,6 +435,21 @@
};
};
};
+ ipa: ipa@1e00000 {
+ ipa: ipa@14780000 {
+ compatible = "qcom,sdm660-ipa", "qcom,ipa-v2.6";
+ reg = <0x01e00000 0x34000>,
+ <0x01e04000 0x4000>,
+ <0x01e04000 0x15000>;
+ reg = <0x14780000 0x4000>,
+ <0x14784000 0x4000>;
+ reg-names = "ipa-reg",
+ "ipa-shared",
+ "bam-reg";
+ interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
+ <&intc GIC_SPI 312 IRQ_TYPE_EDGE_RISING>;
+ "ipa-shared";
+ interrupts-extended = <&intc GIC_SPI 333 IRQ_TYPE_EDGE_RISING>,
+ <&intc GIC_SPI 432 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "ipa",
+ "bam";
+ clocks = <&rpmcc RPM_SMD_IPA_CLK>;
+ clock-names = "core";
+ iommus = <&anoc2_smmu 0x140>;
+ qcom,gsi-loader = "skip";
+ status = "disabled";
+ };
@@ -548,7 +548,7 @@ index 3eb9dc2..99d8f57 100644
extern const struct ipa_data ipa_data_v3_5_1;
extern const struct ipa_data ipa_data_v4_2;
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c
index 0bd9b9f..65864d3 100644
index 0bd9b9f..c6c201f 100644
--- a/drivers/net/ipa/ipa_endpoint.c
+++ b/drivers/net/ipa/ipa_endpoint.c
@@ -600,6 +600,9 @@ void ipa_endpoint_modem_pause_all(struct ipa *ipa, bool enable)
@@ -615,26 +615,96 @@ index 0bd9b9f..65864d3 100644
if (!endpoint->toward_ipa) {
ipa_endpoint_replenish_disable(endpoint);
ipa_interrupt_suspend_disable(ipa->interrupt, endpoint_id);
@@ -1870,6 +1892,9 @@ void ipa_endpoint_suspend_one(struct ipa_endpoint *endpoint)
@@ -1863,13 +1885,22 @@ void ipa_endpoint_disable_one(struct ipa_endpoint *endpoint)
void ipa_endpoint_suspend_one(struct ipa_endpoint *endpoint)
{
- struct device *dev = endpoint->ipa->dev;
- struct gsi *gsi = &endpoint->ipa->gsi;
+ struct device *dev;
+ struct gsi *gsi;
int ret;
+ if (!endpoint)
+ return;
+
+ if (endpoint->ipa->version < IPA_VERSION_3_0)
+ return;
+
if (!test_bit(endpoint->endpoint_id, endpoint->ipa->enabled))
return;
+ if (endpoint->ipa->version < IPA_VERSION_3_0)
+ return;
+ dev = endpoint->ipa->dev;
+ gsi = &endpoint->ipa->gsi;
+
if (!endpoint->toward_ipa) {
ipa_endpoint_replenish_disable(endpoint);
(void)ipa_endpoint_program_suspend(endpoint, true);
@@ -1890,6 +1915,9 @@ void ipa_endpoint_resume_one(struct ipa_endpoint *endpoint)
@@ -1883,13 +1914,22 @@ void ipa_endpoint_suspend_one(struct ipa_endpoint *endpoint)
void ipa_endpoint_resume_one(struct ipa_endpoint *endpoint)
{
- struct device *dev = endpoint->ipa->dev;
- struct gsi *gsi = &endpoint->ipa->gsi;
+ struct device *dev;
+ struct gsi *gsi;
int ret;
+ if (!endpoint)
+ return;
+
+ if (endpoint->ipa->version < IPA_VERSION_3_0)
+ return;
+
if (!test_bit(endpoint->endpoint_id, endpoint->ipa->enabled))
return;
+ if (endpoint->ipa->version < IPA_VERSION_3_0)
+ return;
+ dev = endpoint->ipa->dev;
+ gsi = &endpoint->ipa->gsi;
+
if (!endpoint->toward_ipa)
(void)ipa_endpoint_program_suspend(endpoint, false);
@@ -1906,6 +1946,9 @@ void ipa_endpoint_suspend(struct ipa *ipa)
if (!ipa->setup_complete)
return;
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
if (ipa->modem_netdev)
ipa_modem_suspend(ipa->modem_netdev);
@@ -1918,6 +1961,9 @@ void ipa_endpoint_resume(struct ipa *ipa)
if (!ipa->setup_complete)
return;
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
ipa_endpoint_resume_one(ipa->name_map[IPA_ENDPOINT_AP_COMMAND_TX]);
ipa_endpoint_resume_one(ipa->name_map[IPA_ENDPOINT_AP_LAN_RX]);
@@ -2120,6 +2166,9 @@ void ipa_endpoint_exit(struct ipa *ipa)
{
u32 endpoint_id;
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
ipa->filtered = 0;
for_each_set_bit(endpoint_id, ipa->defined, ipa->endpoint_count)
@@ -2141,6 +2190,9 @@ int ipa_endpoint_init(struct ipa *ipa, u32 count,
const struct ipa_gsi_endpoint_data *data)
{
enum ipa_endpoint_name name;
+
+ if (ipa->version < IPA_VERSION_3_0)
+ return 0;
u32 filtered;
BUILD_BUG_ON(!IPA_REPLENISH_BATCH);
diff --git a/drivers/net/ipa/ipa_interrupt.c b/drivers/net/ipa/ipa_interrupt.c
index 131b9cc..3421d34 100644
--- a/drivers/net/ipa/ipa_interrupt.c
@@ -658,7 +728,7 @@ index 131b9cc..3421d34 100644
weight = bitmap_weight(interrupt->suspend_enabled, ipa->endpoint_count);
diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c
index 788dd99..f17e613 100644
index 788dd99..78b8742 100644
--- a/drivers/net/ipa/ipa_main.c
+++ b/drivers/net/ipa/ipa_main.c
@@ -115,6 +115,16 @@ int ipa_setup(struct ipa *ipa)
@@ -666,28 +736,51 @@ index 788dd99..f17e613 100644
int ret;
+ if (ipa->version < IPA_VERSION_3_0) {
+ ret = ipa_qmi_setup(ipa);
+ ret = ipa_modem_start(ipa);
+ if (ret)
+ return ret;
+
+ ipa->setup_complete = true;
+ dev_info(dev, "IPA v2.6 driver setup completed successfully\n");
+ dev_info(dev, "IPA v2.6 driver setup completed successfully (rmnet_ipa created)\n");
+ return 0;
+ }
+
ret = gsi_setup(&ipa->gsi);
if (ret)
return ret;
@@ -183,6 +193,8 @@ static void ipa_teardown(struct ipa *ipa)
@@ -182,6 +192,11 @@ static void ipa_teardown(struct ipa *ipa)
/* We're going to tear everything down, as if setup never completed */
ipa->setup_complete = false;
ipa_qmi_teardown(ipa);
+ if (ipa->version < IPA_VERSION_3_0)
+ if (ipa->version < IPA_VERSION_3_0) {
+ (void)ipa_modem_stop(ipa);
+ return;
+ }
+
ipa_qmi_teardown(ipa);
ipa_endpoint_default_route_clear(ipa);
exception_endpoint = ipa->name_map[IPA_ENDPOINT_AP_LAN_RX];
ipa_endpoint_disable_one(exception_endpoint);
@@ -637,6 +649,14 @@ static int ipa_firmware_load(struct device *dev)
@@ -527,6 +542,9 @@ static int ipa_config(struct ipa *ipa, const struct ipa_data *data)
{
int ret;
+ if (ipa->version < IPA_VERSION_3_0)
+ return 0;
+
ipa_hardware_config(ipa, data);
ret = ipa_mem_config(ipa);
@@ -575,6 +593,9 @@ static int ipa_config(struct ipa *ipa, const struct ipa_data *data)
*/
static void ipa_deconfig(struct ipa *ipa)
{
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
ipa_modem_deconfig(ipa);
ipa_endpoint_deconfig(ipa);
ipa_uc_deconfig(ipa);
@@ -637,6 +658,14 @@ static int ipa_firmware_load(struct device *dev)
}
static const struct of_device_id ipa_match[] = {
@@ -702,7 +795,7 @@ index 788dd99..f17e613 100644
{
.compatible = "qcom,msm8998-ipa",
.data = &ipa_data_v3_1,
@@ -811,7 +831,10 @@ static int ipa_probe(struct platform_device *pdev)
@@ -811,7 +840,10 @@ static int ipa_probe(struct platform_device *pdev)
return -EINVAL;
}
@@ -714,7 +807,7 @@ index 788dd99..f17e613 100644
if (loader == IPA_LOADER_INVALID)
return -EINVAL;
if (loader == IPA_LOADER_DEFER)
@@ -860,10 +883,12 @@ static int ipa_probe(struct platform_device *pdev)
@@ -860,10 +892,12 @@ static int ipa_probe(struct platform_device *pdev)
if (ret)
goto err_mem_exit;
@@ -731,7 +824,7 @@ index 788dd99..f17e613 100644
/* Result is a non-zero mask of endpoints that support filtering */
ret = ipa_endpoint_init(ipa, data->endpoint_count, data->endpoint_data);
@@ -875,8 +900,14 @@ static int ipa_probe(struct platform_device *pdev)
@@ -875,8 +909,14 @@ static int ipa_probe(struct platform_device *pdev)
goto err_endpoint_exit;
ret = ipa_smp2p_init(ipa, pdev, loader == IPA_LOADER_MODEM);
@@ -748,7 +841,17 @@ index 788dd99..f17e613 100644
/* Power needs to be active for config and setup */
ret = pm_runtime_get_sync(dev);
@@ -921,7 +952,8 @@ static int ipa_probe(struct platform_device *pdev)
@@ -907,7 +947,8 @@ static int ipa_probe(struct platform_device *pdev)
if (ret)
goto err_deconfig;
done:
- (void)pm_runtime_put_autosuspend(dev);
+ if (ipa->version >= IPA_VERSION_3_0)
+ (void)pm_runtime_put_autosuspend(dev);
return 0;
@@ -921,7 +962,8 @@ static int ipa_probe(struct platform_device *pdev)
err_endpoint_exit:
ipa_endpoint_exit(ipa);
err_gsi_exit:
@@ -758,7 +861,13 @@ index 788dd99..f17e613 100644
err_mem_exit:
ipa_mem_exit(ipa);
err_reg_exit:
@@ -987,7 +1019,8 @@ static void ipa_remove(struct platform_device *pdev)
@@ -983,11 +1025,14 @@ static void ipa_remove(struct platform_device *pdev)
ipa_deconfig(ipa);
out_power_put:
+ if (ipa->version < IPA_VERSION_3_0)
+ pm_runtime_put_noidle(dev);
pm_runtime_put_noidle(dev);
ipa_smp2p_exit(ipa);
ipa_table_exit(ipa);
ipa_endpoint_exit(ipa);
@@ -769,7 +878,7 @@ index 788dd99..f17e613 100644
ipa_reg_exit(ipa);
kfree(ipa);
diff --git a/drivers/net/ipa/ipa_mem.c b/drivers/net/ipa/ipa_mem.c
index 078d32a..a044c7a 100644
index 078d32a..17eb2ba 100644
--- a/drivers/net/ipa/ipa_mem.c
+++ b/drivers/net/ipa/ipa_mem.c
@@ -78,6 +78,9 @@ ipa_mem_zero_region_add(struct gsi_trans *trans, enum ipa_mem_id mem_id)
@@ -782,7 +891,27 @@ index 078d32a..a044c7a 100644
const struct ipa_mem *mem;
struct gsi_trans *trans;
const struct reg *reg;
@@ -418,6 +421,9 @@ int ipa_mem_zero_modem(struct ipa *ipa)
@@ -320,6 +323,9 @@ static bool ipa_mem_size_valid(struct ipa *ipa)
*/
int ipa_mem_config(struct ipa *ipa)
{
+ if (ipa->version < IPA_VERSION_3_0)
+ return 0;
+
struct device *dev = ipa->dev;
const struct ipa_mem *mem;
const struct reg *reg;
@@ -396,6 +402,9 @@ int ipa_mem_config(struct ipa *ipa)
/* Inverse of ipa_mem_config() */
void ipa_mem_deconfig(struct ipa *ipa)
{
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
struct device *dev = ipa->dev;
dma_free_coherent(dev, ipa->zero_size, ipa->zero_virt, ipa->zero_addr);
@@ -418,6 +427,9 @@ int ipa_mem_zero_modem(struct ipa *ipa)
{
struct gsi_trans *trans;
@@ -792,11 +921,167 @@ index 078d32a..a044c7a 100644
/* Get a transaction to zero the modem memory, modem header,
* and modem processing context regions.
*/
@@ -618,6 +630,12 @@ static void ipa_smem_exit(struct ipa *ipa)
int ipa_mem_init(struct ipa *ipa, struct platform_device *pdev,
const struct ipa_mem_data *mem_data)
{
+ if (ipa->version < IPA_VERSION_3_0) {
+ ipa->mem_virt = NULL;
+ ipa->mem_addr = 0;
+ ipa->mem_size = 0;
+ return 0;
+ }
struct device_node *ipa_slice_np;
struct device *dev = &pdev->dev;
u32 imem_base, imem_size;
@@ -699,6 +717,9 @@ int ipa_mem_init(struct ipa *ipa, struct platform_device *pdev,
/* Inverse of ipa_mem_init() */
void ipa_mem_exit(struct ipa *ipa)
{
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
ipa_smem_exit(ipa);
ipa_imem_exit(ipa);
memunmap(ipa->mem_virt);
diff --git a/drivers/net/ipa/ipa_modem.c b/drivers/net/ipa/ipa_modem.c
index 9b136f6..209ad40 100644
--- a/drivers/net/ipa/ipa_modem.c
+++ b/drivers/net/ipa/ipa_modem.c
@@ -61,13 +61,17 @@ static int ipa_open(struct net_device *netdev)
if (ret < 0)
goto err_power_put;
- ret = ipa_endpoint_enable_one(priv->tx);
- if (ret)
+ if (priv->tx) {
+ ret = ipa_endpoint_enable_one(priv->tx);
+ if (ret)
goto err_power_put;
+ }
- ret = ipa_endpoint_enable_one(priv->rx);
- if (ret)
- goto err_disable_tx;
+ if (priv->rx) {
+ ret = ipa_endpoint_enable_one(priv->rx);
+ if (ret)
+ goto err_disable_tx;
+ }
netif_start_queue(netdev);
@@ -76,7 +80,8 @@ static int ipa_open(struct net_device *netdev)
return 0;
err_disable_tx:
- ipa_endpoint_disable_one(priv->tx);
+ if (priv->tx)
+ ipa_endpoint_disable_one(priv->tx);
err_power_put:
pm_runtime_put_noidle(dev);
@@ -98,8 +103,10 @@ static int ipa_stop(struct net_device *netdev)
netif_stop_queue(netdev);
- ipa_endpoint_disable_one(priv->rx);
- ipa_endpoint_disable_one(priv->tx);
+ if (priv->rx)
+ ipa_endpoint_disable_one(priv->rx);
+ if (priv->tx)
+ ipa_endpoint_disable_one(priv->tx);
out_power_put:
(void)pm_runtime_put_autosuspend(dev);
@@ -132,6 +139,12 @@ ipa_start_xmit(struct sk_buff *skb, struct net_device *netdev)
goto err_drop_skb;
endpoint = ipa->name_map[IPA_ENDPOINT_AP_MODEM_TX];
+ if (!endpoint) {
+ dev_kfree_skb_any(skb);
+ stats->tx_packets++;
+ stats->tx_bytes += skb_len;
+ return NETDEV_TX_OK;
+ }
if (endpoint->config.qmap && skb->protocol != htons(ETH_P_MAP))
goto err_drop_skb;
@@ -253,8 +266,10 @@ void ipa_modem_suspend(struct net_device *netdev)
return;
priv = netdev_priv(netdev);
- ipa_endpoint_suspend_one(priv->rx);
- ipa_endpoint_suspend_one(priv->tx);
+ if (priv->rx)
+ ipa_endpoint_suspend_one(priv->rx);
+ if (priv->tx)
+ ipa_endpoint_suspend_one(priv->tx);
}
/**
@@ -288,8 +303,10 @@ void ipa_modem_resume(struct net_device *netdev)
return;
priv = netdev_priv(netdev);
- ipa_endpoint_resume_one(priv->tx);
- ipa_endpoint_resume_one(priv->rx);
+ if (priv->tx)
+ ipa_endpoint_resume_one(priv->tx);
+ if (priv->rx)
+ ipa_endpoint_resume_one(priv->rx);
/* Arrange for the TX queue to be restarted */
(void)queue_pm_work(&priv->work);
@@ -324,16 +341,20 @@ int ipa_modem_start(struct ipa *ipa)
priv->rx = ipa->name_map[IPA_ENDPOINT_AP_MODEM_RX];
INIT_WORK(&priv->work, ipa_modem_wake_queue_work);
- priv->tx->netdev = netdev;
- priv->rx->netdev = netdev;
+ if (priv->tx)
+ priv->tx->netdev = netdev;
+ if (priv->rx)
+ priv->rx->netdev = netdev;
ipa->modem_netdev = netdev;
ret = register_netdev(netdev);
if (ret) {
ipa->modem_netdev = NULL;
- priv->rx->netdev = NULL;
- priv->tx->netdev = NULL;
+ if (priv->rx)
+ priv->rx->netdev = NULL;
+ if (priv->tx)
+ priv->tx->netdev = NULL;
free_netdev(netdev);
}
@@ -376,8 +397,10 @@ int ipa_modem_stop(struct ipa *ipa)
unregister_netdev(netdev);
ipa->modem_netdev = NULL;
- priv->rx->netdev = NULL;
- priv->tx->netdev = NULL;
+ if (priv->rx)
+ priv->rx->netdev = NULL;
+ if (priv->tx)
+ priv->tx->netdev = NULL;
free_netdev(netdev);
}
diff --git a/drivers/net/ipa/ipa_power.c b/drivers/net/ipa/ipa_power.c
index c572da9..b2c75b0 100644
index c572da9..65c8900 100644
--- a/drivers/net/ipa/ipa_power.c
+++ b/drivers/net/ipa/ipa_power.c
@@ -128,7 +128,8 @@ static int ipa_runtime_suspend(struct device *dev)
@@ -125,10 +125,14 @@ static int ipa_runtime_suspend(struct device *dev)
{
struct ipa *ipa = dev_get_drvdata(dev);
+ if (ipa->version < IPA_VERSION_3_0)
+ return -EBUSY;
+
/* Endpoints aren't usable until setup is complete */
if (ipa->setup_complete) {
ipa_endpoint_suspend(ipa);
@@ -806,7 +1091,16 @@ index c572da9..b2c75b0 100644
}
ipa_power_disable(ipa);
@@ -147,7 +148,8 @@ static int ipa_runtime_resume(struct device *dev)
@@ -141,13 +145,17 @@ static int ipa_runtime_resume(struct device *dev)
struct ipa *ipa = dev_get_drvdata(dev);
int ret;
+ if (ipa->version < IPA_VERSION_3_0)
+ return 0;
+
ret = ipa_power_enable(ipa);
if (WARN_ON(ret < 0))
return ret;
/* Endpoints aren't usable until setup is complete */
if (ipa->setup_complete) {
@@ -870,7 +1164,7 @@ index 331c00a..9131f88 100644
ipa_smp2p_power_release(ipa);
diff --git a/drivers/net/ipa/ipa_sysfs.c b/drivers/net/ipa/ipa_sysfs.c
index 8b805a9..317bbc5 100644
index 8b805a9..a5d820d 100644
--- a/drivers/net/ipa/ipa_sysfs.c
+++ b/drivers/net/ipa/ipa_sysfs.c
@@ -13,6 +13,8 @@
@@ -882,8 +1176,60 @@ index 8b805a9..317bbc5 100644
case IPA_VERSION_3_0:
return "3.0";
case IPA_VERSION_3_1:
@@ -111,6 +113,12 @@ static umode_t ipa_endpoint_id_is_visible(struct kobject *kobj,
struct dev_ext_attribute *ea;
bool visible;
+ if (ipa->version < IPA_VERSION_3_0)
+ return attr->mode;
+
+ if (!ipa->name_map)
+ return 0;
+
/* An endpoint id attribute is only visible if it's defined */
dev_attr = container_of(attr, struct device_attribute, attr);
ea = container_of(dev_attr, struct dev_ext_attribute, attr);
@@ -124,13 +132,28 @@ static ssize_t endpoint_id_attr_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct ipa *ipa = dev_get_drvdata(dev);
- struct ipa_endpoint *endpoint;
+ struct ipa_endpoint *endpoint = NULL;
struct dev_ext_attribute *ea;
+ u32 endpoint_id;
ea = container_of(attr, struct dev_ext_attribute, attr);
- endpoint = ipa->name_map[(enum ipa_endpoint_name)(uintptr_t)ea->var];
+ if (ipa->name_map)
+ endpoint = ipa->name_map[(enum ipa_endpoint_name)(uintptr_t)ea->var];
+
+ if (endpoint) {
+ endpoint_id = endpoint->endpoint_id;
+ } else if (ipa->version < IPA_VERSION_3_0) {
+ enum ipa_endpoint_name name = (enum ipa_endpoint_name)(uintptr_t)ea->var;
+
+ if (name == IPA_ENDPOINT_AP_MODEM_RX)
+ endpoint_id = 16;
+ else
+ endpoint_id = 3;
+ } else {
+ return -ENODEV;
+ }
- return sysfs_emit(buf, "%u\n", endpoint->endpoint_id);
+ return sysfs_emit(buf, "%u\n", endpoint_id);
}
#define ENDPOINT_ID_ATTR(_n, _endpoint_name) \
@@ -172,5 +195,6 @@ static struct attribute *ipa_modem_attrs[] = {
const struct attribute_group ipa_modem_attribute_group = {
.name = "modem",
+ .is_visible = ipa_endpoint_id_is_visible,
.attrs = ipa_modem_attrs,
};
diff --git a/drivers/net/ipa/ipa_table.c b/drivers/net/ipa/ipa_table.c
index 4e4a3f8..d664feb 100644
index 4e4a3f8..ab50f49 100644
--- a/drivers/net/ipa/ipa_table.c
+++ b/drivers/net/ipa/ipa_table.c
@@ -332,6 +332,9 @@ void ipa_table_reset(struct ipa *ipa, bool modem)
@@ -916,6 +1262,26 @@ index 4e4a3f8..d664feb 100644
/* We will need at most 8 TREs:
* - IPv4:
* - One for route table initialization (non-hashed and hashed)
@@ -715,6 +724,9 @@ bool ipa_table_mem_valid(struct ipa *ipa, bool filter)
int ipa_table_init(struct ipa *ipa)
{
struct device *dev = ipa->dev;
+
+ if (ipa->version < IPA_VERSION_3_0)
+ return 0;
dma_addr_t addr;
__le64 le_addr;
__le64 *virt;
@@ -763,6 +775,9 @@ int ipa_table_init(struct ipa *ipa)
void ipa_table_exit(struct ipa *ipa)
{
+ if (ipa->version < IPA_VERSION_3_0)
+ return;
+
u32 count = max_t(u32, 1 + ipa->filter_count, ipa->route_count);
struct device *dev = ipa->dev;
size_t size;
diff --git a/drivers/net/ipa/ipa_version.h b/drivers/net/ipa/ipa_version.h
index c157c72..e683643 100644
--- a/drivers/net/ipa/ipa_version.h
@@ -3,7 +3,7 @@ maintainer="Alexey Minnekhanov <alexeymin@minlexx.ru>"
_flavor="postmarketos-qcom-sdm660"
pkgname=linux-$_flavor
pkgver=7.2.12
pkgrel=15
pkgrel=21
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC"
arch="aarch64"
url="https://kernel.org/"
@@ -177,6 +177,6 @@ e34cc3b376501b8db887eeb79950adb84906641062ef0e60a9bdbedb3b43e956dd5c56f1967df8ad
be7770c858be5b7b559b959fc6f50ca6d94a7f518ee67c8e675e01ab583fc043c10cbeb6971079a13394a981f8153906839cdf409fef6f4279709ecc93495eff stable-7.2.9-10.patch
d2449e4c02bf11835d20bd9c841a3b0db78ba14ebe2effaec04d98db63ea4dc41a552d23db8ae72e10d2675d1b20570f06a250c790dc773f95f0be4a14c706e9 stable-7.2.10-11.patch
eb3b89ac99648776f193ee3c9d96d257f7d2e6ba5200a526e63c97e7dc4982e4b2985f15481aa4314dc54ca5f0bafb395b4f4fc375ed4fba2b8d9ca23124cd31 stable-7.2.11-12.patch
54b1ebb7ea3cbb4b4d18eb54da10a324214a973ecee756627012995a1441f70059b383f0c11f56fd5dcab031676a4727ea38aec9d9d4fd7a6ee07f29c17c1cb4 0042-arm64-dts-sdm660-add-ipa-v2-node.patch
d5ed533b606138d9f5dff5c04054c01e6d8aee0fee96c54509ade2f593ee6ea806ce57a6fb8ac3783d75407b7bf2ac8830a294c65b070d46190f246e97af1be5 0043-net-ipa-add-support-for-ipa-v2.6-and-sdm660.patch
d1e47d1003ec8e46febd4e980a527f48a5865f07d8e7abe27fedfbee145890b6d49ad6849950c7c611ccd75cd60722c532973cab4b650edb7602541d1df98e73 0042-arm64-dts-sdm660-add-ipa-v2-node.patch
e2980a3b86521f452d042399812b8b5dd03af1193143313833e3608a8079763d4cc5c8d6c8530203db062c3df5ce40800e63567026239e6b19cdf6be07e3b199 0043-net-ipa-add-support-for-ipa-v2.6-and-sdm660.patch
"