Re: [PATCH net-next v2] net: ti: icssg-prueth: Make pa_stats optional

From: Andrew Lunn
Date: Fri Sep 06 2024 - 08:26:27 EST


On Fri, Sep 06, 2024 at 03:06:49PM +0530, MD Danish Anwar wrote:
> pa_stats is optional in dt bindings, make it optional in driver as well.
> Currently if pa_stats syscon regmap is not found driver returns -ENODEV.
> Fix this by not returning an error in case pa_stats is not found and
> continue generating ethtool stats without pa_stats.
>
> Fixes: 550ee90ac61c ("net: ti: icssg-prueth: Add support for PA Stats")
> Signed-off-by: MD Danish Anwar <danishanwar@xxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew