fix: mvebu_ comphy: Update COMPHY sequence number
authorKonstantin Porotchkin <kostap@marvell.com>
Wed, 19 Apr 2017 10:37:59 +0000 (13:37 +0300)
committerStefan Roese <sr@denx.de>
Tue, 9 May 2017 11:38:18 +0000 (13:38 +0200)
commit18797ad6c377b3a253a4c6ddb457aa8239dfe591
tree858f6bd684d0e6e9c520e3b9b150e2270b4783bc
parentd374e90b2777fe54036149100af4b413eae79a77
fix: mvebu_ comphy: Update COMPHY sequence number

Use local static counter for maintaining the COMPHY chip-ID
upon its initialization.
The dev->seq originally used as the COMPHY chip-ID depends
on the device tree scan order and produces wrong results
that breaks the deficated PHYs init flow, which in turn
breaks the USB support.

Change-Id: I4e3f7ec36590a7f95dc94d9269a3c47fb708c4a9
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Igal Liberman <igall@marvell.com>
Cc: Stefan Chulski <stefanc@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_core.c