public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Josua Mayer <josua@solid-run.com>
To: Christian Gmeiner <cgmeiner@igalia.com>,
	Fabio Estevam <festevam@gmail.com>
Cc: "baruch@tkos.co.il" <baruch@tkos.co.il>,
	"trini@konsulko.com" <trini@konsulko.com>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>
Subject: Re: [PATCH v2] mx6cuboxi: Fix Ethernet after DT sync with Linux
Date: Tue, 2 Apr 2024 17:25:37 +0000	[thread overview]
Message-ID: <bd075a6b-6af6-4bad-92c3-2bb6ea28c4ba@solid-run.com> (raw)
In-Reply-To: <e2a4c7068920316b3d631f2db0880235@igalia.com>

Hi Fabio,

Am 01.04.24 um 12:13 schrieb Christian Gmeiner:
> Hi Fabio
>
>> From: Josua Mayer <josua@solid-run.com>
>>
>> The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying
>> addresses. U-Boot needs to auto-detect which phy is actually present,
>> and at which address it is responding.
>>
>> Auto-detection from multiple phy nodes specified in device-tree does not
>> currently work correct. As a work-around merge all three possible phys
>> into one node with the special address 0xffffffff which indicates to the
>> generic phy driver to probe all addresses.
>>
>> Signed-off-by: Josua Mayer <josua@solid-run.com>
>> [fabio: Added the changes to imx6qdl-sr-som-u-boot.dtsi.]
>> Signed-off-by: Fabio Estevam <festevam@gmail.com>
>> Tested-by: Christian Gmeiner <cgmeiner@igalia.com>
>> ---
>> Changes since v1:
>> - Disable ethernet-phy at addresses 0, 1 and 4.
>> - Remove the fixup of the fake 0xffffff address before booting Linux.
>>
>> Josua and Christian,
>>
>> I got access to a imx6 humming board and I was able to test it.
>>
>> This is the minimal fix I came up based on your suggestions.
>>
>> There is no need to fixup of the fake 0xffffff address before booting Linux,
>> as this fake address does not exist in Linux.
>>
>> Successfully tested Ethernet in U-Boot and in the kernel.
>>
>> Given that Ethernet is currently broken, I suggest we go with this
>> version to restore Ethernet for 2024.04.
>>
>> What do you think?
>>
> I am happy with the patch and love the idea to fix Ethernet for 2024.04.
>
> Tested-by: Christian Gmeiner <cgmeiner@igalia.com>
>
Patch looks good to me, too (however I don't have the hardware handy
for testing version with new phy)!

  parent reply	other threads:[~2024-04-02 17:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-30 21:35 [PATCH v2] mx6cuboxi: Fix Ethernet after DT sync with Linux Fabio Estevam
2024-04-01 10:13 ` Christian Gmeiner
2024-04-01 11:51   ` Fabio Estevam
2024-04-02 17:25   ` Josua Mayer [this message]
2024-04-05 16:48 ` Fabio Estevam

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-all 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=bd075a6b-6af6-4bad-92c3-2bb6ea28c4ba@solid-run.com \
    --to=josua@solid-run.com \
    --cc=baruch@tkos.co.il \
    --cc=cgmeiner@igalia.com \
    --cc=festevam@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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