From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXvHt-0001Zf-O4 for qemu-devel@nongnu.org; Fri, 04 Sep 2015 14:00:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXvHs-0006Nt-Ps for qemu-devel@nongnu.org; Fri, 04 Sep 2015 14:00:33 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:32870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXvHs-0006NZ-LW for qemu-devel@nongnu.org; Fri, 04 Sep 2015 14:00:32 -0400 Received: by obbbh8 with SMTP id bh8so23042116obb.0 for ; Fri, 04 Sep 2015 11:00:32 -0700 (PDT) MIME-Version: 1.0 Sender: alistair23@gmail.com In-Reply-To: <20150903225627.GB11697@toto> References: <20150903225627.GB11697@toto> From: Alistair Francis Date: Fri, 4 Sep 2015 11:00:02 -0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v1 1/1] cadence_gem: Correct Marvell PHY SPCFC reset value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Peter Maydell , Peter Crosthwaite , Edgar Iglesias , "qemu-devel@nongnu.org Developers" , Alistair Francis On Thu, Sep 3, 2015 at 3:56 PM, Edgar E. Iglesias wrote: > On Thu, Sep 03, 2015 at 03:10:52PM -0700, Alistair Francis wrote: >> Bit 15 of the PHY Specific Status Register is reserved and >> should remain 0. Fix the reset value to ensure that the 15th >> bit is not set. >> >> Signed-off-by: Alistair Francis > > Reviewed-by: Edgar E. Iglesias Thanks Edgar. Should this go via the ARM queue? Thanks, Alistair > > >> --- >> http://www.marvell.com/transceivers/assets/Marvell-88E3016-Fast-Ethernet.pdf >> >> hw/net/cadence_gem.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c >> index 494a346..1127223 100644 >> --- a/hw/net/cadence_gem.c >> +++ b/hw/net/cadence_gem.c >> @@ -951,7 +951,7 @@ static void gem_phy_reset(CadenceGEMState *s) >> s->phy_regs[PHY_REG_1000BTSTAT] = 0x7C00; >> s->phy_regs[PHY_REG_EXTSTAT] = 0x3000; >> s->phy_regs[PHY_REG_PHYSPCFC_CTL] = 0x0078; >> - s->phy_regs[PHY_REG_PHYSPCFC_ST] = 0xBC00; >> + s->phy_regs[PHY_REG_PHYSPCFC_ST] = 0x7C00; >> s->phy_regs[PHY_REG_EXT_PHYSPCFC_CTL] = 0x0C60; >> s->phy_regs[PHY_REG_LED] = 0x4100; >> s->phy_regs[PHY_REG_EXT_PHYSPCFC_CTL2] = 0x000A; >> -- >> 1.7.1 >> >