From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=AXQ3ZdwC; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.193, mailfrom: pdk@semihalf.com) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by groups.io with SMTP; Mon, 09 Sep 2019 08:53:54 -0700 Received: by mail-lj1-f193.google.com with SMTP id d5so13279218lja.10 for ; Mon, 09 Sep 2019 08:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8TSHVwlkiRY88alr4BtNzYPDjZD+pIbKwWjaJYpDB0A=; b=AXQ3ZdwCnHz7sZw1k0ZO8zputod3YfZZX3+4w/wISsz2jhnQUIcoIpSMdZdO9ejZmZ MyTT1AhxLypRgNgDCWwy5+SSi7nAtJ/5I/bwHvksqAGR/DWXbNzzPABH7+sZTU8oBudp MEz1K8Sg2agtmw9dJTuo0lrAO6/c8rkYKT8S9RFBHCnUIRNSV9QKmB5IRms1/qTzoj/w ZCxV5Vk1uAFA9I0QzzDQ2FIkiyvmNLplkbgp2uaf6bhr8WznzzCgg5nBqf7RJMj42Pxu 6SprUQW/dy8N4rfbRHZHcebrJ2xggNXljzuZsmmJ1+WJYxIpEPPvETJL3Rjss0ICUhDH YuDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8TSHVwlkiRY88alr4BtNzYPDjZD+pIbKwWjaJYpDB0A=; b=X4YyQ0Ts0QzQZbXnpf0lWbDLiPGD6CMAQU+Y7wlX2mWkqDp4veSrBZuCmKuyjEeLx5 oablGhC1i1hDUTSBsxCgfNl+gBYoRtxZyOQDFkp9O5upI3o6GiTe7JAqSFtPwJi6ROEI c4LcLddaRX7ZGLEfeIGAuG9vGWGOkMdMCFCzuBw+E8bwPTkt206qxN9y313HVDGUlMDE CMgMuF+kqbLkVH2XfNcnZZ1mtR2tLU6A8DKBRadq7kJSe1fgvi8ByJ7Y0oDJGz7Rdctn OQ6uqD31gtUoniCpA0mCKRdE7d/gAJfrZkqXrq1LqdEs+tL6iqXE1UGLLkg1rX7UegFP Yz5Q== X-Gm-Message-State: APjAAAXtQrptsCaesraUlfK01fkKN80yC2rpTyMx9rZAbiu51q6+IJD3 t6rz4xqG1wvqcd3sEKRrfFWyyd6nWhB47g== X-Google-Smtp-Source: APXvYqzHMqHbP1y0+TvxCv8KzIRhjAVVRr+yFJGE+URV+/17WEN3ytPXAjxKqZxQSW9pZjGLmKbrNw== X-Received: by 2002:a2e:1415:: with SMTP id u21mr16992330ljd.22.1568044432388; Mon, 09 Sep 2019 08:53:52 -0700 (PDT) Return-Path: Received: from pdkmachine.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id p22sm3190410ljp.69.2019.09.09.08.53.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Sep 2019 08:53:51 -0700 (PDT) From: Patryk Duda To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, Patryk Duda Subject: [edk2-platforms: PATCH] Marvell/Drivers: MvPhyDxe: Fill MdioIndex field in PhyDev Date: Mon, 9 Sep 2019 17:53:10 +0200 Message-Id: <20190909155310.30427-1-pdk@semihalf.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch fixes missing MdioIndex copying during initialization. This bug appeared as inability to communicate with PHY connected to MDIO other than first. Signed-off-by: Patryk Duda --- Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c b/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c index 6cdef42391..2d2aad7e38 100644 --- a/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c +++ b/Silicon/Marvell/Drivers/Net/MvPhyDxe/MvPhyDxe.c @@ -419,8 +419,12 @@ MvPhyInit ( PhyDev = AllocateZeroPool (sizeof (PHY_DEVICE)); PhyDev->Addr = PhySmiAddresses[PhyIndex]; PhyDev->Connection = PhyConnection; - DEBUG((DEBUG_INFO, "MvPhyDxe: PhyAddr is %d, connection %d\n", - PhyDev->Addr, PhyConnection)); + PhyDev->MdioIndex = MdioIndex; + DEBUG ((DEBUG_INFO, + "MvPhyDxe: MdioIndex is %d, PhyAddr is %d, connection %d\n", + PhyDev->MdioIndex, + PhyDev->Addr, + PhyConnection)); *OutPhyDev = PhyDev; DeviceIds = PcdGetPtr (PcdPhyDeviceIds); -- 2.16.4