mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
cddd459140
Add patches for linux-5.4. The patches are from NXP LSDK-20.04 release which was tagged LSDK-20.04-V5.4. https://source.codeaurora.org/external/qoriq/qoriq-components/linux/ For boards LS1021A-IOT, and Traverse-LS1043 which are not involved in LSDK, port the dts patches from 4.14. The patches are sorted into the following categories: 301-arch-xxxx 302-dts-xxxx 303-core-xxxx 701-net-xxxx 801-audio-xxxx 802-can-xxxx 803-clock-xxxx 804-crypto-xxxx 805-display-xxxx 806-dma-xxxx 807-gpio-xxxx 808-i2c-xxxx 809-jailhouse-xxxx 810-keys-xxxx 811-kvm-xxxx 812-pcie-xxxx 813-pm-xxxx 814-qe-xxxx 815-sata-xxxx 816-sdhc-xxxx 817-spi-xxxx 818-thermal-xxxx 819-uart-xxxx 820-usb-xxxx 821-vfio-xxxx Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
58 lines
1.7 KiB
Diff
58 lines
1.7 KiB
Diff
From 9e1f89c4c637087dc8dc1a3f9f6bda5bff66e4ac Mon Sep 17 00:00:00 2001
|
|
From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
|
|
Date: Tue, 6 Feb 2018 14:40:32 +0200
|
|
Subject: [PATCH] dpaa_eth: defer probing after qbman
|
|
|
|
Enabling SMMU altered the order of device probing causing the dpaa1
|
|
ethernet driver to get probed before qbman and causing a boot crash.
|
|
Add predictability in the probing order by deferring the ethernet
|
|
driver probe after qbman and portals by using the recently introduced
|
|
qbman APIs.
|
|
|
|
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
|
|
Acked-by: Madalin Bucur <madalin.bucur@nxp.com>
|
|
---
|
|
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 31 ++++++++++++++++++++++++++
|
|
1 file changed, 31 insertions(+)
|
|
|
|
--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
|
|
+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
|
|
@@ -2947,6 +2947,37 @@ static int dpaa_eth_probe(struct platfor
|
|
int err = 0, i, channel;
|
|
struct device *dev;
|
|
|
|
+ err = bman_is_probed();
|
|
+ if (!err)
|
|
+ return -EPROBE_DEFER;
|
|
+ if (err < 0) {
|
|
+ dev_err(&pdev->dev, "failing probe due to bman probe error\n");
|
|
+ return -ENODEV;
|
|
+ }
|
|
+ err = qman_is_probed();
|
|
+ if (!err)
|
|
+ return -EPROBE_DEFER;
|
|
+ if (err < 0) {
|
|
+ dev_err(&pdev->dev, "failing probe due to qman probe error\n");
|
|
+ return -ENODEV;
|
|
+ }
|
|
+ err = bman_portals_probed();
|
|
+ if (!err)
|
|
+ return -EPROBE_DEFER;
|
|
+ if (err < 0) {
|
|
+ dev_err(&pdev->dev,
|
|
+ "failing probe due to bman portals probe error\n");
|
|
+ return -ENODEV;
|
|
+ }
|
|
+ err = qman_portals_probed();
|
|
+ if (!err)
|
|
+ return -EPROBE_DEFER;
|
|
+ if (err < 0) {
|
|
+ dev_err(&pdev->dev,
|
|
+ "failing probe due to qman portals probe error\n");
|
|
+ return -ENODEV;
|
|
+ }
|
|
+
|
|
/* device used for DMA mapping */
|
|
dev = pdev->dev.parent;
|
|
err = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(40));
|