Skip to content

Commit 7dc6183

Browse files
Forty-Botdavem330
authored andcommitted
net: dpaa: Fix dtsec check for PCS availability
We want to fail if the PCS is not available, not if it is available. Fix this condition. Fixes: 5d93cfc ("net: dpaa: Convert to phylink") Reported-by: Christian Zigotzky <[email protected]> Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4af1b64 commit 7dc6183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/fman/fman_dtsec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ int dtsec_initialization(struct mac_device *mac_dev,
14301430
dtsec->dtsec_drv_param->tx_pad_crc = true;
14311431

14321432
phy_node = of_parse_phandle(mac_node, "tbi-handle", 0);
1433-
if (!phy_node || of_device_is_available(phy_node)) {
1433+
if (!phy_node || !of_device_is_available(phy_node)) {
14341434
of_node_put(phy_node);
14351435
err = -EINVAL;
14361436
dev_err_probe(mac_dev->dev, err,

0 commit comments

Comments
 (0)