Re: [PATCH v2] mdio_bus: suppress err message for reset gpio EPROBE_DEFER

From: Jakub Kicinski
Date: Fri Nov 20 2020 - 22:13:22 EST


On Thu, 19 Nov 2020 22:34:46 +0200 Grygorii Strashko wrote:
> The mdio_bus may have dependencies from GPIO controller and so got
> deferred. Now it will print error message every time -EPROBE_DEFER is
> returned which from:
> __mdiobus_register()
> |-devm_gpiod_get_optional()
> without actually identifying error code.
>
> "mdio_bus 4a101000.mdio: mii_bus 4a101000.mdio couldn't get reset GPIO"
>
> Hence, suppress error message for devm_gpiod_get_optional() returning
> -EPROBE_DEFER case by using dev_err_probe().
>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>

Applied (with the line wrapped), thanks!