Browse Source

fsl/fman: MEMAC may use QSGMII PHY interface mode

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Madalin Bucur 9 years ago
parent
commit
44045e45ab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/net/ethernet/freescale/fman/fman_memac.c

+ 2 - 1
drivers/net/ethernet/freescale/fman/fman_memac.c

@@ -1151,7 +1151,8 @@ struct fman_mac *memac_config(struct fman_mac_params *params)
 	/* Save FMan revision */
 	/* Save FMan revision */
 	fman_get_revision(memac->fm, &memac->fm_rev_info);
 	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) {
 		if (!params->internal_phy_node) {
 			pr_err("PCS PHY node is not available\n");
 			pr_err("PCS PHY node is not available\n");
 			memac_free(memac);
 			memac_free(memac);