Re: [PATCH mfd v1] mfd: Add Renesas Synchronization Management Unit (SMU) support

From: Lee Jones
Date: Thu May 27 2021 - 04:44:10 EST


On Wed, 26 May 2021, Min Li wrote:

> >
> > > + ret = rsmu_dev_init(rsmu);
> > > + mutex_unlock(&rsmu->lock);
> > > +
> > > + if (ret == 0)
> > > + dev_info(rsmu->dev, "Probe %s successful\n",
> > > + rsmu_name(rsmu->type));
> >
> > No thank you. Please remove this.
> >
> Hi Lee
>
> What is the rule for adding informational log in the driver probe function?

The rule generally is 'don't'.

Especially if it doesn't provide any actual information.

Strings are expensive with regards to binary size.

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog