public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Greg Kroah-Hartman
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
Cc: Marc Dietrich <marvin24-Mmb7MZpHnFY@public.gmane.org>,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b@public.gmane.org,
	ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt@public.gmane.org
Subject: Re: [PATCH] staging/nvec: Pass proper resource to mfd_add_devices()
Date: Mon, 21 Jul 2014 23:49:38 +0200	[thread overview]
Message-ID: <20140721214936.GD12076@mithrandir> (raw)
In-Reply-To: <20140721213915.GA8168-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]

On Mon, Jul 21, 2014 at 02:39:15PM -0700, Greg Kroah-Hartman wrote:
> On Mon, Jul 21, 2014 at 10:01:36PM +0200, Marc Dietrich wrote:
> > Hi Thierry,
> > 
> > On Mon, 21 Jul 2014 13:52:41 +0200
> > Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > 
> > > From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > > 
> > > The mfd_add_devices() parameter takes a struct resource * as fifth
> > > argument, but the nvec driver passes in a void __iomem *. The driver
> > > gets away with it because none of the subdevices ever directly access
> > > the registers.
> > 
> > you are right, this one looked bogus. 
> > 
> > > While at it, use platform_get_irq() instead of platform_get_resource()
> > > to get the device's interrupt. This makes it easier to pass in the
> > > register region since the variable is no longer reused.
> > > 
> > > Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> > > ---
> > > Alternatively we could simply pass NULL into mfd_add_devices(), which
> > > might be a slightly more accurate representation of what's going on.
> > >
> > > Marc, Greg, any preferences?
> > 
> > I just tested with NULL as base and it seems to produce no harm. Even
> > if we may get rid of mfd_add_devices in the future, passing NULL is
> > cleaner for now and no children will ever make use of it. So please send
> > a new version with this change.
> > 
> > Otherwise, thanks for looking and cleaning up.
> 
> Ok, can I get your ack for this patch then?

I'll resend a patch which passes in NULL as base tomorrow as requested
by Marc.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2014-07-21 21:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 11:52 [PATCH] staging/nvec: Pass proper resource to mfd_add_devices() Thierry Reding
2014-07-21 20:01 ` Marc Dietrich
2014-07-21 21:39   ` Greg Kroah-Hartman
     [not found]     ` <20140721213915.GA8168-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-07-21 21:49       ` Thierry Reding [this message]
2014-07-21 21:20 ` Greg Kroah-Hartman

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=20140721214936.GD12076@mithrandir \
    --to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt@public.gmane.org \
    --cc=devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b@public.gmane.org \
    --cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marvin24-Mmb7MZpHnFY@public.gmane.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