Thread (18 messages) 18 messages, 4 authors, 2020-10-04

Re: [PATCH net-next v3 3/7] net: dsa: Register devlink ports before calling DSA driver setup()

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2020-10-04 16:21:03


On 10/4/2020 9:12 AM, Andrew Lunn wrote:
DSA drivers want to create regions on devlink ports as well as the
devlink device instance, in order to export registers and other tables
per port. To keep all this code together in the drivers, have the
devlink ports registered early, so the setup() method can setup both
device and port devlink regions.

v3:
Remove dp->setup
Move common code out of switch statement.
Fix wrong goto

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help