linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
@ 2019-06-26 13:30 Axel Lin
  2019-06-27  2:03 ` Chen Feng
  2019-06-27 13:48 ` Lee Jones
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2019-06-26 13:30 UTC (permalink / raw)
  To: Lee Jones; +Cc: Chen Feng, linux-kernel, Axel Lin

Since devm_regmap_init_mmio_clk can fail, add return value checking.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Chen Feng <puck.chen@hisilicon.com>
---
This was sent on https://lkml.org/lkml/2019/3/6/904

 drivers/mfd/hi655x-pmic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
index 96c07fa1802a..6693f74aa6ab 100644
--- a/drivers/mfd/hi655x-pmic.c
+++ b/drivers/mfd/hi655x-pmic.c
@@ -112,6 +112,8 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
 
 	pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
 						 &hi655x_regmap_config);
+	if (IS_ERR(pmic->regmap))
+		return PTR_ERR(pmic->regmap);
 
 	regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
 	if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
  2019-06-26 13:30 [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk Axel Lin
@ 2019-06-27  2:03 ` Chen Feng
  2019-06-27  2:57   ` Axel Lin
  2019-06-27 13:48 ` Lee Jones
  1 sibling, 1 reply; 5+ messages in thread
From: Chen Feng @ 2019-06-27  2:03 UTC (permalink / raw)
  To: Axel Lin, Lee Jones; +Cc: linux-kernel

Thanks

On 2019/6/26 21:30, Axel Lin wrote:
> Since devm_regmap_init_mmio_clk can fail, add return value checking.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Acked-by: Chen Feng <puck.chen@hisilicon.com>
> ---
> This was sent on https://lkml.org/lkml/2019/3/6/904
> 
>   drivers/mfd/hi655x-pmic.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
> index 96c07fa1802a..6693f74aa6ab 100644
> --- a/drivers/mfd/hi655x-pmic.c
> +++ b/drivers/mfd/hi655x-pmic.c
> @@ -112,6 +112,8 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
>   
>   	pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
>   						 &hi655x_regmap_config);
> +	if (IS_ERR(pmic->regmap))
> +		return PTR_ERR(pmic->regmap);
>   
>   	regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
>   	if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
  2019-06-27  2:03 ` Chen Feng
@ 2019-06-27  2:57   ` Axel Lin
  2019-06-27 13:47     ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Axel Lin @ 2019-06-27  2:57 UTC (permalink / raw)
  To: Chen Feng; +Cc: Lee Jones, LKML

Hi Chen,

Chen Feng <puck.chen@hisilicon.com> 於 2019年6月27日 週四 上午10:03寫道:
>
> Thanks
I assume this is an Ack.
If you can add your Acked-by in the reply, it's easier for maintainer to accept
the patch.

>
> On 2019/6/26 21:30, Axel Lin wrote:
> > Since devm_regmap_init_mmio_clk can fail, add return value checking.
> >
> > Signed-off-by: Axel Lin <axel.lin@ingics.com>
> > Acked-by: Chen Feng <puck.chen@hisilicon.com>
> > ---
> > This was sent on https://lkml.org/lkml/2019/3/6/904
> >
> >   drivers/mfd/hi655x-pmic.c | 2 ++
> >   1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
> > index 96c07fa1802a..6693f74aa6ab 100644
> > --- a/drivers/mfd/hi655x-pmic.c
> > +++ b/drivers/mfd/hi655x-pmic.c
> > @@ -112,6 +112,8 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
> >
> >       pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
> >                                                &hi655x_regmap_config);
> > +     if (IS_ERR(pmic->regmap))
> > +             return PTR_ERR(pmic->regmap);
> >
> >       regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
> >       if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {
> >
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
  2019-06-27  2:57   ` Axel Lin
@ 2019-06-27 13:47     ` Lee Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2019-06-27 13:47 UTC (permalink / raw)
  To: Axel Lin; +Cc: Chen Feng, LKML

On Thu, 27 Jun 2019, Axel Lin wrote:

> Hi Chen,
> 
> Chen Feng <puck.chen@hisilicon.com> 於 2019年6月27日 週四 上午10:03寫道:
> >
> > Thanks
> I assume this is an Ack.
> If you can add your Acked-by in the reply, it's easier for maintainer to accept
> the patch.

Looks to me like he already Acked it.

Which is looks like you already applied?

> > On 2019/6/26 21:30, Axel Lin wrote:
> > > Since devm_regmap_init_mmio_clk can fail, add return value checking.
> > >
> > > Signed-off-by: Axel Lin <axel.lin@ingics.com>
> > > Acked-by: Chen Feng <puck.chen@hisilicon.com>
> > > ---
> > > This was sent on https://lkml.org/lkml/2019/3/6/904
> > >
> > >   drivers/mfd/hi655x-pmic.c | 2 ++
> > >   1 file changed, 2 insertions(+)
> > >
> > > diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c
> > > index 96c07fa1802a..6693f74aa6ab 100644
> > > --- a/drivers/mfd/hi655x-pmic.c
> > > +++ b/drivers/mfd/hi655x-pmic.c
> > > @@ -112,6 +112,8 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
> > >
> > >       pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
> > >                                                &hi655x_regmap_config);
> > > +     if (IS_ERR(pmic->regmap))
> > > +             return PTR_ERR(pmic->regmap);
> > >
> > >       regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
> > >       if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {
> > >
> >

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk
  2019-06-26 13:30 [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk Axel Lin
  2019-06-27  2:03 ` Chen Feng
@ 2019-06-27 13:48 ` Lee Jones
  1 sibling, 0 replies; 5+ messages in thread
From: Lee Jones @ 2019-06-27 13:48 UTC (permalink / raw)
  To: Axel Lin; +Cc: Chen Feng, linux-kernel

On Wed, 26 Jun 2019, Axel Lin wrote:

> Since devm_regmap_init_mmio_clk can fail, add return value checking.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Acked-by: Chen Feng <puck.chen@hisilicon.com>
> ---
> This was sent on https://lkml.org/lkml/2019/3/6/904
> 
>  drivers/mfd/hi655x-pmic.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-27 13:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-26 13:30 [PATCH RESEND] mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk Axel Lin
2019-06-27  2:03 ` Chen Feng
2019-06-27  2:57   ` Axel Lin
2019-06-27 13:47     ` Lee Jones
2019-06-27 13:48 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).