From 99a1a189f4fa6ac0658d56bd803580e6a2be9cfe Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 10 Jan 2020 12:08:28 +0100 Subject: net: fsl-fman: Do not put hardware in reset before Linux start Linux depends on the icid values configured in the DPAA. Do not put the hardware into reset in order to preserve the register values. Without this, the IOMMU doesn't work properly. Signed-off-by: Sascha Hauer --- drivers/net/fsl-fman.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'drivers/net') diff --git a/drivers/net/fsl-fman.c b/drivers/net/fsl-fman.c index 1aae58e494..6d54fcc7c9 100644 --- a/drivers/net/fsl-fman.c +++ b/drivers/net/fsl-fman.c @@ -1322,13 +1322,6 @@ static int fsl_fman_probe(struct device_d *dev) return 0; } -static void fsl_fman_remove(struct device_d *dev) -{ - struct ccsr_fman *reg = dev->priv; - - setbits_be32(®->fm_fpm.fmrstc, FMFP_RSTC_RFM); -} - static struct of_device_id fsl_fman_dt_ids[] = { { .compatible = "fsl,fman", @@ -1339,7 +1332,6 @@ static struct of_device_id fsl_fman_dt_ids[] = { static struct driver_d fman_driver = { .name = "fsl-fman", .probe = fsl_fman_probe, - .remove = fsl_fman_remove, .of_compatible = DRV_OF_COMPAT(fsl_fman_dt_ids), }; device_platform_driver(fman_driver); -- cgit v1.2.3