Re: [PATCH net-next v2] net: dsa: b53: Extend platform data to include DSA ports
From: David Miller
Date: Sun May 20 2018 - 18:04:42 EST
From: Florian Fainelli <f.fainelli@xxxxxxxxx>
Date: Sun, 20 May 2018 08:56:30 -0700
> The b53 driver already defines and internally uses platform data to let the
> glue drivers specify parameters such as the chip id. What we were missing was
> a way to tell the core DSA layer about the ports and their type.
>
> Place a dsa_chip_data structure at the beginning of b53_platform_data for
> dsa_register_switch() to access it. This does not require modifications to
> b53_common.c which will pass platform_data trough.
>
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
Applied, thanks.