[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130612000123.GP18614@n2100.arm.linux.org.uk>
Date: Wed, 12 Jun 2013 01:01:23 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Jesse Brandeburg <jesse.brandeburg@...el.com>
Cc: "Duyck, Alexander H" <alexander.h.duyck@...el.com>,
"Allan, Bruce W" <bruce.w.allan@...el.com>,
"Wyborny, Carolyn" <carolyn.wyborny@...el.com>,
"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
"e1000-devel@...ts.sourceforge.net"
<e1000-devel@...ts.sourceforge.net>,
"Rose, Gregory V" <gregory.v.rose@...el.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Ronciak, John" <john.ronciak@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Waskiewicz Jr, Peter P" <peter.p.waskiewicz.jr@...el.com>,
Rasesh Mody <rmody@...cade.com>,
"Dave, Tushar N" <tushar.n.dave@...el.com>
Subject: Re: [RFC 0/7] Fixing dma mask setting in various network drivers
On Tue, Jun 11, 2013 at 04:50:44PM -0700, Jesse Brandeburg wrote:
> On Tue, 11 Jun 2013 13:35:05 -0700
> Russell King - ARM Linux <linux@....linux.org.uk> wrote:
> > As part of my review of all this stuff, I'm wondering whether a helper
> > to set both masks makes sense. Something like:
> >
> > static inline int dma_set_masks(struct device *dev, u64 mask)
>
> it doesn't need to be inline, it is never called in hotpath.
If it goes into linux/dma-mapping.h as a simple helper it does, otherwise
you'll get "declared but not used" warnings.
> > {
> > int ret = dma_set_mask(dev, mask);
> > if (ret == 0)
> > dma_set_coherent_mask(dev, mask);
> > return ret;
> > }
> >
> > "dma_set_masks()" is a little too close to dma_set_mask() though; and
>
> how about dma_set_mask_and_coherent(...)
Yea, I'm happy with that.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists