From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH] v4l: rcar-fcp: Read IP version register at probe time
Date: Sun, 9 Jun 2019 13:08:45 +0300 [thread overview]
Message-ID: <20190609100845.GA4778@pendragon.ideasonboard.com> (raw)
In-Reply-To: <CAMuHMdUobhMrDYBoYVo091re7LGrYEGgCsXbMh8a4MrF4zoP7g@mail.gmail.com>
Hi Geert,
On Sun, Jun 09, 2019 at 10:06:19AM +0200, Geert Uytterhoeven wrote:
> On Sat, Jun 8, 2019 at 2:55 PM Laurent Pinchart wrote:
> > This helps identifying the IP core version, for debugging purpose only
> > for now.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>
> Thanks for your patch!
>
> > --- a/drivers/media/platform/rcar-fcp.c
> > +++ b/drivers/media/platform/rcar-fcp.c
>
> > @@ -138,6 +168,19 @@ static int rcar_fcp_probe(struct platform_device *pdev)
> >
> > pm_runtime_enable(&pdev->dev);
> >
> > + mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > + fcp->iomem = devm_ioremap_resource(&pdev->dev, mem);
>
> devm_platform_ioremap_resource()?
Nice, I've thought about adding such a function for some time, I didn't
know it had been merged.
> > + if (IS_ERR(fcp->iomem))
> > + return PTR_ERR(fcp->iomem);
> > +
> > + pm_runtime_get_sync(&pdev->dev);
> > + version = rcar_fcp_read(fcp, FCP_VCR);
>
> Please note that rcar_fcp_read() does not exist in upstream nor next,
> and linux-renesas-soc hasn't seen the patch that added it.
That's why it was added in this patch :-)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2019-06-09 10:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-08 12:53 [PATCH] v4l: rcar-fcp: Read IP version register at probe time Laurent Pinchart
2019-06-09 8:06 ` Geert Uytterhoeven
2019-06-09 10:08 ` Laurent Pinchart [this message]
2019-06-09 11:51 ` Geert Uytterhoeven
2019-06-09 12:37 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190609100845.GA4778@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=geert@linux-m68k.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox