All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugen Hristev <eugen.hristev@collabora.com>
To: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de, joe.hershberger@ni.com, jonas@kwiboo.se,
	jagan@edgeble.ai, kever.yang@rock-chips.com
Subject: Re: [PATCH 2/2] configs: rock5b-rk3588: add rtl8169 driver
Date: Wed, 17 May 2023 13:46:53 +0300	[thread overview]
Message-ID: <ea10a05c-dcd4-e63c-81db-e9fef16dafd0@collabora.com> (raw)
In-Reply-To: <20230515131616.GB2398826@bill-the-cat>

On 5/15/23 16:16, Tom Rini wrote:
> On Mon, May 15, 2023 at 03:57:14PM +0300, Eugen Hristev wrote:
>> On 5/15/23 15:52, Tom Rini wrote:
>>> On Mon, May 15, 2023 at 03:36:24PM +0300, Eugen Hristev wrote:
>>>> On 5/6/23 01:03, Tom Rini wrote:
>>>>> On Tue, Apr 25, 2023 at 04:06:59PM +0300, Eugen Hristev wrote:
>>>>>> Add the rtl8169 driver, which supports the rtl8125b device, which is
>>>>>> connected on the pciE bus on this board.
>>>>>> Enable also CONFIG_SYS_HAS_NONCACHED_MEMORY to have the descriptors stored.
>>>>>>
>>>>>> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
>>>>>> ---
>>>>>>     configs/rock5b-rk3588_defconfig | 2 ++
>>>>>>     1 file changed, 2 insertions(+)
>>>>>>
>>>>>> diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
>>>>>> index a14fcd2ee924..bfa48227aee2 100644
>>>>>> --- a/configs/rock5b-rk3588_defconfig
>>>>>> +++ b/configs/rock5b-rk3588_defconfig
>>>>>> @@ -1,5 +1,6 @@
>>>>>>     CONFIG_ARM=y
>>>>>>     CONFIG_SKIP_LOWLEVEL_INIT=y
>>>>>> +CONFIG_SYS_HAS_NONCACHED_MEMORY=y
>>>>>>     CONFIG_COUNTER_FREQUENCY=24000000
>>>>>>     CONFIG_ARCH_ROCKCHIP=y
>>>>>>     CONFIG_TEXT_BASE=0x00a00000
>>>>>> @@ -71,6 +72,7 @@ CONFIG_MMC_SDHCI_SDMA=y
>>>>>>     CONFIG_MMC_SDHCI_ROCKCHIP=y
>>>>>>     CONFIG_SPI_FLASH_MACRONIX=y
>>>>>>     CONFIG_ETH_DESIGNWARE=y
>>>>>> +CONFIG_RTL8169=y
>>>>>>     CONFIG_GMAC_ROCKCHIP=y
>>>>>>     CONFIG_PCI=y
>>>>>>     CONFIG_PCIE_DW_ROCKCHIP=y
>>>>>
>>>>> Does this depend on some series I missed where PCI is enabled on this
>>>>> config?
>>>>>
>>>>
>>>> Hi Tom,
>>>>
>>>> the network device is connected on PCI express, that is right. I have a
>>>> separate series for that.
>>>> However, the network driver itself and the enabling of the network driver is
>>>> somewhat independent, so I sent it as a separate series (this one )
>>>> I think the config patch can go through rockchip custodian tree.
>>>
>>> With 1/2 now applied this results in failure to build due to DM_PCI not
>>> being enabled.
>>>
>>
>> This is most strange. 1/2 are just changes in the driver. How does that
>> cause a build failure ?
>> The driver is not even selected for this config in 2/2, before the actual
>> patch.
>> Do you have the log of the failure so I can have a look ?
> 
> I don't have the log handy right now, please re-test the config changes
> on top of master and repost.
> 


Hi Tom,

I figured out the issue.
My patch is indeed based on another patch that selects CONFIG_PCI.

However, the rtl8169 driver depends on PCI, even if it does not have 
'depends on PCI' in the Kconfig.
So selecting it without PCI, well, the error.

So I sent another patch :

https://patchwork.ozlabs.org/project/uboot/patch/20230517104124.111075-1-eugen.hristev@collabora.com/

... that should have the rtl8169 depend on PCI now.

That being said, this current patch can be applied on kever's rockchip 
master branch on top of PCI series, but if it's to be applied on master, 
it should work on top of the 'rtl8169 depends on PCI' patch now.

I hope it makes sense.
Thanks


  reply	other threads:[~2023-05-17 10:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-25 13:06 [PATCH 1/2] net: rtl8169: add minimal support for 8125B variant Eugen Hristev
2023-04-25 13:06 ` [PATCH 2/2] configs: rock5b-rk3588: add rtl8169 driver Eugen Hristev
2023-05-05 22:03   ` Tom Rini
2023-05-15 12:36     ` Eugen Hristev
2023-05-15 12:52       ` Tom Rini
2023-05-15 12:57         ` Eugen Hristev
2023-05-15 13:16           ` Tom Rini
2023-05-17 10:46             ` Eugen Hristev [this message]
2023-07-21  9:51               ` Eugen Hristev
2023-05-18  1:03   ` Kever Yang
2023-04-25 13:17 ` [PATCH 1/2] net: rtl8169: add minimal support for 8125B variant Eugen Hristev
2023-04-25 19:22   ` Ramon Fried
2023-04-25 19:47     ` Eugen Hristev
2023-04-30 19:44       ` Ramon Fried
2023-05-17 10:54         ` Eugen Hristev
2023-05-06 14:54 ` Tom Rini

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=ea10a05c-dcd4-e63c-81db-e9fef16dafd0@collabora.com \
    --to=eugen.hristev@collabora.com \
    --cc=jagan@edgeble.ai \
    --cc=joe.hershberger@ni.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.