On Wed, Jun 05, 2019 at 10:07:23AM -0300, Fabio Estevam wrote: > dev_err() is more appropriate for printing error messages inside > drivers, so switch to dev_err(). > > While at it also add the missing newlines and remove 'device' > string as the ci_role(ci)->name string will tell if it is host > or gadget. > > Signed-off-by: Fabio Estevam <festevam@xxxxxxxxx> > --- > Changes since v1: > - Add missing newlines (Johan) > - Remove 'device' string > > drivers/usb/chipidea/core.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c > index 27749ace2d93..92132b35b7fd 100644 > --- a/drivers/usb/chipidea/core.c > +++ b/drivers/usb/chipidea/core.c > @@ -523,8 +523,9 @@ int hw_device_reset(struct ci_hdrc *ci) > hw_write(ci, OP_USBMODE, USBMODE_SLOM, USBMODE_SLOM); > > if (hw_read(ci, OP_USBMODE, USBMODE_CM) != USBMODE_CM_DC) { > - pr_err("cannot enter in %s device mode", ci_role(ci)->name); > - pr_err("lpm = %i", ci->hw_bank.lpm); > + dev_err(ci->dev, "cannot enter in %s mode\n", You changed the string text, why? thanks, greg k-h