Message ID | 20200228092557.31429-1-m.szyprowski@samsung.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 8e11a977c8eb02aa06604b11cfb4e43eb8287537 |
Headers | show |
Series | usb: dwc2: Silence warning about supplies during deferred probe | expand |
On Fri, Feb 28, 2020 at 10:25:57AM +0100, Marek Szyprowski wrote: > Don't confuse user with meaningless warning about the failure in getting > supplies in case of deferred probe. > > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > --- > drivers/usb/dwc2/platform.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Best regards, Krzysztof
On 2/28/2020 1:25 PM, Marek Szyprowski wrote: > Don't confuse user with meaningless warning about the failure in getting > supplies in case of deferred probe. > > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Minas Harutyunyan <hminas@synopsys.com> > --- > drivers/usb/dwc2/platform.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c > index 3c6ce09a6db5..eb110d368623 100644 > --- a/drivers/usb/dwc2/platform.c > +++ b/drivers/usb/dwc2/platform.c > @@ -285,7 +285,9 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg) > ret = devm_regulator_bulk_get(hsotg->dev, ARRAY_SIZE(hsotg->supplies), > hsotg->supplies); > if (ret) { > - dev_err(hsotg->dev, "failed to request supplies: %d\n", ret); > + if (ret != -EPROBE_DEFER) > + dev_err(hsotg->dev, "failed to request supplies: %d\n", > + ret); > return ret; > } > return 0; >
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 3c6ce09a6db5..eb110d368623 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -285,7 +285,9 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg) ret = devm_regulator_bulk_get(hsotg->dev, ARRAY_SIZE(hsotg->supplies), hsotg->supplies); if (ret) { - dev_err(hsotg->dev, "failed to request supplies: %d\n", ret); + if (ret != -EPROBE_DEFER) + dev_err(hsotg->dev, "failed to request supplies: %d\n", + ret); return ret; } return 0;
Don't confuse user with meaningless warning about the failure in getting supplies in case of deferred probe. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/usb/dwc2/platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)