fsl/fman: MEMAC may use QSGMII PHY interface mode
authorMadalin Bucur <madalin.bucur@nxp.com>
Fri, 24 Jun 2016 09:25:05 +0000 (12:25 +0300)
committerMadalin Bucur <madalin.bucur@nxp.com>
Tue, 4 Oct 2016 06:26:08 +0000 (09:26 +0300)
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
drivers/net/ethernet/freescale/fman/fman_memac.c

index 45e98fd8b79ef1430826d4a356d5e65f81b073aa..96dfe7eb4e5fe8cdb614afcd38f53bdaa82a5ade 100644 (file)
@@ -1151,7 +1151,8 @@ struct fman_mac *memac_config(struct fman_mac_params *params)
        /* Save FMan revision */
        fman_get_revision(memac->fm, &memac->fm_rev_info);
 
-       if (memac->phy_if == PHY_INTERFACE_MODE_SGMII) {
+       if (memac->phy_if == PHY_INTERFACE_MODE_SGMII ||
+           memac->phy_if == PHY_INTERFACE_MODE_QSGMII) {
                if (!params->internal_phy_node) {
                        pr_err("PCS PHY node is not available\n");
                        memac_free(memac);