Patch "net: bcmgenet: reserved phy revisions must be checked first" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net: bcmgenet: reserved phy revisions must be checked first
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-bcmgenet-reserved-phy-revisions-must-be-checked-first.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Dec 18 14:12:34 CET 2017
From: Doug Berger <[email protected]>
Date: Thu, 9 Mar 2017 16:58:45 -0800
Subject: net: bcmgenet: reserved phy revisions must be checked first
From: Doug Berger <[email protected]>
[ Upstream commit eca4bad73409aedc6ff22f823c18b67a4f08c851 ]
The reserved gphy_rev value of 0x01ff must be tested before the old or new scheme for GPHY major versioning are tested, otherwise it will be treated as 0xff00 according to the old scheme.
--- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/net/ethernet/broadcom/genet/bcmgenet.c +6 -6
@@ -3233,6 +3233,12 @@ static void bcmgenet_set_hw_params(struc*/ gphy_rev = reg &0xffff ; +/* This is reserved so should require special treatment */ +if (gphy_rev ==0 || gphy_rev ==0x01ff ) { +pr_warn ("Invalid GPHY revision detected: 0x%04x\n" , gphy_rev); +return ; + } +/* This is the good old scheme, just GPHY major, no minor nor patch */ if ((gphy_rev &0xf0 ) !=0 ) priv->gphy_rev = gphy_rev <<8 ;
@@ -3241,12 +3247,6 @@ static void bcmgenet_set_hw_params(strucelse if ((gphy_rev &0xff00 ) !=0 ) priv->gphy_rev = gphy_rev; -/* This is reserved so should require special treatment */ -else if (gphy_rev ==0 || gphy_rev ==0x01ff ) { -pr_warn ("Invalid GPHY revision detected: 0x%04x\n" , gphy_rev); -return ; - } -#ifdef CONFIG_PHYS_ADDR_T_64BIT if (!(params->flags &GENET_HAS_40BITS ))pr_warn ("GENET does not support 40-bits PA\n" );
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-bcmgenet-synchronize-irq0-status-between-the-isr-and-task.patch queue-4.9/net-bcmgenet-correct-the-rbuf_ovfl_cnt-and-rbuf_err_cnt-mib-values.patch queue-4.9/net-bcmgenet-correct-mib-access-of-unimac-runt-counters.patch queue-4.9/net-bcmgenet-power-down-internal-phy-if-open-or-resume-fails.patch queue-4.9/net-bcmgenet-reserved-phy-revisions-must-be-checked-first.patch queue-4.9/net-bcmgenet-power-up-the-internal-phy-before-probing-the-mii.patch