[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <01c3755a-d57c-4da8-9505-551663a694c7@cogentembedded.com>
Date: Fri, 20 Dec 2024 14:23:31 +0500
From: Nikita Yushchenko <nikita.yoush@...entembedded.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Andrew Lunn <andrew+netdev@...n.ch>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-renesas-soc@...r.kernel.org" <linux-renesas-soc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Michael Dege <michael.dege@...esas.com>,
Christian Mardmoeller <christian.mardmoeller@...esas.com>,
Dennis Ostermann <dennis.ostermann@...esas.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>
Subject: Re: [PATCH net-next 1/2] net: renesas: rswitch: use per-port irq
handlers
>>> Sorry, but I can't find where this property is documented?
>>
>> I will add this.
>
> Device tree properties should be a hardware description. However,
> about the "irq-index", it seems a software configuration. So, even if we would
> like to submit such a patch to add the property, it will be rejected.
Hmm...
Indeed it is a software configuration.
I was not aware of such a rule.
I believe there shall be plenty of situations when a per-hardware-node software configuration is
desired. What method do other use, if not device tree?
> Also, even if we can add a new device tree property, we should keep backward compatible.
> However, this patch seems to break a backward compatibility.
It does not.
If this new property is not defined, then it will default to 0, which will result exactly into previous
behavior.
> Unfortunately, I don't have alternative solutions how to configurate per-port irq though...
> # Maybe configfs??
Looks like overengineering...
Perhaps can just hardcode irq-index N for port N for now. But then, flexibility will be lost.
In more complex situations that I target in future, some of 8 GWCA interrupts will be given to virtual
machines (and/or Xen domains) to serve virtual port frontends, and some will be needed for virtual port
backends. So 8 will be not enough to have a per-consumer interrupt, and some configuration method is
needed.
Nikita
Powered by blists - more mailing lists