From: David Woodhouse <dwmw2@infradead.org>
To: David Dillow <dave@thedillows.org>
Cc: Jaswinder Singh <jaswinder@infradead.org>,
LKML <linux-kernel@vger.kernel.org>,
becker@scyld.com, davidpmclean@yahoo.com,
Jeff Garzik <jeff@garzik.org>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] typhoon: use request_firmware
Date: Thu, 31 Jul 2008 08:42:53 +0100 [thread overview]
Message-ID: <1217490173.3454.47.camel@pmac.infradead.org> (raw)
In-Reply-To: <1217475466.16202.15.camel@obelisk.thedillows.org>
On Wed, 2008-07-30 at 23:37 -0400, David Dillow wrote:
> request_firmware()'s mutex is protecting against things inside of that
> subsystem, but offers no protection between the test on typhoon_fw !=
> NULL and the setting of it inside of the firmware loader. That
> requires locking at a higher level.
>
> Anyways, probing is single threaded and I seem to recall it being
> unlikely to be made parallel due to the number issues exposed last
> time, so a minimal comment is fine.
An alternative approach is to make request_firmware() do the duplicate
avoidance for itself. Since we made fw->data const (as 'fw' itself
always was), no users should be changing anything in the requested
firmware. It can be safely reused by generic code.
That simplifies the logic in drivers -- they just request what they
want, as many times as they want it, and don't have to care about the
potential duplication.
--
dwmw2
prev parent reply other threads:[~2008-07-31 7:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-27 14:50 [PATCH] typhoon: use request_firmware Jaswinder Singh
2008-07-28 1:43 ` David Dillow
2008-07-28 3:16 ` Jaswinder Singh
2008-07-28 12:36 ` David Dillow
2008-07-28 13:54 ` Jaswinder Singh
2008-07-29 1:38 ` David Dillow
2008-07-29 3:57 ` David Dillow
2008-07-29 16:09 ` Jaswinder Singh
2008-07-30 5:25 ` David Dillow
2008-07-30 6:44 ` Jaswinder Singh
2008-07-31 3:37 ` David Dillow
2008-07-31 7:42 ` David Woodhouse [this message]
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=1217490173.3454.47.camel@pmac.infradead.org \
--to=dwmw2@infradead.org \
--cc=becker@scyld.com \
--cc=dave@thedillows.org \
--cc=davidpmclean@yahoo.com \
--cc=jaswinder@infradead.org \
--cc=jeff@garzik.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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