diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-07-02 07:25:58 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-07-04 08:29:13 +0200 |
commit | 7305e2057a5db05ccca740a0f17caadc89dfb66c (patch) | |
tree | bc898de794071cb6a81d362cde04faecc3ba0a3e /target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch | |
parent | 961b8efb5b12fee42bec5b93ec31912af5eee995 (diff) | |
download | upstream-7305e2057a5db05ccca740a0f17caadc89dfb66c.tar.gz upstream-7305e2057a5db05ccca740a0f17caadc89dfb66c.tar.bz2 upstream-7305e2057a5db05ccca740a0f17caadc89dfb66c.zip |
lantiq: 4.19: fix panic when using the DMA API
With kernel 4.19 the DMA API relies on a struct device to work properly.
Backport upstream patches which passed a struct device instead of NULL
to the DMA API.
Fixes kernel panics during boot.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch')
-rw-r--r-- | target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch b/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch index d53d09c162..05e4ec8328 100644 --- a/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch +++ b/target/linux/lantiq/patches-4.19/0701-NET-lantiq-etop-of-mido.patch @@ -8,7 +8,7 @@ #include <asm/checksum.h> -@@ -569,7 +570,8 @@ static int +@@ -571,7 +572,8 @@ static int ltq_etop_mdio_init(struct net_device *dev) { struct ltq_etop_priv *priv = netdev_priv(dev); @@ -18,7 +18,7 @@ priv->mii_bus = mdiobus_alloc(); if (!priv->mii_bus) { -@@ -589,7 +591,15 @@ ltq_etop_mdio_init(struct net_device *de +@@ -591,7 +593,15 @@ ltq_etop_mdio_init(struct net_device *de priv->mii_bus->name = "ltq_mii"; snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x", priv->pdev->name, priv->pdev->id); |