From: "Marcin Wojtas" <mw@semihalf.com>
To: Patryk Duda <pdk@semihalf.com>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>,
Leif Lindholm <leif.lindholm@linaro.org>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
"jsd@semihalf.com" <jsd@semihalf.com>
Subject: Re: [edk2-platforms: PATCH] Marvell/Drivers: MvPhyDxe: Fill MdioIndex field in PhyDev
Date: Tue, 10 Sep 2019 08:23:52 +0200 [thread overview]
Message-ID: <CAPv3WKfmJJxPQEn5RG2Pjk549JaPKuuyE049daNjutLPiy41yw@mail.gmail.com> (raw)
In-Reply-To: <20190909155310.30427-1-pdk@semihalf.com>
pon., 9 wrz 2019 o 17:53 Patryk Duda <pdk@semihalf.com> napisał(a):
>
> 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 <pdk@semihalf.com>
> ---
> 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);
> --
Tested-by: Marcin Wojtas <mw@semihalf.com>
next prev parent reply other threads:[~2019-09-10 6:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-09 15:53 [edk2-platforms: PATCH] Marvell/Drivers: MvPhyDxe: Fill MdioIndex field in PhyDev Patryk Duda
2019-09-10 6:23 ` Marcin Wojtas [this message]
2019-09-27 15:11 ` Patryk Duda
2019-09-28 22:51 ` Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPv3WKfmJJxPQEn5RG2Pjk549JaPKuuyE049daNjutLPiy41yw@mail.gmail.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox