Message ID | 1538490605-26653-1-git-send-email-dinguyen@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [GIT,PULL] SoCFPGA DTS updates for v4.20, part 3 | expand |
On Tue, Oct 2, 2018 at 4:30 PM Dinh Nguyen <dinguyen@kernel.org> wrote: > Dinh Nguyen (1): > arm64: dts: stratix10: add ethernet aliases This one doesn't look quite right: you are adding the aliases in the .dtsi files, which might be shared by multiple .dts files. There is no guarantee that each board uses all three ethernet ports in the chip, even when all boards we support in the kernel do. Can you have a look at why those are not in the .dts file? Arnd
Hi Arnd, On 10/04/2018 09:12 AM, Arnd Bergmann wrote: > On Tue, Oct 2, 2018 at 4:30 PM Dinh Nguyen <dinguyen@kernel.org> wrote: > >> Dinh Nguyen (1): >> arm64: dts: stratix10: add ethernet aliases > > This one doesn't look quite right: you are adding the aliases in the .dtsi > files, which might be shared by multiple .dts files. There is no guarantee > that each board uses all three ethernet ports in the chip, even when all > boards we support in the kernel do. > I kinda thought it would make sense to have all the ethernet aliases in the dtsi file because even if different boards do not use all the ethernets ports, the unused ethernet ports would be left disabled from the dtsi file. But then some boards may just use gmac1 or gmac2 instead of gmac0. So yes, I'll move the aliases to the specific board file. Thanks, Dinh