summaryrefslogtreecommitdiff
path: root/drivers/net/fm/p1023.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/fm/p1023.c')
-rw-r--r--drivers/net/fm/p1023.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/fm/p1023.c b/drivers/net/fm/p1023.c
index b17dc40..9765da5 100644
--- a/drivers/net/fm/p1023.c
+++ b/drivers/net/fm/p1023.c
@@ -39,6 +39,11 @@ static int is_device_disabled(enum fm_port port)
void fman_disable_port(enum fm_port port)
{
ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+
+ /* don't allow disabling of DTSEC1 as its needed for MDIO */
+ if (port == FM1_DTSEC1)
+ return;
+
setbits_be32(&gur->devdisr, port_to_devdisr[port]);
}